Gasperus Posted August 24, 2013 Share Posted August 24, 2013 (edited) Hi, using Prestashop 1.5.4.1. Jqzoom works on products and I am wondering if it is possible to use it for subcategories images also? I want to enlarge images there: http://neonrabbit.eu/en/31-girls-tees And all other subcategories. Second question: when you maximize product picture, background is shaded (grey) and picture pops out. Is it possible that when zoom is active, background would also be shaded? Thanks for help, G Edit: I modified default theme. Edited August 24, 2013 by Gasperus (see edit history) Link to comment Share on other sites More sharing options...
BoKr Posted April 12, 2014 Share Posted April 12, 2014 Ehm, I am looking for a code snipped,too Link to comment Share on other sites More sharing options...
Ittu Posted April 13, 2014 Share Posted April 13, 2014 For zoom on categories image:- 1) Add this code in CategoryController.php public function setMedia() { parent::setMedia(); if (Configuration::get('PS_DISPLAY_JQZOOM') == 1) $this->addJqueryPlugin('jqzoom'); $this->context->smarty->assign('jqZoomEnabled', Configuration::get('PS_DISPLAY_JQZOOM')); } 2) Add this javascript code in product-list.tpl $(document).ready(function(){ $('img.jqzoom').jqueryzoom({ xzoom: 264, //zooming div default width(default width value is 200) yzoom: 264, //zooming div default width(default height value is 200) offset: 5, //zooming div default offset(default offset value is 10) position: "left" //zooming div position(default position value is "right") }); }); 3) Add class="jqzoom" in image. 4) Add alt="{$link->getImageLink($producInfo->link_rewrite, $id_imageArry['id_image'], 'large_default')}" in image. 5) delete class_index.php file from cache folder. Ittu Serk Link to comment Share on other sites More sharing options...
Recommended Posts