Nandos Posted July 26, 2016 Share Posted July 26, 2016 (edited) 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 July 28, 2016 by Nandos (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted July 27, 2016 Share Posted July 27, 2016 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. 2 Link to comment Share on other sites More sharing options...
Nandos Posted July 28, 2016 Author Share Posted July 28, 2016 Ok, it's working like a charm Thanks a lot! I edit it as solved now. 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