Jump to content

[Solved] Separating info from features


Recommended Posts

I have a few Features set up on the products that I need to list separately, outside of the "Data Sheet" tab in the product details page.

Is there a way I can call only "Model" instead of all the features added to the product?

{foreach from=$features item=feature}
{$feature.name|escape:'htmlall':'UTF-8'}: {$feature.value|escape:'htmlall':'UTF-8'}
{/foreach}

Link to comment
Share on other sites

if I understand your question correct, you want to only display Model instead of all features?

you can put a if statement to embrace the entry so that only Model will appear.

{foreach from=$features item=feature}
{if $feature.name=='Model'}{$feature.name|escape:‘htmlall’:‘UTF-8’}: {$feature.value|escape:‘htmlall’:‘UTF-8’}{/if}
{/foreach}

Link to comment
Share on other sites

×
×
  • Create New...