Jump to content

Stop Out of Stock email


Recommended Posts

Hello Everyone

Thanks for taking time to read this.

When uploading products, I have them set to available and in back office I have order out of stock item enabled and enable stock management to NO

There are no quantities mentioned in the lists I am uploading, and this is difficult for us becuase we dont have real time stock data available,

We are having issue that prestashop is automatically sending out of stock emails to customers after orders have been placed, I checked the emails and messages preset ones Under Orders - Order Messages and changed that to different message, this is what I thought was being sent automatically, however I have changed this and customers are still getting out of stock messages automatically.

Please can someone tell me where these messages are being sent from and how do i stop them being sent out.

Kind Regards

Link to comment
Share on other sites

It looks like it is lines 2[spam-filter]297 of classes/PaymentModule.php (in PrestaShop v1.3.1) that changes the order state to "out of stock":

if (isset($outOfStock) AND $outOfStock)
{
   $history = new OrderHistory();
   $history->id_order = intval($order->id);
   $history->changeIdOrderState(_PS_OS_OUTOFSTOCK_, intval($order->id));
   $history->addWithemail();
}



You could try /* commenting out */ that code.

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