Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

help with product_thumbnail.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 08-15-2005, 05:06 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Try removing this part of the code:

Code:
{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-15-2005, 08:12 AM
 
bobbyftk bobbyftk is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 167
 

Default

perfect.
thank you!
__________________
4.2.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:07 PM.

   

 
X-Cart forums © 2001-2020