mechcalvin Posted October 27, 2016 Share Posted October 27, 2016 Hello, I would like to call out one specific feature by its ID to display on my product-list i tried {foreach from=$features item=feature} {if $feature.id_feature == 11} <td>{$feature.name|escape:'htmlall':'UTF-8'}</td> <td>{$feature.value|escape:'htmlall':'UTF-8'}</td> {/if} {/foreach} but it doesn't work any help will be grateful. 1 Link to comment Share on other sites More sharing options...
ventura Posted October 27, 2016 Share Posted October 27, 2016 There are many info in the forum about this theme Try this way {foreach from=$product.features item=feature} {if $feature.id_feature == 11} <td>{$feature.name|escape:'htmlall':'UTF-8'}</td> <td>{$feature.value|escape:'htmlall':'UTF-8'}</td> {/if} {/foreach} Link to comment Share on other sites More sharing options...
mechcalvin Posted October 27, 2016 Author Share Posted October 27, 2016 Thanks for super quick reply, i have also tried this code, but the theme display become all mess up as attached Link to comment Share on other sites More sharing options...
mechcalvin Posted October 29, 2016 Author Share Posted October 29, 2016 Resolve id_feature cannot be used instead i use {foreach from=$features key=id_feature item=feature}{if $id_feature == 11}<td>{$feature.name|escape:'htmlall':'UTF-8'}</td><td>{$feature.value|escape:'htmlall':'UTF-8'}</td>{/if}{/foreach} 1 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