mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 14:46:06 +03:00
fix abandoned order
This commit is contained in:
parent
8852b023e0
commit
ad4e706dd0
@ -5,12 +5,18 @@
|
||||
<vqmver required="true">2.3.x</vqmver>
|
||||
<author>retailcrm.ru</author>
|
||||
|
||||
<file path="catalog/model/checkout/" name="order.php">
|
||||
<file path="catalog/controller/checkout/" name="success.php">
|
||||
<operation error="skip">
|
||||
<search position="before" ><![CDATA[return $order_id]]></search>
|
||||
<search position="before" ><![CDATA[$this->cart->clear()]]></search>
|
||||
<add><![CDATA[
|
||||
$this->load->model('account/order');
|
||||
$this->load->model('checkout/order');
|
||||
$this->load->model('retailcrm/order');
|
||||
$this->model_retailcrm_order->sendToCrm($data, $order_id);
|
||||
|
||||
$order = $this->model_checkout_order->getOrder($this->session->data['order_id']);
|
||||
$order['products'] = $this->model_account_order->getOrderProducts($this->session->data['order_id']);
|
||||
|
||||
$this->model_retailcrm_order->sendToCrm($order, $this->session->data['order_id']);
|
||||
]]></add>
|
||||
</operation>
|
||||
</file>
|
||||
@ -37,5 +43,4 @@
|
||||
]]></add>
|
||||
</operation>
|
||||
</file>
|
||||
|
||||
</modification>
|
||||
|
Loading…
Reference in New Issue
Block a user