s3rgio Posted June 25, 2016 Share Posted June 25, 2016 I need to automatically switch to another state after selecting a particular state in the backoffice. I tried with actionOrderStatusPostUpdate and actionOrderStatusUpdate hooks, but both introduce the new state before entering the current, ie, upside down (after selecting 'Ask for carrier' I want the status changes to 'Carrier requested') 3 - Ask for carrier 10:45 2 - Carrier requested 10:45 1 - Payment received 10:30 When I want to achieve would be: 3 - Carrier requested 10:45 2 - Ask for carrier 10:45 1 - Payment received 10:30 I have also tried actionOrderHistoryAddAfter hook, but I can't manage to get it working (I have no idea of what parameters it is expecting and can't find documentation anywhere). Can someone provide a little help? Thank you! Link to comment Share on other sites More sharing options...
Rolige Posted June 25, 2016 Share Posted June 25, 2016 Maybe these statuses are created and generated by a custom module, because in my demo theses statuses are not listed. check this screenshot... Link to comment Share on other sites More sharing options...
s3rgio Posted June 27, 2016 Author Share Posted June 27, 2016 I created them both (Ask for carrier, Carrier requested) Link to comment Share on other sites More sharing options...
Rolige Posted June 27, 2016 Share Posted June 27, 2016 Dude, if you created both statuses, I think you are managing this from code, then you could be able to change the order in how is called. No body here knows your code. Link to comment Share on other sites More sharing options...
s3rgio Posted June 28, 2016 Author Share Posted June 28, 2016 I just went to BO and clicked over "Add new order status" 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