javiidoce Posted 2 hours ago Share Posted 2 hours ago When I change the status of the order I run a function in my module to change the order data to others with an api. The thing is that the status changes but in the status history of the order it does not appear that this status has ever been set on that order. I use the ActionOrderStatusPostUpdate hook. Should I do it another way with a different hook so as not to interrupt the function that makes the state change? Link to comment Share on other sites More sharing options...
Daresh Posted 2 hours ago Share Posted 2 hours ago If your function is complex and may interrupt status change I would suggest: 1. On that hook only store the order ID in some own database table. 2. Have a CRON task with another script that reads IDs and processes them. 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