Jump to content

Specific images for features


Recommended Posts

Hi Gurus :)

 

I'd like to modify alittle my product.tpl in template.

 

I have 3 features, and want each of them to have pictures (on/off). But, want to display "highlighted" pictures if feature is set to "Yes" and no highlighted when feature is set to "NO" or not set at all.

 

I creatd correct css, but have a problem with product.tpl

 

Done something like this, but I'm sure is wrong somewhere:

 

{if $feature.id ==14 && $feature.value != 0}
<img class="icon highlighted" src="../../img/terrain/Carve.png" />
{else}
<img class="sp_icon" src="../../img/terrain/Carve.png" />
{/if}
 
Grateful for any help.
Edited by koyocik (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...