View Single Post
  #1  
Old 11-27-2011, 01:08 PM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Using Category to Display Image

My client wants to have a "Sale banner" appear in the description. Originally he wanted to appear over top of the Dogs Picture, but I told him that would be a little tough.

So I'm settling on adding each Dog to a Category and then I'd like to put an {if} statement in the product_details.tpl However, I think the $current_category.category is the wrong way to check for this. I've tried to use the Category number 100, but that didn't work either.

What's the right coding?
Code:
{if $current_category.category eq "Discount"} Test {/if}

Thanks,
Mike
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote