shaun_imakr Posted October 20, 2014 Share Posted October 20, 2014 When someone creates the order and the product is out of stock, the status automatically switches to "On Backorder". Is there any way to turn this off? We have a couple of internal statuses that we use inside the company and when we create the order in the backoffice, it just changes our custom status to "On Backorder". Can we disable this feature? Thanks Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted October 21, 2014 Share Posted October 21, 2014 What version of prestashop u use? link? Link to comment Share on other sites More sharing options...
shaun_imakr Posted October 21, 2014 Author Share Posted October 21, 2014 http://www.imakr.com Built on Prestashop 1.6.0.9. But this is more backoffice issue, so I'm not sure if you're going to see anything unusual in the front-end. Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted October 21, 2014 Share Posted October 21, 2014 Sure, but i am not sure what u exactly want. Do you want to allow to your customers to order any product and get slip (waiting for your payment or something else) ? Link to comment Share on other sites More sharing options...
shaun_imakr Posted October 21, 2014 Author Share Posted October 21, 2014 No, no... So, for example we have a product which is out of stock, but we still want to offer it. If a customer places the order, he'll get backorder email, the order status will be set to "On Backorder" and that's fine. But for example, if we want to create an order in the backoffice with the product which is not in the stock then we want to use our internal order statuses (i.e. "Deliver from store #3"). Once we click on "Create the order" button, the platform automatically updates the status to "On Backorder" which we don't want to have. It seems like an easy fix but I can't find the function which does that. Link to comment Share on other sites More sharing options...
ZikmaSolutions Posted October 21, 2014 Share Posted October 21, 2014 Hmm... interesting.... Why u just not leave 'Preparation in Progress' as default , and then just select status (i.e. "Deliver from store #3").On that status (i.e. "Deliver from store #3"). just disable show PDF, dont sent mail to customer and etc. Link to comment Share on other sites More sharing options...
shaun_imakr Posted October 21, 2014 Author Share Posted October 21, 2014 It's not the problem to change the order status after we create the order, but it would be much easier for us to have our statuses locked to those we set when the order is being created. Link to comment Share on other sites More sharing options...
shaun_imakr Posted October 22, 2014 Author Share Posted October 22, 2014 I found the solution In classes/PaymentModule.php just remove this if statement if (Configuration::get('PS_STOCK_MANAGEMENT') && $order_detail->getStockState()) { $history = new OrderHistory(); $history->id_order = (int)$order->id; $history->changeIdOrderState(Configuration::get('PS_OS_OUTOFSTOCK'), $order, true); $history->addWithemail(); } 2 Link to comment Share on other sites More sharing options...
Recommended Posts