Hi everyone,
I have a problem which I cannot figure out myself: on the overview page (when you click an article group) I have a couple of sub-groups but below that also some items. The displayed items on this page are resizing (for example, I have a product image which is 378*55 pixels but it's displayed as 378*168). And when you click on the item and you get to the article detail page that same image is displayed as 124*55 pixels..?
I don't want them to resize, I just want them to display in their original size, always. How can I accomplish this? I've got these files in which I presume the resizing is going on. I've thought about just replacing image_x and image_y with a fixed size but a fixed size is not the solution as some products just have larger images than others.
File: /customer/main/products_t.tpl
PHP Code:
<center><div class="product_overview"><a href="product.php?productid={$products[product].productid}&cat={$cat}&page={$navigation_page}">{include file="product_thumbnail.tpl" productid=$products[product].productid image_x=$products[product].tmbn_x|default:$config.Appearance.thumbnail_width image_y=$products[product].tmbn_y product=$products[product].product tmbn_url=$products[product].tmbn_url}</a></div></center>
File: /product_thumbnail.tpl
PHP Code:
{* $Id: product_thumbnail.tpl,v 1.19 2005/11/17 06:55:36 max Exp $ *}
{if $config.Appearance.show_thumbnails eq "Y"}<img{if $id ne ''} id="{$id}"{/if} src="{if $tmbn_url}{$tmbn_url}{else}{if $full_url}{$http_location}{else}{$xcart_web_dir}{/if}/image.php?type={$type|default:"T"}&id={$productid}{/if}"{if $image_x ne 0} width="{$image_x}"{/if}{if $image_y ne 0} height="{$image_y}"{/if} style="margin:5px;" alt="{$product|escape}" />{/if}
Any help would be much appreciated. If you want I can send you a link to our store but it's still in development so it's not available for the general public yet.
Thanks!