ol1 Posted April 18, 2013 Share Posted April 18, 2013 (edited) Hi! When I enable the mail alerts module for out of stock items it also stays visible for in stock items and combinations (asking users to leave an email address to get an alert when the item is back in stock, when it's already in stock). How do I leave it visible only for out of stock items and combinations and hide it for all the in stock items and combinations? I'm on 1.4.9. Please help! Thanks! Edited April 18, 2013 by ol1 (see edit history) Link to comment Share on other sites More sharing options...
kg4geq Posted June 13, 2013 Share Posted June 13, 2013 I am on prestashop 1.5.4 and have the same problem. Mail Alerts is showing the "Notify me when available" button even when the item is in stock. I read a thread saying someone solved this and that it disappears if the product has "attributes". But I think the error is in the code that it is not hiding the button if the item is in stock because it is not checking the table: ps_product_available id_product quantity field. Can someone please help modify this code so it doesn't appear if the item is in stock? Please 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? Link to comment Share on other sites More sharing options...
vekia Posted July 3, 2013 Share Posted July 3, 2013 Did anyone find a fix for this? what ps version you use and what template? Link to comment Share on other sites More sharing options...
jaimeweb Posted July 3, 2013 Share Posted July 3, 2013 PS 1.5.3.1 template is http://www.prestahub.com/pres-3-theme Link to comment Share on other sites More sharing options...
vekia Posted July 3, 2013 Share Posted July 3, 2013 i think that issue is related to the template that you bought. i suggest you to contact with developer of your theme, because I don't know the sources of it. Link to comment Share on other sites More sharing options...
Debra Martin Posted September 27, 2013 Share Posted September 27, 2013 I am having the same issue. It only happens if I am logged in as a customer. If I log out while on the product page, the text link goes away when the page refreshes. After reading this thread, I performed a little test. I set the theme to the default and the problem exists for the default theme as well. I am not really good with code, but I am looking into it. If anyone else can weigh in here, I would be thankful. Link to comment Share on other sites More sharing options...
Debra Martin Posted September 28, 2013 Share Posted September 28, 2013 I solved my issue. I noticed there was also a link to 'Add your review' in the same div just above the notification link on the product page. I deleted ProductComments from the out-of-stock hook and now the notification link displays only when it should. Maybe this will help anyone else with a similar issue? Link to comment Share on other sites More sharing options...
garyjj127 Posted December 11, 2013 Share Posted December 11, 2013 Hi Debra I also had this problem with the mailalerts module and have noticed that it disappears if I disable the productcomments module. How did you fix this? I'd still like to have the productcomments module installed alongside the mailalerts module! Thanks Gary Link to comment Share on other sites More sharing options...
Debra Martin Posted January 7, 2014 Share Posted January 7, 2014 Hi Gary, I still have the Product Comments module. I just removed it from the ProductOutOfStock hook. I have Product Comments in the following hooks: displayHeader displayProductComparison displayProductTab displayProductTabContent I probably do not need it in all of those places. I am just afraid to start deleting it since it works for now. I hope my answer helps. Sorry it took so long for me to respond. 1 Link to comment Share on other sites More sharing options...
lolezno Posted January 10, 2014 Share Posted January 10, 2014 Thank a lot Debra.... I have removed Product Comments module of ProductOutOfStock hook and it is correct YUJUUUUUUU... BYER Link to comment Share on other sites More sharing options...
sptkyle Posted January 20, 2014 Share Posted January 20, 2014 I had a same problem, but i just read, and fix it. So very thank you Debra. 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