oompf2012 Posted September 17, 2013 Share Posted September 17, 2013 Hi everyone, I am using the default theme for 1.4.10 and the default mobile template. Furthermore I have Magic Zoom installed. This works perfectly on the regular website, but on the mobile site the attribute images are too small. When I disable Magic Zoom the images are the regular size again. So my question is. How can I prevent the mobile template to use the module? Thanks in advance for any advise Link to comment Share on other sites More sharing options...
vekia Posted September 17, 2013 Share Posted September 17, 2013 any chance to test your website? if so, please share url, i need to inspect source of your website Link to comment Share on other sites More sharing options...
oompf2012 Posted September 17, 2013 Author Share Posted September 17, 2013 Yes of course. This is the link to one of the products on the regular website with attributes: http://www.liveandlovecrafts.com/ink-accessories/49-tim-holtz-distress-ink-pads.html When you then access the website on your mobile select : Essentials -> Ink -> Tim Holtz Distress Ink Pads You can see that the first picture is regular size, but the following are small. I already figured out that it is caused by the Magic Zoom module, but I don't know how I can disable it on the mobile template. When I disable it in the backend -> module -> positions "Header of pages" it works on the mobile site, but the zoom doesn't work on the regular site anymore. Thanks for looking into this. Link to comment Share on other sites More sharing options...
Mr S Posted November 14, 2013 Share Posted November 14, 2013 (edited) I needed something similar to this, here is a copy of the module I used on Prestashop 1.5+ only. This module sets a IsMobileDevice that can be used by any theme template files to test what device the user is using. Module sets a smarty {$IsMobileDevice}0 - Desktop1 - Mobile Phone2 - Touchpads With the module installed you could do something like {if $jqZoomEnabled && $IsMobileDevice == 0} Edit file product.tpl <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_cStore')}" {if $jqZoomEnabled && $IsMobileDevice == 0}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_cStore')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="346" height="380" /> ismobile_v0.1.zip Edited November 14, 2013 by HA!*!*Y (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts