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.
__________________
Version 5.3.6.6
|