- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
PrestaShop 1.6.x. How to manage product images zoom feature
February 4, 2015
This tutorial will guide you through on how to manage product images zoom.
PrestaShop 1.6.x. How to manage product images zoom feature
Product image has a zoom feature when the cursor hovers over it. In order to change the zoomed image size, you need to follow the steps below:
- Log into your PrestaShop admin panel.
- Navigate to Preferences -> Images:
- Change the size of thickbox_default and tm_thickbox_default image types:
- Once you have added new width and height sizes, click Save button:
- Also, you need to scroll down the same page and Regenerate Images:
- Use FTP or Cpanel and navigate to themes/themeXXX/js/product.js file, where “XXX” means the number of the theme you have purchased.
- Chose the Edit file option and look for the coding:
if (typeof(jqZoomEnabled) != 'undefined' && jqZoomEnabled) { $('.jqzoom').jqzoom({ zoomType: 'innerzoom', //innerzoom/standard/reverse/drag zoomWidth: 458, //zooming div default width(default width value is 200) zoomHeight: 458, //zooming div default width(default height value is 200) xOffset: 21, //zooming div default offset(default offset value is 10) yOffset: 0, title: false }); }
You need to edit zoomWidth and zoomHeight options values.
Let’s change 458 to 558 and save changes.
- Clear PrestaShop cache and refresh the products page to see the changes.
-
Note that you should keep the aspect ratio between the large_default and thickbox_default images sizes.
Feel free to check the detailed video tutorial below: