| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Limiting the image size in the shopping cart | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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?
__________________
hyratech X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#2
|
|||||||
|
|||||||
![]() Just edit the x value where the image appears in the code to a specific number, ie in cart.tpl, replace this
Code:
with this Code:
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.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() is the cart.tpl in customer/main/cart.tpl?
__________________
hyratech X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#4
|
|||||||
|
|||||||
![]() Yes
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() the image is not in proportion..
the width is 70 now.. but the height is still the original.. and the picture is just stretched....
__________________
hyratech X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#6
|
|||||||
|
|||||||
![]() Like I said above, you need to remove the y component all together. Just delete this part:
image_y=$products[product].image_y
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() That did the trick.... Thanx a LOT!!!
![]()
__________________
hyratech X-CART Gold 4.1.10 Hosted - Unix |
|||||||
#8
|
|||||||
|
|||||||
![]() 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
|
|||||||
#9
|
|||||||
|
|||||||
![]() 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!
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
#10
|
|||||||
|
|||||||
![]() I found it, and fixed it.
![]()
__________________
XCart Version 4.1.6 PHP 4.4.4 MySQL 4.1.21-standard |
|||||||
|
|||
X-Cart forums © 2001-2020
|