![]() |
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? |
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. |
is the cart.tpl in customer/main/cart.tpl?
|
Yes
|
the image is not in proportion..
the width is 70 now.. but the height is still the original.. and the picture is just stretched.... |
Like I said above, you need to remove the y component all together. Just delete this part:
image_y=$products[product].image_y |
That did the trick.... Thanx a LOT!!! :-) you guys are the best!
|
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
|
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!
|
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.