{strip} {$_title = _w("New product type")} {if !empty($type.id)} {$_title = _w("Product type settings")} {/if} {*array( 'id' => '4', 'sort' => '3', 'name' => 'FFF', 'icon' => 'ZZZ', 'cross_selling' => 'alsobought', 'upselling' => '0', 'count' => '0', )*} {$_active_icon = $type.icon_class} {$_icon_uri = $type.icon_url} {* LOCALES *} {$_locales = [ "units_unique_error" => _w("A stock and a base unit must be different."), "order_multiplicity_factor_error" => _w("Enter a number from 0.001 to 999,999.999. Maximum 3 decimal digits.")|escape, "order_count_step_error" => _w("The quantity adjustment value with “+/-” buttons must be greater than 0 and must be divisible by the add-to-cart step without remainder.")|escape, "order_count_min_error" => _w("The minimum orderable product quantity must be greater than 0 and must be divisible by the add-to-cart step without remainder.")|escape, "stock_base_ratio_required" => _w("The value must be greater than 0.")|escape, "denominator_step_required" => _w("Specify the add-to-cart step to set the quantity adjustment value in the shopping cart with “+/-” buttons.")|escape, "denominator_min_required" => _w("Specify the add-to-cart step to set the minimum orderable product quantity.")|escape ]} {* ШАБЛОНЫ *} {$_templates = []} {capture assign="_component_switch"} {literal}
{/literal} {/capture} {$_templates["component-switch"] = $_component_switch} {capture assign="_confirm_fractional_dialog"}{include file="./SettingsTypefeatTypeEditConfirm.html" type=$type inline}{/capture} {$_templates["dialog-confirm-fractional"] = $_confirm_fractional_dialog} {/strip}
{* HEADER *}

{$_title|escape}

{* CONTENT *}
{* TOGGLE *} {strip} {if !empty($type_templates)}
[`Custom product type`] [`Select from templates`]
{/if} {/strip}
[`Product type name`]
[`Product type icon`]
    {foreach $icons as $_icon_class}
  • {/foreach}
[`Or enter icon URL (should be a 16x16 px image)`]:
{if !empty($is_premium)}
[`Quantity units
and adding to the shopping cart`]
[`Specify default values to be applied to newly-added products.`]
{$_tooltips = [ "disabled" => sprintf_wp("Enable selection of different quantity units in the settings to make this option available.", '?action=settings#/unit/'), "stock_unit" => _w("A stock quantity unit is used for storing product stock quantities and for adding products to the shopping cart."), "base_unit" => _w("A base quantity unit can be used for the comparison of product prices in the storefront. For instance, pound—to compare the prices of weight products with packages of different size."), "stock_base_ratio" => _w("Numeric conversion ratio between a stock and a base unit. For example, weight value corresponding to a standard product package. Editable in product properties."), "order_multiplicity_factor" => _w("Minimal value by which the product quantity in the shopping cart can be changed."), "order_multiplicity_factor_disabled" => sprintf_wp("To set up an add-to-cart step, enable fractional product support in the settings.", '?action=settings#/unit/'), "order_count_min" => _w("Minimal product quantity that can be added to the shopping cart."), "order_count_min_disabled" => sprintf_wp("To set up a minimum orderable quantity, enable fractional product support in the settings.", '?action=settings#/unit/'), "order_count_step" => _w("The value by which the product quantity must be changed via the “+/-” buttons in the shopping cart."), "order_count_step_disabled" => sprintf_wp("To set up a quantity adjustment value via “+/-” buttons, enable fractional product support in the settings.", '?action=settings#/unit/') ]}
{* Складская единица *}
[`Stock unit`]
{* Базовая единица *}
[`Base unit`]
[`Units ratio`]
{strip}
{sprintf(_w("1 %s"), "{ { selected_stock_unit } }")} =   { { selected_base_unit } }
[`Can be changed in product properties`]
{/strip}
{* Дробность/Шаг добавления в корзину *}
[`Add-to-cart step`]
 { { selected_stock_unit } }
{* Минимальное количество заказа *}
[`Minimum orderable quantity`]
{* Шаг добавления в корзину/Изменение количества кнопками +/- *}
[`Quantity adjustment with “+/-” buttons`]
{/if}
[`Select storefront`]
{$selected_storefront = null}
{strip}
{$_all_is_checked = true} {foreach $storefronts as $_storefront} {if empty($_storefront.is_checked)} {$_all_is_checked = false} {break} {/if} {/foreach} {foreach $storefronts as $_storefront} {/foreach}
{/strip}
{if !empty($type_templates)} {/if}
{* FOOTER *} {$wa->csrf()}