{if $feature.description == "New"}

I try to display a diferent based in feature product:



New: Ok

Used: Ok


[QUOTE]{foreach from=$product.product_features item=“feature”}



{if $feature.description == “New”}

Text A



{elseif $feature.description == “Used”}

Text B

{/if}



{/foreach}[/QUOTE]



But i really want are Select a Feature Variants



Example:

Condition:

  • New
  • Used



    I try this but don´t work:

[QUOTE]{foreach from=$product.product_features item=“feature”}



{if $feature.variants == “Green”}

Text A



{elseif $feature.variants == “Red”}

Text B

{/if}



{/foreach}[/QUOTE]





Please someone can help me with this?

Hi is variants an array? If it can have multiple selections it probably is. Do a debug and see.



{$features.variants|debug}