Page 1 of 1

SMS ON ORDER STATUS CHANGE

Posted: Fri Jul 13, 2018 3:59 pm
by sarwaralamini
I am integrating SMS API with my opencart website . USING opencart v3.0.2.0. Successfully integrated when new order placed. Now i want to integrate when Admin changed order status, But can not find the file location from where the status changing code working.
Please help .
Thank You

Re: SMS ON ORDER STATUS CHANGE

Posted: Wed Aug 01, 2018 12:17 am
by MarketInSG
catalog/model/checkout/order.php addorderhistory function.

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Aug 02, 2018 3:36 pm
by ostechnologies
admin/controller/sale/order.php and admin/model/sale/order.php are the to files where you will find the status change code.

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Aug 02, 2018 6:40 pm
by straightlight
In OC v2.3x and OC v3x releases, MarketInSG would have the correct answer. Either the API or the customer still leads to the same location when handling the order status IDs as the final operation while either a new or an already existing order takes effect.

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Feb 27, 2020 4:47 pm
by yas
i am new to opencart please help me to send sms once admin order status change,i am not getting where to chnage code n how to cal button

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Feb 27, 2020 7:03 pm
by straightlight
yas wrote:
Thu Feb 27, 2020 4:47 pm
i am new to opencart please help me to send sms once admin order status change,i am not getting where to chnage code n how to cal button
Nowadays, the easiest path is to create an event. If you do not know how to do it, you could create a new service request in the Commercial Support section of the forum to get this done as a custom job or to contact me if it's an emergency.

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Feb 27, 2020 7:42 pm
by yas
where i get this code,actually i have used sms to after payment confirm,but i need it to admin side once admin order status chnage send sms to customer mobile number

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Feb 27, 2020 7:48 pm
by straightlight
yas wrote:
Thu Feb 27, 2020 7:42 pm
where i get this code,actually i have used sms to after payment confirm,but i need it to admin side once admin order status chnage send sms to customer mobile number
In your event file, on your catalog-end side, simply return the response from the SMS and add it to your order status history table. Then, from the admin, you'll be able to see the results in your sales orders history page.

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Feb 27, 2020 8:29 pm
by yas
sorry confusing,please explain me step by step,in admin side i have to do everything right?

Re: SMS ON ORDER STATUS CHANGE

Posted: Thu Feb 27, 2020 9:32 pm
by thekrotek
You can use Email & SMS Reminders extension to send SMS for orders with selected statuses. It uses cron to check and send notifications. For SMS you need to signup with some provider though.

Re: SMS ON ORDER STATUS CHANGE

Posted: Fri Feb 28, 2020 12:32 pm
by yas
Actually Its working once customer order confirm but now I need it to admin side..if u suggest where call once admin order status change..it's big thank to you

Re: SMS ON ORDER STATUS CHANGE

Posted: Fri Feb 28, 2020 5:37 pm
by yas
once click on add order history sms is going to customer,same procedure i need in order edit page, anybody suggest me to solve my issue

Re: SMS ON ORDER STATUS CHANGE

Posted: Fri Feb 28, 2020 8:49 pm
by straightlight
yas wrote:
Fri Feb 28, 2020 5:37 pm
once click on add order history sms is going to customer,same procedure i need in order edit page, anybody suggest me to solve my issue
The suggestion has already been posted on the above. You simply need to create an event file to handle those transactions. If you don't know how to accomplish this, either create a new service request in the Commercial Support section of the forum or contact me directly to get this done as a custom job.