kg4geq Posted June 14, 2013 Share Posted June 14, 2013 I installed mail alerts 2.4 on my version of prestashop 1.5.4.1. The notification correctly sends. However, the "notify me when available" button appears even when the item is in stock. I read through lots of forums and tried installing the latest version from github, but it still shows when I have an item that has quantity in stock. any suggestions? thanks, -Mark Link to comment Share on other sites More sharing options...
kg4geq Posted June 14, 2013 Author Share Posted June 14, 2013 I looked through the code and there is a <hide> function, but it looks to be setup to work with only product attributes and not quantity. anyone have a workaround? Link to comment Share on other sites More sharing options...
jaimeweb Posted July 3, 2013 Share Posted July 3, 2013 Did anyone find a fix for this? 1 Link to comment Share on other sites More sharing options...
gossens.presta Posted July 4, 2013 Share Posted July 4, 2013 I have the same problem... Link to comment Share on other sites More sharing options...
Antonino - Uebix.com Posted October 8, 2013 Share Posted October 8, 2013 Hello to all, I have the same problem and fix this with a small change to the file mailalerts.php in the modules/mailalerts folder. The original code is: public function hookActionProductOutOfStock($params) { if (!$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) return; The change is this: public function hookActionProductOutOfStock($params) { if ((isset($params['product']->quantity) && $params['product']->quantity > 0) || !$this->_customer_qty || !Configuration::get('PS_STOCK_MANAGEMENT') || Product::isAvailableWhenOutOfStock($params['product']->out_of_stock)) return; 1 Link to comment Share on other sites More sharing options...
fishordog Posted March 20, 2014 Share Posted March 20, 2014 was looking for this for a long time, thanks Link to comment Share on other sites More sharing options...
Recommended Posts