{if !empty($settings.features)} {foreach $settings.features as $f_id => $f} {$conditions_feature = ifset($settings, 'conditions', 'feature', [])} {$f.code} {if (isset($f.status) && $f.status == 'private')}{/if}
{* Rendering of characteristic values ​​for a new category occurs in products.category.js :: initGetFeatures () *} {if !empty($settings.id)}
{if !empty($f.values) && substr($f.type, 0, 5) !== 'range'} {foreach $f.values as $v_id => $value} {/foreach} {if $f.count > count($f.values)} [`Show all`] {/if} {/if} {if substr($f.type, 0, 5) == 'range'}
{if !empty($conditions_feature[$f.code])} {$begin = ifset($conditions_feature, $f.code, 'begin', null)} {$end = ifset($conditions_feature, $f.code, 'end', null)} [`from`] [`to`] {$f_unit = shopDimension::getBaseUnit($f.type)} {if !empty($f_unit) && isset($f_unit['title'])}{$f_unit['title']}{/if}
{/if}
{/if}
{/if} {/foreach} {/if} {literal} {% var count = 0; %} {% for (var v_id in o.feature.values) { %} {% if (o.feature.values.hasOwnProperty(v_id)) { %} {% if (o.feature.type.substr(0, 5) !== 'range') { %} {% if (!o.show_all && count == 7) { %} [`Show all`] {% } %} {% count++; %} {% }else { %}
{% if (o.feature.values[v_id]) { %} [`from`] [`to`] {% if (o.feature.unit) { %}{%=o.feature.unit%}{% } %}
{% } %}
{% } %} {% } %} {% } %} {% if (!o.show_all) { %} {% } %} {/literal} {%=o.feature.code%} {% if (o.feature.status == 'private') { %}{% } %}
{/literal}{$smarty.capture["template_feature_field_values"]}{literal}