X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   help with product_thumbnail.tpl (https://forum.x-cart.com/showthread.php?t=15857)

bobbyftk 08-11-2005 05:49 PM

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}


balinor 08-15-2005 05:06 AM

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}

bobbyftk 08-15-2005 08:12 AM

perfect.
thank you!


All times are GMT -8. The time now is 03:41 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.