Jump to content

feature value with content


Recommended Posts

Hi,

 

How can I make that on product page, when I have a feature Style, and it has 4-5 values, Style 1, Style 2, Style 3 etc.

 

I would like to add longer content for eahy style values. So if the value of the product feature Style is Style 1, print the following: this is the first style, but if the value of the product feature Style is Style 2, print the following: this is the second style which is better then the first one, and if the value of the product feature Style is Style 3, print the followin etc.

 

How can I make it on product page.

 

I've tried this, but it didn't work:

 

{if $feature.id_feature_value == 18} <p>romantikus stílus</p> {elseif $feature.id_feature_value == 19} <p>nem vintage</p> {else} <p>akármi</p> {/if}

Link to comment
Share on other sites

from all .tpl files use to edit , all text values are inside ' '

I dont understand yourproblem, but

instead of:
{if $feature.id_feature_value == 18} <p>romantikus stílus</p> {elseif $feature.id_feature_value == 19} <p>nem vintage</p> {else} <p>akármi</p> {/if}

try:

 

{if $feature.id_feature_value == 18} '<p>romantikus stílus</p>' {elseif $feature.id_feature_value == 19} '<p>nem vintage</p>'{else} <p>akármi</p> {/if}

 

Link to comment
Share on other sites

  • 4 months later...

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