{strip} {* ДАННЫЕ *} {$_is_ru = $wa->locale() == 'ru_RU'} {$_lang = "en"}{if $_is_ru}{$_lang = "ru"}{/if} {$_version = "2022.02.09.1557"} {$_page_title = _w("Product quantity units")} {* ПОДСКАЗКИ *} {$_locales = [ "close" => _w("Close") ]} {$_tooltips = [ "unit_dialog_code" => [ "id" => "unit_dialog_code", "html" => _w("Used in printable forms; e.g., waybills.")|escape ], "unit_dialog_short_name" => [ "id" => "unit_dialog_short_name", "html" => sprintf_wp('Used in printable forms. Can be used for backend settings and in the storefront if no value has been set for “%s”.', _w('Name for storefront'))|escape ], "unit_dialog_storefront_name" => [ "id" => "unit_dialog_storefront_name", "html" => sprintf_wp('Displayed in backend settings and in the storefront. If no value is set then the value of the “%s” field is used.', _w('Symbol'))|escape ], "unit_move" => [ "id" => "unit_move", "html" => _w("Drag to change the units sort order.")|escape, "position" => "top" ], "unit_status_locked" => [ "id" => "unit_status_locked", "html" => _w("The unit is used in products’ properties or in product types’ settings. Such units cannot be disabled.")|escape, "position" => "top" ], "unit_edit" => [ "id" => "unit_edit", "html" => _w("Edit")|escape, "position" => "top-right", "width" => "100px" ], "unit_delete" => [ "id" => "unit_delete", "html" => _w("Delete")|escape, "position" => "top-right", "width" => "100px" ], "unit_delete_locked" => [ "id" => "unit_delete_locked", "html" => _w("The unit is used in products’ properties or in product types’ settings. Such units cannot be deleted.")|escape, "position" => "top-right" ] ]} {$LIMIT_TYPE_LINKS = 5} {$fractional_locked = !empty($types_with_fractional) || !empty($types_with_order_count_min) || !empty($types_with_order_count_step)} {if $fractional_locked} {capture assign="_tooltip_fractional_locked"}

[`To switch to the use of integer product quantities only, disable the following options in product types’ settings:`]

{if !empty($types_with_fractional)} {$count_links = count($types_with_fractional)} {if $count_links == $LIMIT_TYPE_LINKS + 1} {$limit_links = $LIMIT_TYPE_LINKS + 1} {else} {$limit_links = 5} {/if}

[`Add-to-cart step`]

{/if} {if !empty($types_with_order_count_min)} {$count_links = count($types_with_order_count_min)} {if $count_links == $LIMIT_TYPE_LINKS + 1} {$limit_links = $LIMIT_TYPE_LINKS + 1} {else} {$limit_links = 5} {/if}

[`Minimum orderable quantity`]

{/if} {if !empty($types_with_order_count_step)} {$count_links = count($types_with_order_count_step)} {if $count_links == $LIMIT_TYPE_LINKS + 1} {$limit_links = $LIMIT_TYPE_LINKS + 1} {else} {$limit_links = 5} {/if}

[`Quantity adjustment with “+/-” buttons`]

{/if} {/capture} {$_tooltips["fractional_locked"] = [ "id" => "fractional_locked", "html" => $_tooltip_fractional_locked|trim, "position" => "left", "width" => "15rem" ]} {/if} {if !empty($types_with_stock_units)} {$count_links = count($types_with_stock_units)} {if $count_links == $LIMIT_TYPE_LINKS + 1} {$limit_links = $LIMIT_TYPE_LINKS + 1} {else} {$limit_links = 5} {/if} {capture assign="_tooltip_stock_units_locked"}

[`The use of different quantity units is enabled in the product types:`]

[`To switch to the use of quantity unit “piece” only, select that stock unit in all product types’ settings.`]

{/capture} {$_tooltips["stock_units_locked"] = [ "id" => "stock_units_locked", "html" => $_tooltip_stock_units_locked|trim, "position" => "left", "width" => "15rem" ]} {/if} {if !empty($types_with_base_units)} {$count_links = count($types_with_base_units)} {if $count_links == $LIMIT_TYPE_LINKS + 1} {$limit_links = $LIMIT_TYPE_LINKS + 1} {else} {$limit_links = 5} {/if} {capture assign="_tooltip_base_units_locked"}

[`The use of base quantity units is enabled in the product types:`]

[`To stop using base quantity units, disable them in all product types’ settings.`]

{/capture} {$_tooltips["base_units_locked"] = [ "id" => "base_units_locked", "html" => $_tooltip_base_units_locked|trim, "position" => "left", "width" => "15rem" ]} {/if} {* КОМПОНЕНТЫ *} {$_components = []} {/strip}{capture assign="_component_switch"}
 { { value ? "{_w("On")|escape}" : "{_w("Off")|escape}" } }
{/capture}{strip} {$_components["component_switch"] = $_component_switch|trim} {/strip}{capture assign="_component_units_table"}
[`Code`]
[`Quantity unit name`]
[`Symbol`]
[`Name for storefront`]
[`Actions`]
{/capture}{strip} {$_components["component_units_table"] = $_component_units_table|trim} {$_templates = []} {capture assign="_dialog_fractional_change_confirm"}
{/capture} {$_templates["dialog-fractional-change-confirm"] = $_dialog_fractional_change_confirm} {capture assign="_dialog_stock_change_confirm"}
{/capture} {$_templates["dialog-stock-change-confirm"] = $_dialog_stock_change_confirm} {capture assign="_dialog_base_change_confirm"}
{/capture} {$_templates["dialog-base-change-confirm"] = $_dialog_base_change_confirm} {/strip}