X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   thumbnails in cart pages (https://forum.x-cart.com/showthread.php?t=30786)

vtonya 04-29-2007 01:54 PM

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!

inebriate 04-29-2007 02:23 PM

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?

balinor 04-29-2007 03:40 PM

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.

vtonya 04-29-2007 03:50 PM

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}


mmoville 06-09-2007 09:18 PM

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!

Dima 04-27-2008 11:33 PM

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.

fropirate 05-16-2008 12:06 PM

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!

fropirate 05-20-2008 11:24 AM

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"

balinor 05-20-2008 11:30 AM

Re: thumbnails in cart pages
 
Nice one :)

tarty00 09-30-2008 01:27 PM

Re: thumbnails in cart pages
 
Ooooh this did the trick for me in 4.1.11 balinor. Thanks heaps Mate!!


All times are GMT -8. The time now is 09:04 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.