{$sidebar_html}
{* HEADER *}
{* TITLE *}

{$title|escape}

{strip} {if empty($is_filter_page)}
[`Edit`] {if $can_be_delete} [`Delete`] {else} [`Delete`] {/if}
{/if} {/strip}
{* SEARCH *}
{* BODY *}
{if isset($codes)}
[`Product codes`] [`Product codes are completed on the order page for each ordered item. They can be used to store trade item numbers, software license numbers or unique serial numbers.`]
{if !empty($codes)} {$_title = _w('To delete this product code, disable or delete the corresponding plugin.')} {$_disabled = "is-disabled"}
[`No product codes matching the search criteria`]
{foreach $codes as $_code}
{strip} {if !empty($_code.icon) && $_code.code_plugin_enabled} {else} {/if} {/strip}
{strip}
{$_code.name|escape}
{$_code.code|escape}
{/strip}
{strip}
{/strip}
{/foreach}
{else}
{if $type_url_id == 'empty'} [`There are no product codes that are not available for any product type.`] {elseif $type_url_id == 'all_existing'} [`There are no product codes available for all product types.`] {else} [`No product codes.`] {/if}
{/if}
{/if}
[`Features`] {if wa_is_int($type_url_id)}[`Features are displayed on storefront product pages in the order set up for this product type.`]

[`To change features’ sort order, drag & drop them to desired locations within the list.`]{else}[`To change features’ sort order, select a product type.`]{/if}
{if $type_url_id != 'builtin'}
    • [`New feature`]
    • [`Feature group heading`]
    • {if empty($is_filter_page)}
    • [`Feature or heading from other product types`]
    • {/if}
{/if}
{if !empty($features)}
[`No features matching the search criteria`]
{foreach $features as $_feature} {$_classes = []} {$_is_visible = true} {if empty($_feature.visible_in_frontend)} {$_classes[] = "is-disabled"} {$_is_visible = false} {/if} {$_sku_enabled = false} {if !empty($_feature.available_for_sku)} {$_sku_enabled = true} {/if} {$_is_divider = false} {if !empty($_feature.type)} {if $_feature.type === "divider"} {$_is_divider = true} {$_classes[] = "is-divider"} {else} {$_classes[] = "is-custom-feature"} {/if} {else} {$_classes[] = "is-feature"} {/if}
{strip}
{if empty($is_filter_page)} {/if} {if empty($_is_divider)} {if $_feature.builtin} {if $_feature.code === 'weight'} {$builtin_title = _w('“Weight” is a special feature, which must always be available for editing in product SKUs’ properties.')} {elseif $_feature.code === 'gtin'} {$builtin_title = _w('“GTIN (Global Trade Item Number)” is a special feature, which must always be available for editing in product SKUs’ properties.')} {else} {$builtin_title = _w('You cannot disable the editing of this feature’s values in product SKUs’ properties, because some products in your store have SKUs generated from this feature’s values in “Selectable parameters” mode.')} {/if} {else} {/if} {/if}
{/strip}
{strip}
{$_feature.name|escape} {if !empty($_is_divider)} [`Feature group heading`] {/if}
{$_feature.code|escape}
{/strip}
{strip}
{if $_feature.builtin} {else} {/if}
{/strip}
{/foreach}
{else}
{if $too_many_features} [`There are too many features to show in this list. Please select a product type on the left to view its features.`] {elseif $type_url_id == 'empty'} [`There are no features that are not available for any product type.`] {elseif $type_url_id == 'all_existing'} [`There are no features available for all product types.`] {else} [`No features.`] {/if}
{/if}
{shopSettingsTypefeatFeatureWidgetAction::widget([ "selection" => ".js-feature-add-new, .js-feature-add-divider, .js-feature-edit" ])}