WhyEs Posted January 20, 2014 Share Posted January 20, 2014 Hello, Is there a hook (or some other kind of API) we can call whenever the status of an order changes (to 'shipped')? And can it be called from command line? Thanks! Link to comment Share on other sites More sharing options...
vekia Posted January 20, 2014 Share Posted January 20, 2014 you can use actionOrderStatusUpdate hook to check new order status, and if new status id is == id of "shipped" you can do somethnig Link to comment Share on other sites More sharing options...
WhyEs Posted January 21, 2014 Author Share Posted January 21, 2014 Thank you for your reply. Is it possible to call actionOrderStatusUpdate from the command line (php-cli)? Link to comment Share on other sites More sharing options...
vekia Posted January 21, 2014 Share Posted January 21, 2014 ohh you're talking about API, not hook. in this case (hook that i attached) you have to create module which will use this hook. it's my bad, probably Link to comment Share on other sites More sharing options...
WhyEs Posted January 21, 2014 Author Share Posted January 21, 2014 (edited) Thanks again for answering. Maybe I should clarify myself: our warehouse sends a track & trace-link to our Prestashop installation which eventually sets the order status to 'shipped'. We would like Prestashop to detect this action and send an e-mail on completion. Is this possible? (Since there is no interaction involved, writing a module doesn't seem to be right solution.) Edited January 28, 2014 by WhyEs (see edit history) Link to comment Share on other sites More sharing options...
WhyEs Posted January 28, 2014 Author Share Posted January 28, 2014 Bump Link to comment Share on other sites More sharing options...
razvy Posted December 24, 2016 Share Posted December 24, 2016 Hi, did you solve this? I'm using an ADODB connector to update the order status to shipped, but I want to send an email as well to the customer when the status is changed. How can I do that? Thanks. Link to comment Share on other sites More sharing options...
razvy Posted October 12, 2017 Share Posted October 12, 2017 Anyone found a solution? Link to comment Share on other sites More sharing options...
AZC Posted May 1, 2018 Share Posted May 1, 2018 On 12/10/2017 at 4:19 PM, razvy said: Anyone found a solution? Any luck. I'm also trying to trigger something after order status is changed in the database. Link to comment Share on other sites More sharing options...
bellini13 Posted May 7, 2018 Share Posted May 7, 2018 if you have an external application updating your database directly, then it is completely bypassing the prestashop application, and prestashop will not know the order status has changed. therefore you will need to come up with a custom solution for this. have you explored what a database trigger is in mysql database yet? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now