Jump to content

Change Order Status PS_OS_CANCELED to Decrease QTY instead to Increase


tapukatata

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.

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