Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- @customer: new order status is available -->
- <file name="admin/controller/sale/order.php">
- <operation>
- <search position="before"><![CDATA[$this->model_sale_order->addOrderHistory($this->request->get['order_id'], $this->request->post);]]></search>
- <add>
- <![CDATA[
- // [BEGIN]
- if (true === $this->oc_smsc_init() && $this->config->get('oc_smsc_customer_new_order_status') && $this->request->post['notify']
- && (($mes_st = $this->config->get('oc_smsc_status_id_'.($osid = $this->request->post['order_status_id']))) != "")) {
- $o_i = $this->oc_smsc_gateway->get_order_info($mes_st, $this->request->get['order_id'], $osid);
- if ($o_i['order_status_id'] != $osid)
- $this->oc_smsc_gateway->send($this->config->get('oc_smsc_login'), $this->config->get('oc_smsc_password'), $o_i['phone'],
- $o_i['message'], $this->config->get('oc_smsc_signature'));
- }
- // [END]
- ]]>
- </add>
- </operation>
- </file>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement