Jump to content

Edit History

tosR

tosR

Yes, it works very well I used it like this:

 

{block name='product_features'}
    {if $product.grouped_features}
      <section class="product-features">
        <h3 class="h6">{l s='Data sheet' d='Shop.Theme.Catalog'}</h3>
        <dl class="data-sheet">
          {foreach from=$product.grouped_features item=feature}
		  {if $feature.id_feature == 20}{continue}{/if}
		  {if $feature.id_feature == 21}{continue}{/if}
		  {if $feature.id_feature == 22}{continue}{/if}
		  {if $feature.id_feature == 23}{continue}{/if}
            <dt class="name">{$feature.name}</dt>
            <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>	
          {/foreach}
        </dl>
      </section>
    {/if}
  {/block}

is possible to somehow write it in one row, or needs to be for each feature ID own code like I have it

 

I mean something like this:

{if $feature.id_feature == 20,21,22,23}{continue}{/if}

thanks

tosR

tosR

Yes, it works very well I used it like this:

 

{block name='product_features'}
    {if $product.grouped_features}
      <section class="product-features">
        <h3 class="h6">{l s='Data sheet' d='Shop.Theme.Catalog'}</h3>
        <dl class="data-sheet">
          {foreach from=$product.grouped_features item=feature}
		  {if $feature.id_feature == 20}{continue}{/if}
		  {if $feature.id_feature == 21}{continue}{/if}
		  {if $feature.id_feature == 22}{continue}{/if}
		  {if $feature.id_feature == 23}{continue}{/if}
            <dt class="name">{$feature.name}</dt>
            <dd class="value">{$feature.value|escape:'htmlall'|nl2br nofilter}</dd>	
          {/foreach}
        </dl>
      </section>
    {/if}
  {/block}

is possible to somehow write it in one row, or needs to be for each feature ID own code like I have it

 

I mean something like this:

{if $feature.id_feature == 20,21,22,23}{continue}{/if}

 

×
×
  • Create New...