Thread: Image Resizing
View Single Post
  #3  
Old 11-09-2004, 02:35 PM
 
emil emil is offline
 

Newbie
  
Join Date: Aug 2004
Posts: 8
 

Default

hi,

for the image sizing,

try to adding the code with (width="150") in the image tags where the image appears and remove the smarty tags that input the image widths.

eg, in the file product_thumnail.tpl

Quote:
{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if}

try to change the code to:
Quote:
{* $Id: product_thumbnail.tpl,v 1.14 2004/06/24 09:53:29 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}[img]{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?productid={$productid}{if $file_upload_data.file_path}&tmp=y{/if}{/if}[/img]{/if}

you also may need to create your own image tpl file since changing the above template also affects your products list
__________________
Happy Dayz
--------------------------------------
www.sefama-vega.com (3.4.13)
--------------------------------------
under dev(V3.5.9)
under dev(V4.0.5)
Reply With Quote