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

cart image size

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-21-2008, 05:28 PM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default cart image size

Is it possible to reduce the image size in the cart and keep the thumbnail size the same?
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
  #2  
Old 06-24-2008, 03:01 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: cart image size

in cart.tpl find this line...
Code:
<a href="product.php?productid={$products[product].productid}">{if $products[product].is_pimage eq 'W' }{assign var="imageid" value=$products[product].variantid}{else}{assign var="imageid" value=$products[product].productid}{/if}{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}</a>

change the part that says " image_x=$config.Appearance.thumbnail_width" to "image_x=100" (or whatever you want the width to be in pixels)
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 06-24-2008, 03:47 PM
 
kvedros@cox.net kvedros@cox.net is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 65
 

Default Re: cart image size

thank you so much.
__________________
kved
xcart v4.5.2
www.archturnings.com
Reply With Quote
  #4  
Old 07-02-2008, 04:43 AM
  photo's Avatar 
photo photo is offline
 

X-Wizard
  
Join Date: Feb 2006
Location: UK
Posts: 1,146
 

Default Re: cart image size

Quote:
Originally Posted by JWait
in cart.tpl find this line...
Code:
<a href="product.php?productid={$products[product].productid}">{if $products[product].is_pimage eq 'W' }{assign var="imageid" value=$products[product].variantid}{else}{assign var="imageid" value=$products[product].productid}{/if}{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].pimage_url type=$products[product].is_pimage}</a>

change the part that says " image_x=$config.Appearance.thumbnail_width" to "image_x=100" (or whatever you want the width to be in pixels)

Great! Thank you JWait
__________________
v4.1.10
In Dev v4.5.x


"If you don't keep an eye on your business, someone else will."
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:41 AM.

   

 
X-Cart forums © 2001-2020