View Single Post
  #1  
Old 08-11-2005, 05:49 PM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default help with product_thumbnail.tpl

i recently had to resize all my thumbnails
I batch'd em all in photoshop and then over-wrote the older larger thumbnails.

But i saw a problem real quick when looking at the product page and the thumbnail was still trying to be the original size. i guess this data (the original dimensions are stored in the database??)

i read this topic

http://forum.x-cart.com/viewtopic.php?t=21424

and it said to remove this from the product.tpl template to get them to resize automatically:

image_x=$product.image_x image_y=$product.image_y

which worked perfect. but now the original thumbnail is still trying to show in a few other places like the admin backend and when the customer is viewing the thumbnails in the cart.

i think these places reference product_thumbnail.tpl
can anyone tell me how to modify product_thumbnail.tpl so as to not refernce the original X and Y values, since my thumbnails are a different size now.

thank you!!

here is whats in product_thumbnail.tpl

Code:
{* $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}
__________________
4.2.2
Reply With Quote