Jump to content

Change Order Status PS_OS_CANCELED to Decrease QTY instead to Increase


tapukatata
 Share

Recommended Posts

  • 10 months later...

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.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More