Jump to content

Display specific features by ID


mechcalvin

Recommended Posts

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.
  • Like 1
Link to comment
Share on other sites

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

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