Bjarstal Posted June 16, 2015 Share Posted June 16, 2015 (edited) Hello Prestashop 1.5.6.2 "Send to a friend button" was dead, but I found a solution by Vekia, but another problem appeard, the code is visble on the site, and my question is how to hide the code? https://www.prestashop.com/forums/topic/327403-send-to-a-friend-module-doesnt-open-on-click/?p=1656774 I used the first proposal by Vekia, $('#send_friend_button').fancybox({ autoScale : true, 'hideOnContentClick': false, 'hideOnOverlayClick': true }); And now the Send to a Friend works just fine, but the problem is that the code is visble on the site ! You can see that at the bottom of this page: https://www.protectionantivol.fr/armoires-de-securite-pour-le-stockage-de-liquides-inflammables/178-af-180-30-armoire-de-securite-coupe-feu-30-minutes-.html Below you can see how I put in the code: </div> {/if} {if isset($packItems) && $packItems|@count > 0} <div id="blockpack"> <h2>{l s='Pack content'}</h2> {include file="$tpl_dir./product-list.tpl" products=$packItems} </div> {/if} {/if} <!-- Below added by Hans after reccomendation by Vekia on Prestahop forums. Without the below Send to a friend does not work. https://www.prestashop.com/forums/topic/327403-send-to-a-friend-module-doesnt-open-on-click/?p=1656774 --> $('#send_friend_button').fancybox({ autoScale : true, 'hideOnContentClick': false, 'hideOnOverlayClick': true }); How do I hide the code ? Edited June 16, 2015 by Bjarstal (see edit history) 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