Jump to content

[v1.6.1.5] [SOLVED] Show notify me when available box if accept order when out of stock is ON


Nandos

Recommended Posts

Hi guys.

I'm wondering if there is a way to show the notify me when available box also on products with "Accept order if out of stock" is enabled. This could be an help for customers that want to know when a product is available even if they could order it, you know, for decision making purposes etc...

Let me know if this is doable. Thanks in advance  :)

Edited by Nandos (see edit history)
Link to comment
Share on other sites

Try changing the if statement at the top of the hookActionProductOutOfStock function at about line 463 of modules/mailalerts.php from:

		if (!$this->customer_qty ||
			!Configuration::get('PS_STOCK_MANAGEMENT') ||
			Product::isAvailableWhenOutOfStock($params['product']->out_of_stock))
			return;

to:

		if (!$this->customer_qty ||
			!Configuration::get('PS_STOCK_MANAGEMENT')/* ||
			Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)*/)
			return;

This should stop the function returning when the product is available when out of stock.

  • Like 2
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...