| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Detailed Image Maximum Size | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi there,
Is there a way to write an IF statement to where I can put it in the detailed image code to where if the image is above 500 pixels, it will limit it at 500 pixels, but if it is less then it will not resize it? I know this is really simple, but I have yet to get a chance to actually learn PHP programming ![]() Thanks! |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Isn't there any way to do this?
![]() By the way, this is version 4.0.12 |
|||||||||
#3
|
|||||||
|
|||||||
![]() Yes, this would be a great feature - and could be done using the GDlib or ImageMagick on the server - but i'm not advanced enough to know how to get xcart to use those libraries.
__________________
-------------- RHEL3/Apache2/PHP4/MySQL4/Plesk7.5.3 X-Cart 4.0.16 - Live X-Affiliate X-AOM ez-checkout ez-upsell -------------- |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Well those would actually resize the image, for now I just want to use code to resize it if possible.
|
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Not sure that the detail image sql statement or table holds image_x??
If it does, {if $images[image].image_x gt 500} set width to 500 {/if} i know you can do this for the product.tpl, as image_x is there. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|