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)
-   -   Limiting the image size in the shopping cart (https://forum.x-cart.com/showthread.php?t=17910)

hyratech 11-11-2005 12:50 PM

Limiting the image size in the shopping cart
 
Is there a way to limit the size of the image in the shopping cart?

to avoid errors.. I'm only using 1 Image as both the Main image and thumbnail..

The Product page.. it's the same image but just limited to 80 pixels..

and the detail's picture it's all set to 300 pixels..


Is there a way to do this to the images in the shopping cart also?

balinor 11-11-2005 01:01 PM

Just edit the x value where the image appears in the code to a specific number, ie in cart.tpl, replace this

Code:

image_x=$products[product].image_x

with this

Code:

image_x=100

replace 100 with whatever number you want. You'll also have to remove the image_y all together so that it doesn't stretch the image.

hyratech 11-11-2005 01:25 PM

is the cart.tpl in customer/main/cart.tpl?

balinor 11-11-2005 01:25 PM

Yes

hyratech 11-11-2005 01:32 PM

the image is not in proportion..

the width is 70 now.. but the height is still the original.. and the picture is just stretched....

balinor 11-11-2005 01:35 PM

Like I said above, you need to remove the y component all together. Just delete this part:

image_y=$products[product].image_y

hyratech 11-11-2005 01:42 PM

That did the trick.... Thanx a LOT!!! :-) you guys are the best!

floydiology 01-24-2007 12:34 PM

Re: Limiting the image size in the shopping cart
 
I have tried all these steps here and I still do not see any change. I even deleted the entire line of code and no effect to the site. It appears that it is not using this template? where can I find the proper template to edit. I am editing skin1/customer/main/cart.tpl

LisaB 01-30-2007 07:55 PM

Re: Limiting the image size in the shopping cart
 
Hi! Looked for that line in my cart.tpl and couldn't even find it. Would it be different in my version? And can the same be done for the wish list? Thanks!

LisaB 01-30-2007 09:04 PM

Re: Limiting the image size in the shopping cart
 
I found it, and fixed it. :) Worked for both the cart and the wishlist.


All times are GMT -8. The time now is 07:27 PM.

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