Jump to content

Edit History

Ress

Ress

Do you have a module that allows you to set multiple values to a feature?

L.E.

 Try this code:

Fill in the feature ids, separated by commas, for the 2 sections in which you want to split the features:

{assign var=allow_features value=[10,11,12,13]} 

{assign var=allow_features2 value=[14,15,16]} 

 

First section:

	{assign var=allow_features value=[10,11,12,13]}
    
    {foreach from=$product.grouped_features item=feature}
        {if $feature.id_feature|in_array:$allow_features}
            <div class="acc__card info-{$feature.id_feature}">
                <div class="acc__titleOpen">{$feature.name}</div>
                <div class="acc__panelOpen">
                    <span class="value id-{$feature.id_feature}">{$feature.value|escape:'htmlall'|nl2br nofilter}</span>
                </div>
            </div>
        {/if}
    {/foreach}

Second section:

	{assign var=allow_features2 value=[14,15,16]}
    
    {foreach from=$product.grouped_features item=feature}
        {if $feature.id_feature|in_array:$allow_features2}
            <div class="acc__card info-{$feature.id_feature}">
                <div class="acc__title">{$feature.name} </div>
                <div class="acc__panel">
                    <li class="value id-{$feature.id_feature}"> {$feature.value|escape:'htmlall'|nl2br nofilter}</li>
                </div>
            </div>
        {/if}
    {/foreach}

 

Ress

Ress

Do you have a module that allows you to set multiple values to a feature?

L.E.

 Try this code:

Fill in the feature ids, separated by commas, for the 2 sections in which you want to split the features, in

{assign var=allow_features value=[10,11,12,13]} 

{assign var=allow_features2 value=[14,15,16]} 

 

First section:

	{assign var=allow_features value=[10,11,12,13]}
    
    {foreach from=$product.grouped_features item=feature}
        {if $feature.id_feature|in_array:$allow_features}
            <div class="acc__card info-{$feature.id_feature}">
                <div class="acc__titleOpen">{$feature.name}</div>
                <div class="acc__panelOpen">
                    <span class="value id-{$feature.id_feature}">{$feature.value|escape:'htmlall'|nl2br nofilter}</span>
                </div>
            </div>
        {/if}
    {/foreach}

Second section:

	{assign var=allow_features2 value=[14,15,16]}
    
    {foreach from=$product.grouped_features item=feature}
        {if $feature.id_feature|in_array:$allow_features2}
            <div class="acc__card info-{$feature.id_feature}">
                <div class="acc__title">{$feature.name} </div>
                <div class="acc__panel">
                    <li class="value id-{$feature.id_feature}"> {$feature.value|escape:'htmlall'|nl2br nofilter}</li>
                </div>
            </div>
        {/if}
    {/foreach}

 

Ress

Ress

Do you have a module that allows you to set multiple values to a feature?

×
×
  • Create New...