jdauer Posted April 30, 2014 Share Posted April 30, 2014 Whenever a user attempts to click on the Send to a Friend link on our site it doesn't do anything. (for example: https://shop.4handsbrewery.com/barware/4-hands-pint-glass.html#send_friend_form) I don't get a popup window, menu, or anything. It just acts like a big dead button. I haven't seen any errors come over the console, either. I'm running Prestashop 1.6.0.5. Any help would be very appreciated. Link to comment Share on other sites More sharing options...
vekia Posted May 1, 2014 Share Posted May 1, 2014 at the end of the product.tpl file try to paste this: $('#send_friend_button').fancybox({ autoScale : true, 'hideOnContentClick': false, 'hideOnOverlayClick': true }); if it will not work, paste this: $('document').ready( function() { $('#send_friend_button').fancybox({ autoScale : true, 'hideOnContentClick': false, 'hideOnOverlayClick': true }); }); 2 Link to comment Share on other sites More sharing options...
jdauer Posted May 1, 2014 Author Share Posted May 1, 2014 Thanks, vekia! The first snippet worked. For whatever reason, even though that code was already in the footer of the page, I guess it needed to be put higher? I don't know, but it works, so I'm not going to complain. Link to comment Share on other sites More sharing options...
jdauer Posted May 1, 2014 Author Share Posted May 1, 2014 I think I spoke too soon. The popup appears now, but it still doesn't do anything. I can't submit the form. Does this module need to be hooked somewhere else before it will work? Link to comment Share on other sites More sharing options...
vekia Posted May 1, 2014 Share Posted May 1, 2014 because my code was only to display popup, you asked about this popup so i don't test any other features. in this case you have to copy also other script of this module to the product.tpl as you did with popup code. Link to comment Share on other sites More sharing options...
jdauer Posted May 1, 2014 Author Share Posted May 1, 2014 I'll attempt that next. I'm noticing the bigger problem here is that it seems like none of my javascript-based modules are working on this page. Link to comment Share on other sites More sharing options...
jdauer Posted May 1, 2014 Author Share Posted May 1, 2014 Managed to fix the issue, but it was not pleasant. In the event anyone runs into this, the problem was that I had installed a template that was compatible with PS 1.5.x, but then upgraded to 1.6.x. Long story short, those Javascript modules broke big time between the transition. Ended up having to roll back to 1.5 and redo a lot of the work. In the future, I guess it pays to be wary of updates. My question is, is there any way to prevent modules from forcing you to update when you're on an older build of Presta? There has to be some way to upgrade things without having to reinvent the wheel with new themes every single time you upgrade Presta? Link to comment Share on other sites More sharing options...
strokes86 Posted May 6, 2014 Share Posted May 6, 2014 Hi, can anybody help me? When i press on send button of module send to a friend, nothing happens. I'm using versión 1.4 of the moduel and 1.5.6 of prestashop. Link to comment Share on other sites More sharing options...
strokes86 Posted May 12, 2014 Share Posted May 12, 2014 anyone? Link to comment Share on other sites More sharing options...
vekia Posted May 12, 2014 Share Posted May 12, 2014 in cases like that it's necessary to inspect website. so share url to your shop. Link to comment Share on other sites More sharing options...
slsdesign Posted July 24, 2014 Share Posted July 24, 2014 Hi, my store's send to a friend button is also not working, as well as the product comment/review button. No action on click, no popup window. We recently installed Prestashop 1.6.0.6 on dev site here: http://69.167.150.125/~mtnmanc/store/ Theme is Cenatasix; Send to a Friend v1.7.2; Product Comments v3.3.6 I tried various suggestions from previous threads, such as adding code to product.tpl and changing permissions, but nothing worked. No changes. Thanks for your support! Link to comment Share on other sites More sharing options...
vekia Posted July 25, 2014 Share Posted July 25, 2014 oops i cannot access to your store from my country Link to comment Share on other sites More sharing options...
thelaptopdude Posted January 28, 2015 Share Posted January 28, 2015 at the end of the product.tpl file try to paste this: $('#send_friend_button').fancybox({ autoScale : true, 'hideOnContentClick': false, 'hideOnOverlayClick': true }); if it will not work, paste this: $('document').ready( function() { $('#send_friend_button').fancybox({ autoScale : true, 'hideOnContentClick': false, 'hideOnOverlayClick': true }); }); Hello vekia i get this error message when i send to friend Your e-mail could not be sent. Please check the e-mail address and try again. ps 1.6.0.11 default-bootstrap Please respond PLEASE HELP Link to comment Share on other sites More sharing options...
Recommended Posts