| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Set a max width on product images? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Is there an IF statement that can be used on the product image that says if the width of the image is larger than X, use a set fixed width?
For example, I want providers to be able to upload product images that are up to 200 pixels wide. But if they upload an image that is 400 pixels wide, I want the width to be set to 200 pixels in the template so that the large image doesn't mess up the page layout. TIA!
__________________
~ Andrea Beight |
|||||||||
#2
|
|||||||
|
|||||||
![]() In /customer/main/product.tpl ( version 4.1.8 ):
Find: Code:
And Code:
Replace the code in between these two lines with: Code:
Replacing 380 with the max width you want.
__________________
4.0.19 |
|||||||
|
|||
X-Cart forums © 2001-2020
|