forked from robokassa/cms-opencart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.xml
22 lines (21 loc) · 1.14 KB
/
install.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<modification>
<code>Robokassa</code>
<name>Robokassa opencart</name>
<version>1.0.0</version>
<author>Robokassa</author>
<link>https://robokassa.com</link>
<file path="catalog/controller/api/order.php">
<operation>
<search><![CDATA[$this->model_checkout_order->addOrderHistory($order_id, $this->request->post['order_status_id'], $this->request->post['comment'], $this->request->post['notify'], $this->request->post['override']);]]></search>
<!-- подключение виджета карты в страницу заказа -->
<add position="before"><![CDATA[
/* Робокасса */
if($order_info['order_status_id'] != $this->request->post['order_status_id'] && $order_info['payment_code'] == 'robokassa' && $this->request->post['order_status_id'] == $this->config->get('payment_robokassa_order_status_id_2check') && $this->config->get('payment_robokassa_fiscal') == 1){
$this->load->model('extension/payment/robokassa');
$this->model_extension_payment_robokassa->sendSecondCheck($order_id);
}
/* Робокасса */
]]></add>
</operation>
</file>
</modification>