Jump to content

Problem with status change


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...