geochrist Posted April 7, 2016 Share Posted April 7, 2016 Hi to all, I am using Prestashop 1.6.0.6 for more than a year now. Everything is fine but lately the module "Send to a friend is not working". In particular nothing happens when I click on the relative link in the product screen. The usual form to fill in name , email address and text does not appear any more. Here is a link to a product page on my site: http://usedparts.gr/index.php?id_product=4216&controller=product&id_lang=2 Thank you for your time and help George Link to comment Share on other sites More sharing options...
geochrist Posted April 8, 2016 Author Share Posted April 8, 2016 Hi, Can anyone help me on this? Thanks Link to comment Share on other sites More sharing options...
sandipchandela Posted April 8, 2016 Share Posted April 8, 2016 Hello george, the main reason for not working send to friend is jquery error. I think you r using this module for search. it gives blocksearch_type is undefined so javascript will work until this error resolved. http://addons.prestashop.com/en/11066-jolisearch-advanced-visual-search.html Ask thirdparty support team for solving issue. Link to comment Share on other sites More sharing options...
geochrist Posted April 8, 2016 Author Share Posted April 8, 2016 Thank you. I will check with the module developoer. Link to comment Share on other sites More sharing options...
geochrist Posted April 8, 2016 Author Share Posted April 8, 2016 Ok. I had to disable the default prestashop seach module. I forgot to disable it from Display Header hook. Now everything is ok. Thanks archSandy Link to comment Share on other sites More sharing options...
sbempire Posted August 14, 2016 Share Posted August 14, 2016 Hi all, I am experiencing similar problem as described by geochrist, unfortunately his solution doesn't solve my problem. Please can someone help me with a the solution. This is the link to my product page https://www.kisshoes.ch/de/home/11-mhoneiro.html#send_friend_form. You can observe from the product page url that the page is on send a friend form page but the form is not visible. I can find any form to fill. Thank you for the support Joel Link to comment Share on other sites More sharing options...
rocky Posted August 15, 2016 Share Posted August 15, 2016 We can't see your page because it's in maintenance mode. Link to comment Share on other sites More sharing options...
sbempire Posted August 15, 2016 Share Posted August 15, 2016 Hi Rocky, thank you for the message. I was fortunate to come across your message because it landed in my spam box. I have removed my website from maintenance mode. Please go ahead and check the problem. Thank you for taking your time Link to comment Share on other sites More sharing options...
vekia Posted August 15, 2016 Share Posted August 15, 2016 Hi Rocky, thank you for the message. I was fortunate to come across your message because it landed in my spam box. I have removed my website from maintenance mode. Please go ahead and check the problem. Thank you for taking your time im not sure how it works in your theme, but the code: $(document).ready(function(){ $('#send_friend_button').toggle(function(){ $('#send_friend_form').parent().show(); }, function() { $('#send_friend_form').parent().hide(); }); }); should allow to display / hide send to a friend form. paste it at the end of: https://www.kisshoes.ch/themes/warehouse/js/modules/sendtoafriend/sendtoafriend.js Link to comment Share on other sites More sharing options...
sbempire Posted August 16, 2016 Share Posted August 16, 2016 Thank you vekia for responding, i will definitely include the codes and inform you on the outcome. Link to comment Share on other sites More sharing options...
sbempire Posted August 16, 2016 Share Posted August 16, 2016 Ok vekia, here is what I discovered as I followed this path "https://www.kisshoes.ch/themes/warehouse/js/modules/sendtoafriend/sendtoafriend.js" the module sendtoafriend in my warehouse theme is virtually empty. Only sendtoafriend-extra.tpl is in it. Obviously, the sendtoafrind.js is not inside the module. However, in the modules folder in the public_html is where sendtoafriend.js can be found, but unfortunately it is empty, no script written on it. what should I do in this case? Thank you Link to comment Share on other sites More sharing options...
vekia Posted August 16, 2016 Share Posted August 16, 2016 this is the path to the file:themes/warehouse/js/modules/sendtoafriend/sendtoafriend.js and this is the right file, paste code at the end of this file Link to comment Share on other sites More sharing options...
sbempire Posted August 16, 2016 Share Posted August 16, 2016 Great! vekia, thank you so much for the piece of code. Now the form show when i click on sendtoafriend button and can send a message. However, two issues exist still. Firstly, the form doesn't pop-up as a stand alone form. The information on the sendtoafriend form lie behind other information on the website. Secondly, the exit button doesn't work. Anything I do to solve the issue? Thanks for your help Link to comment Share on other sites More sharing options...
sbempire Posted August 18, 2016 Share Posted August 18, 2016 Hi everyone, the send button of my sendtoafriend function is not working. It was working when the sendtoafriend form did not align fine on my website, now that I corrected the alignment problem the send button stoped working. PleaseI need a help if someone knows what could be causing the problem. Thank you Link to comment Share on other sites More sharing options...
sandipchandela Posted August 18, 2016 Share Posted August 18, 2016 (edited) Hi everyone, the send button of my sendtoafriend function is not working. It was working when the sendtoafriend form did not align fine on my website, now that I corrected the alignment problem the send button stoped working. PleaseI need a help if someone knows what could be causing the problem. Thank you Still one jQuery error is there. Edited August 18, 2016 by archSandy (see edit history) Link to comment Share on other sites More sharing options...
sbempire Posted August 19, 2016 Share Posted August 19, 2016 @archsandy "Still one jQuery error is there." what does this jQuery error mean and how can I resolve it? Thank you Link to comment Share on other sites More sharing options...
sandipchandela Posted August 19, 2016 Share Posted August 19, 2016 Contact theme support. It's relevant to them. Do confirm with them if they provide send to friend module feature for product page or not? That is your main concern. Link to comment Share on other sites More sharing options...
ErwanCorre Posted November 3, 2016 Share Posted November 3, 2016 Hi ! in my case, i solved the problem ! The problem came from the folder and files attributes... I changed the CHMOD (755 for the folders, and 644 for the files) and then... It Works! Ouf ! Link to comment Share on other sites More sharing options...
sandipchandela Posted November 4, 2016 Share Posted November 4, 2016 Hi ! in my case, i solved the problem ! The problem came from the folder and files attributes... I changed the CHMOD (755 for the folders, and 644 for the files) and then... It Works! Ouf ! Sounds good. Enjoy Prestashopping Link to comment Share on other sites More sharing options...
mowgli Posted May 24, 2021 Share Posted May 24, 2021 Hi, I have same problem. This solution by vekia: $(document).ready(function(){ $('#send_friend_button').toggle(function(){ $('#send_friend_form').parent().show(); }, function() { $('#send_friend_form').parent().hide(); }); }); Works but ony on desktop versin. On mobile devices message form is still open in modal. And after press send button do nothing. 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