slates Posted November 22, 2014 Share Posted November 22, 2014 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 More sharing options...
Porfa Posted November 23, 2014 Share Posted November 23, 2014 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 More sharing options...
PrestaShark Posted April 22, 2015 Share Posted April 22, 2015 The correct syntax for above is {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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now