Jump to content

Using jqZoom and Fancybox zoom *together*


amitthakur

Recommended Posts

Hi,

 

I use the bootstrap-default theme. I have jqZoom enabled in my shop for the product page.

 

I need the Fancybox zoom box to pop up if the product image is clicked on. Alternatively, I have some static text below the product image. It would suffice if clicking on that text launched the Fancybox zoom as well.

 

I have been examining the product.tpl file but cannot see any mention of Fancybox (presumably there is an 'onclick' event and handler for that?).

 

Can someone help, please? Thanks.

 

  

Link to comment
Share on other sites

  • 1 month later...

If jqzoom is enabled, the necessary html code for fancybox is not loaded.

 

Take a look inside product.tpl file and serach for <span id="view_full_size">

	<span id="view_full_size">
		{if $jqZoomEnabled && $have_image && !$content_only}
			{* here is your jqzoom html code, and will be loaded if jqzoom is enabled *}
		{else}
			{* here is your fancybox html code, and will not be loaded if jqzoom is enabled *}
		{/if}
	</span>

You need to remove the if/else statement, so the fancybox html code will be loaded even though jqzoom is enabled.

Edited by gonebdg - webindoshop.com (see edit history)
Link to comment
Share on other sites

  • 1 month later...

If jqzoom is enabled, the necessary html code for fancybox is not loaded.

 

Take a look inside product.tpl file and serach for <span id="view_full_size">

	<span id="view_full_size">
		{if $jqZoomEnabled && $have_image && !$content_only}
			{* here is your jqzoom html code, and will be loaded if jqzoom is enabled *}
		{else}
			{* here is your fancybox html code, and will not be loaded if jqzoom is enabled *}
		{/if}
	</span>

You need to remove the if/else statement, so the fancybox html code will be loaded even though jqzoom is enabled.

 

Thanks for the response (and sorry about the high-latency revert from my end).

 

Removing the if-else statement doesn't quite get me there. It still behaves as if only the jqZoom module were enabled. Not sure why. I would have expected that removing the if-else statement would have both the jqZoom and fancybox code loading but the page in the browser does not show any evidence of having loaded fancybox.

Link to comment
Share on other sites

Thanks for the response (and sorry about the high-latency revert from my end).

 

Removing the if-else statement doesn't quite get me there. It still behaves as if only the jqZoom module were enabled. Not sure why. I would have expected that removing the if-else statement would have both the jqZoom and fancybox code loading but the page in the browser does not show any evidence of having loaded fancybox.

 

Please bear in mind ... if you've just change or do modification into your theme files and the change does not reflected,

don't forget to clear the PrestaShop smarty cache and compile.

B.O > Advance Parameters > Performance

click "Clear cache" menu available on the top right corner

 

give it a try

Link to comment
Share on other sites

  • 9 months later...

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...