tapukatata Posted April 16, 2021 Share Posted April 16, 2021 I am using Prestashop 1.7.6.9 I need to set me PS_OS_CANCELED status to decrease product stock QTY. I would be happy if anyone can help me with that. Thank you! Link to comment Share on other sites More sharing options...
Ress Posted March 4, 2022 Share Posted March 4, 2022 You should make the changes in the OrderHistory class, changeIdOrderState () method. From what I see, you will need to change in this foreach: foreach ($order->getProductsDetail() as $product) { You should verify exactly what condition it meets, and change the updateQuantity method to decrease the products. 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