{"id":47230,"date":"2015-04-17T06:58:37","date_gmt":"2015-04-17T10:58:37","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=47230"},"modified":"2015-04-17T06:58:37","modified_gmt":"2015-04-17T10:58:37","slug":"virtuemart-3-x-how-to-manage-product-images-zoom-jqzoom","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/virtuemart-3-x-how-to-manage-product-images-zoom-jqzoom.html","title":{"rendered":"VirtueMart 3.x. How to manage product images zoom (jqzoom)"},"content":{"rendered":"<p>This tutorial shows how to manage <strong>Zoom<\/strong> in VirtueMart 3.x.<\/p>\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=toNiPjtKyXg?width=1280&amp;height=720\" rel=\"prettyPhoto\">VirtueMart 3.x. How to manage product images zoom (jqzoom)<\/a>\r\n\r\n<p>JQZoom is a Javascript image magnifier created using the popular jQuery javascript framework which allows you to apply a magnification to highly detailed images.<\/p>\r\n<p>In order to manage Zoom, you should perform the following:<\/p>\r\n\r\n<ol>\r\n<li><p>Locate the JQZoom core file <strong>jqzoom-core.js<\/strong> in <strong>templates\\theme***\\js\\vm directory<\/strong> via FTP and open it using Adobe Dreamweaver or any other php\/html editor like Wordpad, Notepad, Notepad ++, etc.<\/p><\/li>\r\n<li>\r\n  <p>Navigate to <strong>line 688<\/strong> in <strong>jqzoom-core.js <\/strong>to locate the <strong>JQZoom plugin default settings<\/strong> which are as follows:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom1-300x176.jpg\" alt=\"VirtueMart. How to manage Zoom1\" width=\"300\" height=\"176\" class=\"aligncenter size-medium wp-image-47231\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom1-300x176.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom1-150x88.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom1.jpg 891w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n\r\n  <p> &#8211; <strong>zoomType:<\/strong> Default: <strong>standard<\/strong>. The other option values are <strong>&#8216;reverse&#8217;<\/strong>,&#8217;<strong>drag&#8217;<\/strong>,<strong>&#8216;innerzoom&#8217;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>zoomWidth:<\/strong> Default: <strong>300<\/strong>. The popup window width showing the zoomed area.<\/p> \r\n  <p> &#8211; <strong>zoomHeight:<\/strong> Default: <strong>300<\/strong>. The popup window height showing the zoomed area.<\/p>\r\n  <p> &#8211; <strong>xOffset:<\/strong> Default: <strong>10<\/strong>. The popup window x offset from the small image <strong>. Always positive to move the popup window more on the right if position is &#8216;right&#8217; or more on the left if position is &#8220;left&#8221;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>yOffset:<\/strong> Default: <strong>0<\/strong>. The popup window y offset from the small image. <strong>Always positive to move the popup window more on the top if position is &#8220;top&#8221; or more on the bottom if position is &#8220;bottom&#8221;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>position:<\/strong> Default: <strong>right<\/strong>. The popup window position. Admitted values: <strong>&#8216;right&#8217;<\/strong>, <strong>&#8216;left&#8217;<\/strong>, <strong>&#8216;top&#8217;<\/strong>,<strong>&#8216;bottom&#8217;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>preloadImages:<\/strong> Default: <strong>true<\/strong>. <strong>If set to true, jqzoom will preload large images<\/strong>.<\/p>\r\n  <p> &#8211; <strong>preloadText:<\/strong> Default: <strong>Loading zoom<\/strong>. <strong>The text to show while preloading images<\/strong>.<\/p>\r\n  <p> &#8211; <strong>title<\/strong>: Default: <strong>true<\/strong>. Shows a small title over the zoomed window, it can be the anchor title and if not specified, it will get the small image title.<\/p>\r\n  <p> &#8211; <strong>lens<\/strong>: Default: <strong>true<\/strong>. <strong>If set to false, the small lens over the image won&#8217;t show<\/strong>.<\/p>\r\n  <p> &#8211; <strong>imageOpacity:<\/strong> Default: <strong>0.4<\/strong>. Sets the image opacity <strong>when the &#8216;zoomType&#8217; option is set to &#8216;reverse&#8217;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>showEffect<\/strong>: Default: <strong>show<\/strong>. The effect used to display the popup window. Options available: <strong>&#8216;show&#8217;, &#8216;fadein&#8217;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>hideEffect<\/strong>: Default: <strong>hide<\/strong>. The effect used to display the popup window. Options available: <strong>&#8216;hide&#8217;, &#8216;fadeout&#8217;<\/strong>.<\/p>\r\n  <p> &#8211; <strong>fadeinSpeed<\/strong>: Default: <strong>slow<\/strong>. Changes fade in speed <strong>in case the showEffect option is set to &#8216;fadein&#8217;<\/strong>. Options: <strong>&#8216;fast&#8217;, &#8216;slow&#8217;, any numberic value<\/strong>.<\/p>\r\n  <p> &#8211; <strong>fadeoutSpeed:<\/strong> Default: <strong>2000<\/strong>. Changes fade out speed <strong>in case the hideEffect option is set to &#8216;fadeout&#8217;<\/strong>. Options: <strong>&#8216;fast&#8217;, &#8216;slow&#8217;, any numeric value<\/strong>.<\/p><\/li>\r\n  <li>\r\n    <p>In order to <strong>change the JQZoom options<\/strong> on the template product page, you should open the <strong>default_images.php<\/strong> file located in <strong>templates\\theme***\\html\\com_virtuemart\\productdetails<\/strong> directory on FTP with Adobe Dreamweaver or any other php\/html editor like Wordpad, Notepad, Notepad ++, etc.<\/p><\/li>\r\n  <li>\r\n    <p>Locate the <strong>piece of code for JQZoom on line 34<\/strong> which is as follows:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom2-300x205.jpg\" alt=\"VirtueMart. How to manage Zoom2\" width=\"300\" height=\"205\" class=\"aligncenter size-medium wp-image-47232\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom2-300x205.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom2-150x102.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom2.jpg 785w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n    <p>In order to change the zoomType option <strong>, replace zoomType:&#8221;innerzoom&#8221; with zoomType: &#8220;drag&#8221; or zoomType:&#8221;standard&#8221;<\/strong> line of code depending on your needs (see point 2 of this tutorial for the default and other options available).<\/p>\r\n  <\/li>\r\n  <li>\r\n  <p>In case you would like to <strong>change the JQZoom option which is not mentioned in the default_images.php file<\/strong> on line 34, please <strong>copy-paste<\/strong> the default line of code for the certain option from templates\\theme***\\js\\vm\\jqzoom-core.js file, line 688 to templates\\theme***\\html\\com_virtuemart\\productdetails\\default_images.php file, line 34, change the option value to the option value you prefer, removing the quotation marks (<strong>i.e. showEffect: &#8216;show&#8217; should be copied and added to the default_images.php file as showEffect: show<\/strong>) and click File-Save in Adobe Dreamweaver to save the changes to the file.<\/p><\/li>\r\n  <li>\r\n  <p>In order to <strong>disable the JQZoom<\/strong> from the product page, comment the following piece of code in <strong>templates\\theme***\\html\\com_virtuemart\\productdetails\\default_images.php file, line 34<\/strong> using <strong>\/*&#8230;.*\/<\/strong> tags:<\/p>\r\n\r\n<a href=\"\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom3-300x217.jpg\" alt=\"VirtueMart. How to manage Zoom3\" width=\"300\" height=\"217\" class=\"aligncenter size-medium wp-image-47233\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom3-300x217.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom3-150x108.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/VirtueMart.-How-to-manage-Zoom3.jpg 715w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n\r\n<a href=\"http:\/\/www.youtube.com\/watch?v=toNiPjtKyXg?width=1280&amp;height=720\" rel=\"prettyPhoto\">VirtueMart 3.x. How to manage product images zoom (jqzoom)<\/a>","protected":false},"excerpt":{"rendered":"<p>This tutorial shows how to manage Zoom in VirtueMart 3.x.<\/p>\n","protected":false},"author":62,"featured_media":47235,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[733],"tags":[1939,2404,1536],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/47230"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=47230"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/47230\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/47235"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=47230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=47230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=47230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}