St3rMiN4ToR Posted May 11, 2018 Share Posted May 11, 2018 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 More sharing options...
doigro Posted May 17, 2018 Share Posted May 17, 2018 (edited) Same issue on new 1.732 Edited May 17, 2018 by doigro (see edit history) Link to comment Share on other sites More sharing options...
doigro Posted May 17, 2018 Share Posted May 17, 2018 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 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