Smarty code to check file exstention
Hi All, Hope the Xcart pro's can help me out here. Been battling on this one.
Is there a way i can check what the product image file extension is using smarty code?
i want to replace the main product image with a swf file, but I want the smarty code to first check if the product image is an image or flash file. so something like this
if {product extention is .swf}
include product_thumnail_flash.tpl
elseif {product extention is jpg}
include product_thumnail.tpl
/if
hope this makes sense.
Thanks
__________________
4.1.10
|