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

thumbnails in cart pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 04-29-2007, 01:54 PM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

Exclamation Re: thumbnails in cart pages

Quote:
Originally Posted by balinor
What didn't work about the code I posted?

Thumbs pics of products aren't available, it shows " No image available", but all the products have images!
__________________
X-card Gold 4.1.7
Batch Order Mod/Order Processing
Detailed Order Management Mod
Order Audit/Profit reports
Advanced Product Search
Ajax Username Checker
Direct Product Enquiry Form
FAQ Manager
Social Bookmarking
Tabs Mod v3
MagneticOne.com All-IN-ONE X-Cart Export
Show Referrer Information on Order Details Page
www.medsmarket.net
Reply With Quote
  #12  
Old 04-29-2007, 02:23 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: thumbnails in cart pages

balinor left out the $imageid var assignment

Code:
{if $products[product].is_pimage eq 'W' }{assign var="imageid" value=$products[product].variantid}{else}{assign var="imageid" value=$products[product].productid}{/if}

...by the way, doesnt the cart have this be default?
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #13  
Old 04-29-2007, 03:40 PM
 
balinor balinor is offline
 

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

Default Re: thumbnails in cart pages

vtonya, was it working before you replaced the code?

inebriate, that code you just posted isn't part of the change necessary here, so I didn't post it.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #14  
Old 04-29-2007, 03:50 PM
  vtonya's Avatar 
vtonya vtonya is offline
 

Advanced Member
  
Join Date: Apr 2007
Posts: 61
 

Default Re: thumbnails in cart pages

Guys, thank you!
inebriate has helped me providing this code:
Quote:
{include file="product_thumbnail.tpl" productid=$item.productid image_x=90 product=$item.product tmbn_url=$item.pimage_url type=$item.is_pimage}
__________________
X-card Gold 4.1.7
Batch Order Mod/Order Processing
Detailed Order Management Mod
Order Audit/Profit reports
Advanced Product Search
Ajax Username Checker
Direct Product Enquiry Form
FAQ Manager
Social Bookmarking
Tabs Mod v3
MagneticOne.com All-IN-ONE X-Cart Export
Show Referrer Information on Order Details Page
www.medsmarket.net
Reply With Quote
  #15  
Old 06-09-2007, 09:18 PM
 
mmoville mmoville is offline
 

Advanced Member
  
Join Date: Feb 2007
Posts: 33
 

Default Re: thumbnails in cart pages

can anyone give me the code to make this work on 4.1.7? i can resize the image but can't seem to make the product thumbnails instead of the product images show.

i use different images for thumbnails and products. it would really help just to show the thumbnail on checkout.

thanks!
__________________
X-Cart 4.4.2
Litecommerce 2.2.41
X-cart 4.1.8
Linux Server
Reply With Quote
  #16  
Old 04-27-2008, 11:33 PM
 
Dima Dima is offline
 

Newbie
  
Join Date: Dec 2007
Posts: 8
 

Default Re: thumbnails in cart pages

Does anyone know how to make this work with v4.1.9?
I also need to use thumbnails in checkout, shoping cart, and wishlist, instead of the full size images.
Thank you.
__________________
X-cart version 4.1
Reply With Quote
  #17  
Old 05-16-2008, 12:06 PM
 
fropirate fropirate is offline
 

Member
  
Join Date: May 2008
Posts: 24
 

Default Re: thumbnails in cart pages

Hi,

I'm interested in getting this to work on 4.1.10 if anyone is willing to help. I'm sick of lookign at jaggy images in the cart, and I'm not sure I want to buy the dynamic image generation mod.

Thanks!
__________________
X-Cart Gold 4.1.10
www.oldworlddistributors.com - Live Store
www.coppercakestands.com - Live Store
--
My Website - www.frodesigns.com
Reply With Quote
  #18  
Old 05-20-2008, 11:24 AM
 
fropirate fropirate is offline
 

Member
  
Join Date: May 2008
Posts: 24
 

Default Re: thumbnails in cart pages

Hi everyone,

I was able to make thumbnails instead of full sized images display in the cart so they aren't jaggy. It was really easy actually.

in /customer/main/cart.tpl find:
Code:
{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}

and repalce with:

Code:
{include file="product_thumbnail.tpl" productid=$imageid image_x=$config.Appearance.thumbnail_width product=$products[product].product tmbn_url=$products[product].timage_url type=$products[product].is_timage}

all i had to do was replace the two "pimage" with "timage"
__________________
X-Cart Gold 4.1.10
www.oldworlddistributors.com - Live Store
www.coppercakestands.com - Live Store
--
My Website - www.frodesigns.com
Reply With Quote
  #19  
Old 05-20-2008, 11:30 AM
 
balinor balinor is offline
 

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

Default Re: thumbnails in cart pages

Nice one
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #20  
Old 09-30-2008, 01:27 PM
  tarty00's Avatar 
tarty00 tarty00 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 46
 

Default Re: thumbnails in cart pages

Ooooh this did the trick for me in 4.1.11 balinor. Thanks heaps Mate!!
__________________
..::t a r a::..
____________________

La-Di-Da Studios

Version 4.1.11 Gold
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:49 AM.

   

 
X-Cart forums © 2001-2020