Jump to content

Editing product.tpl show text with selected attribute


dansmiddy

Recommended Posts

A little help please,

 

On the product page, I am trying to show text only if it has a selected attribute. 

 

My current Attributes 

ID 1 - Contract

Values

ID 48 - 12 Months

ID 49 - 18 Months

ID 25 - 24 Months

ID 50 - 36 Months

 

I've seen on the forum this code

<span class="price" style="display: inline;">{if $product.id_product_attribute}{l s='from'}{/if} {convertPrice price=$product.price}</span>

But what i want is something along the lines 

 

if product attribute is equal to ID 1 (Contract) 

then display text such and such. 

 

Any help?

 

Kind Regards

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...