Jump to content

Hook after order is complete


Recommended Posts

Hello,

I am developing a module which only function is to change the carrier from A to B when total amount paid is over a designated quantity.

I tried hook ActionValidateOrder but it seems to me that it "starts" working before the order is fully complete and all the tables in the DB have been inserted with the order's data. I hace tried to change the carrier "offline" with a simple php script (no hooks, just setting the order's id manually) and it works but in real time it does not.

What I am looking for is a hook that activates when an order has entered the system, payment accepted or not, and everything is already set, like if it was made 5 minutes ago, but in the moment it's made.

I hope I am explaining myself. I am using Prestashop 1.6. I would say actionOrderStatusPostUpdate didn't work either.

Thanks for any help!

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...