View Single Post
  #2  
Old 10-24-2008, 12:47 PM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default Re: Need some help with a new template I've created

I think I have changed what I want to do. I want to place an if then function to check and see if an uploaded thumbnail exists right before this code in product.tpl
Code:
{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" type="P"}
If the image does not exist then I want to call this template
Code:
{include file="pimage.tpl"}
But I'm not sure how to do it. I know there is a simple way to do this but I can't seem to figure it out.
__________________
4.1.9 (Linux) Live Store
www.thecrackedbook.com
Find used books and out of print books.
Reply With Quote