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)
-   -   Products List Thumbnail Size = product_thumbnail.tpl (https://forum.x-cart.com/showthread.php?t=15106)

darr 07-09-2005 07:17 PM

Products List Thumbnail Size = product_thumbnail.tpl
 
:cry: I have searched for this in the forum, but I have not been able to find this exact problem.

Re: General settings/Appearance options

We need to "Show thumbnails in products list" since this is an Art Gallery store. But, we need the 5,000+ thumbnails to match the same size as the thumbnails on the Products detail page. All of the thumbnails are 125 pix at either X or Y, but not both. Some are horizontal images and some are vertical images. The thumbnails show up perfect on the Product detail pages, but if an image is vertical (45 wide x 125 height) the thumbnail is distorted on the Products List since it is converting it to 125 wide. I tried leaving the "Thumbnail width in the products list:" empty, but it defaults to 70.

Is there a work around where I can hardcode the Products List display to show the thumbnails the same way the Products detail pages do?

Thank you in advance,
Darlene

balinor 07-10-2005 04:59 AM

Are you using a single column display or multi column on the products list?

darr 07-10-2005 08:02 AM

Hi Padraic,

I am using a single column display:
http://65.109.230.157/home.php?cat=5

Thanks,
Darlene

shan 07-11-2005 03:01 AM

you can set the size of the table cell that the image is in and remove the x & y image size from products.tpl.

Either that or check how the code is done in product.tpl

darr 07-11-2005 08:26 AM

Solution
 
Thank you Shan, it worked!

From customer\main\product.tpl remove from line 23:

Code:

image_x=$config.Appearance.thumbnail_width

Before:
Code:

<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].tmbn_url}
{$lng.lbl_see_details}</A>


After:
Code:

<A href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}{if $featured eq 'Y'}&featured{/if}">{include file="product_thumbnail.tpl" productid=$products[product].productid product=$products[product].product tmbn_url=$products[product].tmbn_url}
{$lng.lbl_see_details}</A>


The thumbnail sizes on the Product List now matches the thumbnail sizes on the Product Page.

Thank goodness for the forum!!

:D Darlene


All times are GMT -8. The time now is 02:32 AM.

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