Disabling fancybox in Prestashop


Sometimes if you apply effects to your product images (like zooming) you want to avoid the “fancybox” effect what Prestashop shows by default.

This effect creates a popup window that shows an enlarged image of the product, usually when you visit the product’s page and click on it.

If you want to disable this effect in Prestashop 1.5 you must go to /themes/{name of your theme}/js/product.js, and there you must comment these lines:

‘hideOnContentClick’: true,
‘transitionIn’ : ‘elastic’,
‘transitionOut’ : ‘elastic’

You can comment this JavaScript code by sorrounding it with /* at the beginning and */ at the end.

This way your Prestashop will no longer show this behaviour!


12:47 PMPosted by in Uncategorized | 0 comments

Add Your Comment

Your email address will not be published.