Send Order shipped Email via script
I am automating the way we update the order status and add the tracking info for an order.
I have written a script to grab the order number and tracking info from the json file and change the order status to shipped.
However, when I update an order via the script, the email does not get sent.
Also, the number of orders awaiting processing does not change (Please look image attached)
How can we ensure:
- The order shipped email gets sent out when the status changes to shipped and tracking info is added via the script
- The number of orders awaiting processing gets updated.
Thanks in advance.
Re: Send Order shipped Email via script
If your script is simply making the change directly in database nothing will trigger emails or any other changes. You need to use the cart built-in functionality to do this. I'd start from admin order modify page and look at the controller class what is running as actions for adding tracking number and changing fulfillment status.
|All times are GMT -8. The time now is 07:01 PM.|
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.