View Single Post
  #1  
Old 08-18-2008, 01:04 PM
 
pixelposh pixelposh is offline
 

Member
  
Join Date: May 2008
Posts: 19
 

Question 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
Reply With Quote