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

Products List Thumbnail Size = product_thumbnail.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-09-2005, 07:17 PM
 
darr darr is offline
 

Member
  
Join Date: Oct 2004
Posts: 29
 

Default Products List Thumbnail Size = product_thumbnail.tpl

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
__________________
xcart 4.5.0
Reply With Quote
  #2  
Old 07-10-2005, 04:59 AM
 
balinor balinor is offline
 

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

Default

Are you using a single column display or multi column on the products list?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-10-2005, 08:02 AM
 
darr darr is offline
 

Member
  
Join Date: Oct 2004
Posts: 29
 

Default

Hi Padraic,

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

Thanks,
Darlene
__________________
xcart 4.5.0
Reply With Quote
  #4  
Old 07-11-2005, 03:01 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 07-11-2005, 08:26 AM
 
darr darr is offline
 

Member
  
Join Date: Oct 2004
Posts: 29
 

Default 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!!

Darlene
__________________
xcart 4.5.0
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 02:34 AM.

   

 
X-Cart forums © 2001-2020