yaniv14 Posted August 29, 2015 Share Posted August 29, 2015 Hi, I have a custom order status and I need to fire an event after updating order status in bo to the custom order status. Now I see that the form submission if running AdminOrdersController. So my question is do I need to override postProcess function completely or is there a better way to catch specific order status update? Thanks, Yaniv M Link to comment Share on other sites More sharing options...
razaro Posted August 29, 2015 Share Posted August 29, 2015 Could you use hook actionOrderStatusPostUpdate ? Check this topic and some good explanation from bellini https://www.prestashop.com/forums/topic/366849-changing-order-status-in-hookactionorderstatusupdate Link to comment Share on other sites More sharing options...
yaniv14 Posted September 1, 2015 Author Share Posted September 1, 2015 Thanks Razaro, I was able to get it working with Bellini tutorial. I am using this hook instead 'hookActionOrderStatusUpdate' And I am running some stuff when changing to my custom order status. Is there a way to undo the status update based on the results of my custom function? Which mean saving the new orderstatus only if X happens? Thanks 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