|
1 | 1 | <modification>
|
2 | 2 | <id>Quality Works - Mollie</id>
|
3 |
| - <version>1.2.1</version> |
| 3 | + <version>1.2.2</version> |
4 | 4 | <vqmver>2.3.0</vqmver>
|
5 | 5 | <author>Quality Works</author>
|
6 | 6 |
|
7 |
| - <file name="catalog/controller/event/compatibility.php" error="skip"> |
| 7 | + <file name="catalog/controller/event/compatibility.php" error="log"> |
8 | 8 | <operation>
|
9 | 9 | <search position="replace"><![CDATA['model/' . $route . '.php']]></search>
|
10 | 10 | <add><![CDATA['model/'.((strpos($route,'get') !== false) ? dirname($route) : $route).'.php']]></add>
|
11 | 11 | </operation>
|
12 | 12 | </file>
|
13 |
| - <file name="admin/controller/event/compatibility.php" error="skip"> |
| 13 | + <file name="admin/controller/event/compatibility.php" error="log"> |
14 | 14 | <operation>
|
15 | 15 | <search position="after" index="1"><![CDATA[$route = $part[1] . '/' . $part[2];]]></search>
|
16 | 16 | <add><![CDATA[if(array_key_exists(3, $part)) {
|
|
20 | 20 | </file>
|
21 | 21 |
|
22 | 22 | <!-- Shipment creation for Klarna method for versions older than 2.2 -->
|
23 |
| - <file name="admin/model/sale/order.php" error="skip"> |
24 |
| - <operation error="skip"> |
| 23 | + <file name="admin/model/sale/order.php" error="log"> |
| 24 | + <operation error="log"> |
25 | 25 | <search position="before"><![CDATA[public function getOrderHistories($order_id, $start = 0, $limit = 10) {]]></search>
|
26 | 26 | <add><![CDATA[//Get order reference id for mollie payment
|
27 | 27 | public function getOrderID($order_id)
|
|
35 | 35 | }]]></add>
|
36 | 36 | </operation>
|
37 | 37 | </file>
|
38 |
| - <file name="catalog/controller/api/order.php" error="skip"> |
39 |
| - <operation error="skip"> |
| 38 | + <file name="catalog/controller/api/order.php" error="log"> |
| 39 | + <operation error="log"> |
40 | 40 | <search position="after" index="3"><![CDATA[$this->model_checkout_order->addOrderHistory]]></search>
|
41 | 41 | <add><![CDATA[// Shipment creation for Klarna for versions older than 2.2
|
42 | 42 | if(VERSION < "2.2") {
|
|
48 | 48 | } ]]></add>
|
49 | 49 | </operation>
|
50 | 50 | </file>
|
51 |
| - <file name="admin/controller/sale/order.php" error="skip"> |
52 |
| - <operation error="skip"> |
| 51 | + <file name="admin/controller/sale/order.php" error="log"> |
| 52 | + <operation error="log"> |
53 | 53 | <search position="before" index="4"><![CDATA[$this->data['success']]]></search>
|
54 | 54 | <add><![CDATA[// Shipment creation for Klarna for versions older than 2.2
|
55 | 55 | if(VERSION <= "1.5.6.4") {
|
|
64 | 64 |
|
65 | 65 | <!-- Showing mollie payment status on order info page -->
|
66 | 66 | <file name="admin/controller/sale/order.php">
|
67 |
| - <operation error="skip"> |
| 67 | + <operation error="log"> |
68 | 68 | <search position="after" index="2"><![CDATA[$data['payment_method'] = $order_info['payment_method'];]]></search>
|
69 | 69 | <add><![CDATA[$data['payment_status'] = $this->model_sale_order->getMolliePayment($this->request->get['order_id'])['bank_status'];]]></add>
|
70 | 70 | </operation>
|
71 |
| - <operation error="skip"> |
| 71 | + <operation error="log"> |
72 | 72 | <search position="after" index="2"><![CDATA[$this->data['payment_method'] = $order_info['payment_method'];]]></search>
|
73 | 73 | <add><![CDATA[$this->data['payment_status'] = $this->model_sale_order->getMolliePayment($this->request->get['order_id'])['bank_status'];]]></add>
|
74 | 74 | </operation>
|
75 | 75 | </file>
|
76 | 76 |
|
77 | 77 | <file name="admin/model/sale/order.php">
|
78 |
| - <operation error="skip"> |
| 78 | + <operation error="log"> |
79 | 79 | <search position="before"><![CDATA[public function getOrder($order_id)]]></search>
|
80 | 80 | <add><![CDATA[public function getMolliePayment($order_id) {
|
81 | 81 | $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "mollie_payments` WHERE order_id = '" . (int)$order_id . "'");
|
|
91 | 91 | </file>
|
92 | 92 |
|
93 | 93 | <file name="admin/view/template/sale/order_info.tpl">
|
94 |
| - <operation error="skip"> |
| 94 | + <operation error="log"> |
95 | 95 | <search position="replace"><![CDATA[<td><?php echo $payment_method; ?></td>]]></search>
|
96 | 96 | <add><![CDATA[<td><?php echo $payment_method; ?>
|
97 | 97 | <?php if($payment_status == 'paid') { ?>
|
|
111 | 111 | <?php } elseif($payment_status == 'refunded') { ?>
|
112 | 112 | <span id="payment-status" class="label label-primary"><?php echo strtoupper($payment_status); ?></span>
|
113 | 113 | <?php } ?>
|
114 |
| - <?php if(($payment_status != 'expired') && ($payment_status != 'refunded') && ($payment_status != 'failed') && ($payment_status != 'canceled')) { ?> |
| 114 | + <?php if(($payment_status) && ($payment_status != 'expired') && ($payment_status != 'refunded') && ($payment_status != 'failed') && ($payment_status != 'canceled')) { ?> |
115 | 115 | <a href="javascript:void(0)" id="button-refund" class="label label-primary"><?php echo $button_refund; ?></a>
|
116 | 116 | <?php } ?>
|
117 | 117 | </td>]]></add>
|
118 | 118 | </operation>
|
119 | 119 | </file>
|
120 | 120 |
|
121 | 121 | <file name="admin/view/template/sale/order_info.twig">
|
122 |
| - <operation error="skip"> |
| 122 | + <operation error="log"> |
123 | 123 | <search position="replace"><![CDATA[<td>{{ payment_method }}</td>]]></search>
|
124 | 124 | <add><![CDATA[<td>{{ payment_method }}
|
125 | 125 | {% if(payment_status == 'paid') %}
|
|
139 | 139 | n {% elseif(payment_status == 'refunded') %}
|
140 | 140 | <span id="payment-status" class="label label-primary">{{ payment_status | upper }}</span>
|
141 | 141 | {% endif %}
|
142 |
| - {% if((payment_status != 'expired') and (payment_status != 'refunded') and (payment_status != 'failed') and (payment_status != 'canceled')) %} |
| 142 | + {% if((payment_status) and (payment_status != 'expired') and (payment_status != 'refunded') and (payment_status != 'failed') and (payment_status != 'canceled')) %} |
143 | 143 | <a href="javascript:void(0)" id="button-refund" class="label label-primary">{{ button_refund }}</a>
|
144 | 144 | {% endif %}
|
145 | 145 | </td>]]></add>
|
|
148 | 148 |
|
149 | 149 | <!-- Ignore token check -->
|
150 | 150 | <file name="admin/controller/startup/login.php">
|
151 |
| - <operation error="skip"> |
| 151 | + <operation error="log"> |
152 | 152 | <search position="after"><![CDATA['common/login',]]></search>
|
153 | 153 | <add><![CDATA['extension/payment/mollie_bancontact/mollieConnectCallback',
|
154 | 154 | 'payment/mollie_bancontact/mollieConnectCallback',]]></add>
|
155 | 155 | </operation>
|
156 | 156 | </file>
|
157 | 157 |
|
158 | 158 | <file name="admin/controller/common/home.php">
|
159 |
| - <operation error="skip"> |
| 159 | + <operation error="log"> |
160 | 160 | <search position="after" index="1" offset="2"><![CDATA[if (isset($part[1])) {]]></search>
|
161 | 161 | <add><![CDATA[if (isset($part[2])) {
|
162 | 162 | $route .= '/' . $part[2];
|
163 | 163 | }]]></add>
|
164 | 164 | </operation>
|
165 |
| - <operation error="skip"> |
| 165 | + <operation error="log"> |
166 | 166 | <search position="after" index="2"><![CDATA['common/login',]]></search>
|
167 | 167 | <add><![CDATA['extension/payment/mollie_bancontact/mollieConnectCallback',
|
168 | 168 | 'payment/mollie_bancontact/mollieConnectCallback',]]></add>
|
169 | 169 | </operation>
|
170 | 170 | </file>
|
171 | 171 |
|
172 | 172 | <file name="catalog/view/theme/*/template/common/header.tpl">
|
173 |
| - <operation error="skip"> |
| 173 | + <operation error="log"> |
174 | 174 | <search position="before"><![CDATA[</head>]]></search>
|
175 | 175 | <add><![CDATA[<script src="catalog/view/javascript/mollie.js" type="text/javascript"></script>]]></add>
|
176 | 176 | </operation>
|
177 | 177 | </file>
|
178 | 178 |
|
179 | 179 | <file name="catalog/view/theme/*/template/common/header.twig">
|
180 |
| - <operation error="skip"> |
| 180 | + <operation error="log"> |
181 | 181 | <search position="before"><![CDATA[</head>]]></search>
|
182 | 182 | <add><![CDATA[<script src="catalog/view/javascript/mollie.js" type="text/javascript"></script>]]></add>
|
183 | 183 | </operation>
|
184 | 184 | </file>
|
185 | 185 |
|
186 | 186 | <!-- Order refund button -->
|
187 | 187 | <file name="admin/controller/sale/order.php">
|
188 |
| - <operation error="skip"> |
| 188 | + <operation error="log"> |
189 | 189 | <search position="before"><![CDATA[class ControllerSaleOrder]]></search>
|
190 | 190 | <add><![CDATA[require_once(dirname(DIR_SYSTEM) . "/catalog/controller/payment/mollie/helper.php");]]></add>
|
191 | 191 | </operation>
|
192 |
| - <operation error="skip"> |
| 192 | + <operation error="log"> |
193 | 193 | <search position="after"><![CDATA[$data['button_ip_add']]]></search>
|
194 | 194 | <add><![CDATA[$data['button_refund'] = $this->language->get('button_refund');]]></add>
|
195 | 195 | </operation>
|
196 |
| - <operation error="skip"> |
| 196 | + <operation error="log"> |
197 | 197 | <search position="after"><![CDATA[$this->data['button_add_history']]]></search>
|
198 | 198 | <add><![CDATA[$this->data['button_refund'] = $this->language->get('button_refund');]]></add>
|
199 | 199 | </operation>
|
200 |
| - <operation error="skip"> |
| 200 | + <operation error="log"> |
201 | 201 | <search position="after"><![CDATA[public function info() {]]></search>
|
202 | 202 | <add><![CDATA[
|
203 | 203 | if(version_compare(VERSION, '2.0', '<') == true) {
|
204 | 204 | $this->data['isVersion15x'] = true;
|
205 | 205 | $data['isVersion15x'] = true;
|
206 | 206 | }]]></add>
|
207 | 207 | </operation>
|
208 |
| - <operation error="skip"> |
| 208 | + <operation error="log"> |
209 | 209 | <search position="before" index="2"><![CDATA[$data['shipping']]]></search>
|
210 | 210 | <add><![CDATA[if (version_compare(VERSION, '2.3.0.2', '>') == true) {
|
211 | 211 | $token = 'user_token=' . $this->session->data['user_token'];
|
|
215 | 215 |
|
216 | 216 | $data['refund'] = $this->url->link('sale/order/refund', $token . '&order_id=' . (int)$this->request->get['order_id'], true);]]></add>
|
217 | 217 | </operation>
|
218 |
| - <operation error="skip"> |
| 218 | + <operation error="log"> |
219 | 219 | <search position="before"><![CDATA[public function index()]]></search>
|
220 | 220 | <add><![CDATA[
|
221 | 221 | protected function getAPIClient()
|
|
287 | 287 | </file>
|
288 | 288 |
|
289 | 289 | <file name="admin/model/sale/order.php">
|
290 |
| - <operation error="skip"> |
| 290 | + <operation error="log"> |
291 | 291 | <search position="before"><![CDATA[public function getOrder($order_id)]]></search>
|
292 | 292 | <add><![CDATA[public function getMollieOrderDetails($order_id) {
|
293 | 293 | $query = $this->db->query("SELECT * FROM `" . DB_PREFIX . "mollie_payments` WHERE order_id = '" . (int)$order_id . "'");
|
|
307 | 307 | </file>
|
308 | 308 |
|
309 | 309 | <file name="admin/language/en-gb/sale/order.php">
|
310 |
| - <operation error="skip"> |
311 |
| - <search position="bottom"><![CDATA[]]></search> |
| 310 | + <operation error="log"> |
| 311 | + <search position="after"><![CDATA[// Text]]></search> |
312 | 312 | <add><![CDATA[$_['button_refund'] = 'Refund';
|
313 | 313 | $_['text_order_not_found'] = 'Mollie order details not found!';
|
314 | 314 | $_['text_no_refund'] = 'Refund cannot be processed!';
|
|
319 | 319 | </file>
|
320 | 320 |
|
321 | 321 | <file name="admin/language/english/sale/order.php">
|
322 |
| - <operation error="skip"> |
| 322 | + <operation error="log"> |
323 | 323 | <search position="after"><![CDATA[// Text]]></search>
|
324 | 324 | <add><![CDATA[$_['button_refund'] = 'Refund';
|
325 | 325 | $_['text_order_not_found'] = 'Mollie order details not found!';
|
|
331 | 331 | </file>
|
332 | 332 |
|
333 | 333 | <file name="admin/language/de-de/sale/order.php">
|
334 |
| - <operation error="skip"> |
335 |
| - <search position="bottom"><![CDATA[]]></search> |
| 334 | + <operation error="log"> |
| 335 | + <search position="after"><![CDATA[// Text]]></search> |
336 | 336 | <add><![CDATA[$_['button_refund'] = 'Rückerstattung';
|
337 | 337 | $_['text_order_not_found'] = 'Mollie Bestelldetails nicht gefunden!';
|
338 | 338 | $_['text_no_refund'] = 'Rückerstattung kann nicht bearbeitet werden!';
|
|
343 | 343 | </file>
|
344 | 344 |
|
345 | 345 | <file name="admin/language/german/sale/order.php">
|
346 |
| - <operation error="skip"> |
| 346 | + <operation error="log"> |
347 | 347 | <search position="after"><![CDATA[// Text]]></search>
|
348 | 348 | <add><![CDATA[$_['button_refund'] = 'Rückerstattung';
|
349 | 349 | $_['text_order_not_found'] = 'Mollie Bestelldetails nicht gefunden!';
|
|
355 | 355 | </file>
|
356 | 356 |
|
357 | 357 | <file name="admin/language/nl-nl/sale/order.php">
|
358 |
| - <operation error="skip"> |
359 |
| - <search position="bottom"><![CDATA[]]></search> |
| 358 | + <operation error="log"> |
| 359 | + <search position="after"><![CDATA[// Text]]></search> |
360 | 360 | <add><![CDATA[$_['button_refund'] = 'Terugbetaling';
|
361 | 361 | $_['text_order_not_found'] = 'Mollie bestelgegevens niet gevonden!';
|
362 | 362 | $_['text_no_refund'] = 'Restitutie kan niet worden verwerkt!';
|
|
367 | 367 | </file>
|
368 | 368 |
|
369 | 369 | <file name="admin/language/dutch/sale/order.php">
|
370 |
| - <operation error="skip"> |
| 370 | + <operation error="log"> |
371 | 371 | <search position="after"><![CDATA[// Text]]></search>
|
372 | 372 | <add><![CDATA[$_['button_refund'] = 'Terugbetaling';
|
373 | 373 | $_['text_order_not_found'] = 'Mollie bestelgegevens niet gevonden!';
|
|
379 | 379 | </file>
|
380 | 380 |
|
381 | 381 | <file name="admin/language/es-es/sale/order.php">
|
382 |
| - <operation error="skip"> |
383 |
| - <search position="bottom"><![CDATA[]]></search> |
| 382 | + <operation error="log"> |
| 383 | + <search position="after"><![CDATA[// Text]]></search> |
384 | 384 | <add><![CDATA[$_['button_refund'] = 'Reembolso';
|
385 | 385 | $_['text_order_not_found'] = '¡No se han encontrado los detalles del pedido de Mollie!';
|
386 | 386 | $_['text_no_refund'] = '¡No se puede procesar el reembolso!';
|
|
391 | 391 | </file>
|
392 | 392 |
|
393 | 393 | <file name="admin/language/spanish/sale/order.php">
|
394 |
| - <operation error="skip"> |
| 394 | + <operation error="log"> |
395 | 395 | <search position="after"><![CDATA[// Text]]></search>
|
396 | 396 | <add><![CDATA[$_['button_refund'] = 'Reembolso';
|
397 | 397 | $_['text_order_not_found'] = '¡No se han encontrado los detalles del pedido de Mollie!';
|
|
403 | 403 | </file>
|
404 | 404 |
|
405 | 405 | <file name="admin/language/fr-fr/sale/order.php">
|
406 |
| - <operation error="skip"> |
407 |
| - <search position="bottom"><![CDATA[]]></search> |
| 406 | + <operation error="log"> |
| 407 | + <search position="after"><![CDATA[// Text]]></search> |
408 | 408 | <add><![CDATA[$_['button_refund'] = 'Rembourser';
|
409 | 409 | $_['text_order_not_found'] = 'Détails de commande Mollie non trouvés!';
|
410 | 410 | $_['text_no_refund'] = 'Le remboursement ne peut être traité!';
|
|
415 | 415 | </file>
|
416 | 416 |
|
417 | 417 | <file name="admin/language/french/sale/order.php">
|
418 |
| - <operation error="skip"> |
| 418 | + <operation error="log"> |
419 | 419 | <search position="after"><![CDATA[// Text]]></search>
|
420 | 420 | <add><![CDATA[$_['button_refund'] = 'Rembourser';
|
421 | 421 | $_['text_order_not_found'] = 'Détails de commande Mollie non trouvés!';
|
|
427 | 427 | </file>
|
428 | 428 |
|
429 | 429 | <file name="admin/view/template/sale/order_info.tpl">
|
430 |
| - <operation error="skip"> |
| 430 | + <operation error="log"> |
431 | 431 | <search position="before"><![CDATA[<?php echo $footer; ?>]]></search>
|
432 | 432 | <add><![CDATA[
|
433 | 433 | <script type="text/javascript"><!--
|
@@ -522,7 +522,7 @@ $('.alert').remove();
|
522 | 522 | </file>
|
523 | 523 |
|
524 | 524 | <file name="admin/view/template/sale/order_info.twig">
|
525 |
| - <operation error="skip"> |
| 525 | + <operation error="log"> |
526 | 526 | <search position="before"><![CDATA[{{ footer }}]]></search>
|
527 | 527 | <add><![CDATA[
|
528 | 528 | <script type="text/javascript"><!--
|
|
0 commit comments