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

Preventing image resizing on overview pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-17-2007, 01:35 AM
 
Allwrite Allwrite is offline
 

Member
  
Join Date: Feb 2007
Location: The Netherlands
Posts: 23
 

Default Preventing image resizing on overview pages

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}&amp;cat={$cat}&amp;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:
{* $Idproduct_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"}&amp;id={$productid}{/if}"{if $image_x ne 0width="{$image_x}"{/if}{if $image_y ne 0height="{$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!
__________________
Dennis Gaasbeek

www.allwrite.eu (work in progress, not active yet)
X-Cart Gold v4.1.8
Reply With Quote
  #2  
Old 04-17-2007, 01:06 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Preventing image resizing on overview pages

dont know if this works but have you tried removing the image_x and image_y?

if that doesnt work you can just use a link to image.php?productid={$products[product].productid}
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 04-17-2007, 10:50 PM
 
Allwrite Allwrite is offline
 

Member
  
Join Date: Feb 2007
Location: The Netherlands
Posts: 23
 

Default Re: Preventing image resizing on overview pages

Thanks inebriate, I'll give it a go.

Update; worked great, I removed the image_x and image_y, thanks again!
__________________
Dennis Gaasbeek

www.allwrite.eu (work in progress, not active yet)
X-Cart Gold v4.1.8
Reply With Quote
  #4  
Old 05-21-2007, 05:20 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default Re: Preventing image resizing on overview pages

when i remove mage_x and image_y I get and error and my detail images disappear. Help please
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
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 11:51 AM.

   

 
X-Cart forums © 2001-2020