Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Send Order shipped Email via script

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 11-02-2020, 07:35 PM
 
siddharth.puri@wheelandba siddharth.puri@wheelandba is offline
 

Advanced Member
  
Join Date: Nov 2019
Posts: 66
 

Default 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.
Attached Thumbnails
Click image for larger version

Name:	number of orders awaiting processing.png
Views:	947
Size:	24.6 KB
ID:	5575  
__________________
Version 5.3.6.6
Reply With Quote
  #2  
Old 11-03-2020, 05:36 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:35 PM.

   

 
X-Cart forums © 2001-2020