X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Send Order shipped Email via script (https://forum.x-cart.com/showthread.php?t=78050)

siddharth.puri@wheelandba 11-02-2020 07:35 PM

Send Order shipped Email via script
 
1 Attachment(s)
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.

cflsystems 11-03-2020 05:36 AM

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 03:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.