Jump to content

Can't Change The Product's Image Size At Product.tpl


Recommended Posts

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 by Yossefelbaz (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...