Yossefelbaz Posted February 18, 2013 Share Posted February 18, 2013 (edited) Hi. I made a change in our template, and instead of using 304px image i am using 368px now. I made new image size called Window instead of using large. But, from some reason i cannot change it in the script. I changed the name in the page, i cleared the cache... nothing changed. product.tpl {if $have_image} <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'Window')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'Window')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="368" height="368" /> {else} <img src="{$img_prod_dir}{$lang_iso}-default-large.jpg" id="bigpic" alt="" title="{$cover.legend|escape:'htmlall':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" /> {/if} You can see that i still have the large image instead -> http://www.dressmeup...-k-kk3158l.html What is the problem? Thanks. Edited February 18, 2013 by Yossefelbaz (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 19, 2013 Share Posted February 19, 2013 "regenerate thumbnails", Have you done this? Link to comment Share on other sites More sharing options...
Yossefelbaz Posted February 19, 2013 Author Share Posted February 19, 2013 Yes, i did regenerate thumbnails. But i fixed it last night by doing this changes. product.tpl (line 112 - Ver. 1.4.9) {if $have_image} <img src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'Window')}" {if $jqZoomEnabled}class="jqzoom" alt="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox')}"{else} title="{$product->name|escape:'htmlall':'UTF-8'}" alt="{$product->name|escape:'htmlall':'UTF-8'}" {/if} id="bigpic" width="368" height="368" /> {else} <img src="{$img_prod_dir}{$lang_iso}-default-large.jpg" id="bigpic" alt="" title="{$cover.legend|escape:'htmlall':'UTF-8'}" width="{$largeSize.width}" height="{$largeSize.height}" /> {/if} js/product.js (line 333 - Ver. 1.4.9) var newSrc = domAAroundImgThumb.attr('href').replace('thickbox','Window'); This is working perfectly now. Link to comment Share on other sites More sharing options...
Recommended Posts