Jump to content

Code visible on the site (Send to a Friend problems)


Bjarstal

Recommended Posts

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 by Bjarstal (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...