Jump to content

Create A New Order State


garcialopez

Recommended Posts

Hi, I have created a new order state. Its call ''Transfer canceled". I want that it works as a the "canceled order state". In "canceled order state" the product increase his stock in 1. And in my new state the product decrease in 1.

 

I think I have to edit the function checkProductStock in OrderDetail.php. Is it alright?

 

There appear a 'PS_OS_CANCELED' state... how is it the name of my new state?

Link to comment
Share on other sites

I have added my new id order state (11) in OrderDetail.php in checkProductStock function, but it doesn't work. Any idea? Please help!

if($id_order_state != Configuration::get('PS_OS_CANCELED') && $id_order_state != Configuration::get('PS_OS_ERROR') && $id_order_state !=11) {
... //not decrease the stock
}
Edited by garcialopez (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...

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