Jump to content

Wrong status order


St3rMiN4ToR

Recommended Posts

Hello

I have an issue with status order. I am using the last Prestashop version  1.7.3.2.

I have an article with 1 stock. When a customer buy it, the articles go from 1 to 0, and this is correct. But why the status order is on backorder? It's not -1 or -2 in stock, but 0.

Is there any fix?

Thanks in advance.

Link to comment
Share on other sites

in classes/PaymentModule.php
....

// line 740 change last comparision from
// Switch to back order if needed
 if (Configuration::get('PS_STOCK_MANAGEMENT') && 
 ($order_detail->getStockState() || 
 $order_detail->product_quantity_in_stock <= 0)) {
to

// Switch to back order if needed
 if (Configuration::get('PS_STOCK_MANAGEMENT') && 
 ($order_detail->getStockState() || 
 $order_detail->product_quantity_in_stock < 0)) {

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