Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <!-- @customer: new order status is available -->
  2. <file name="admin/controller/sale/order.php">
  3. <operation>
  4. <search position="before"><![CDATA[$this->model_sale_order->addOrderHistory($this->request->get['order_id'], $this->request->post);]]></search>
  5. <add>
  6. <![CDATA[
  7. // [BEGIN]
  8.  
  9. if (true === $this->oc_smsc_init() && $this->config->get('oc_smsc_customer_new_order_status') && $this->request->post['notify']
  10. && (($mes_st = $this->config->get('oc_smsc_status_id_'.($osid = $this->request->post['order_status_id']))) != "")) {
  11. $o_i = $this->oc_smsc_gateway->get_order_info($mes_st, $this->request->get['order_id'], $osid);
  12.  
  13. if ($o_i['order_status_id'] != $osid)
  14. $this->oc_smsc_gateway->send($this->config->get('oc_smsc_login'), $this->config->get('oc_smsc_password'), $o_i['phone'],
  15. $o_i['message'], $this->config->get('oc_smsc_signature'));
  16. }
  17. // [END]
  18. ]]>
  19. </add>
  20. </operation>
  21. </file>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement