{strip}
{$_lang = substr($wa->locale(), 0, 2)}
{$_sprite_url = "`$wa_url`wa-apps/shop/img/backend/products/product/icons.svg?v=`$wa->version()`"}
{* ЛОКАЛИЗАЦИЯ *}
{$_tooltips = [
"default" => [
"id" => "default"
],
"prices-tooltip-1" => [
"id" => "prices-tooltip-1",
"html" => _w("The SKU variant is visible in the storefront.")|escape
],
"prices-tooltip-2" => [
"id" => "prices-tooltip-2",
"html" => _w("The SKU variant visible in the storefront.")|escape
],
"prices-tooltip-3" => [
"id" => "prices-tooltip-3",
"html" => _w("The variant is available for purchase.")|escape
],
"prices-tooltip-4" => [
"id" => "prices-tooltip-4",
"html" => _w("The variant is unavailable for purchase.")|escape
],
"prices-tooltip-5" => [
"id" => "prices-tooltip-5",
"html" => _w("The promo in which this SKU variant is included is paused. You can view the price change in the promo info block below.")|escape
],
"prices-tooltip-6" => [
"id" => "prices-tooltip-6",
"html" => _w("The SKU variant is included in a planned promo. You can view the price change in the promo info block below.")|escape
],
"prices-tooltip-7" => [
"id" => "prices-tooltip-7",
"html" => _w("The promo is on.")|escape
],
"prices-tooltip-8" => [
"id" => "prices-tooltip-8",
"html" => _w("The promo is on but is temporarily paused.")|escape
],
"prices-tooltip-9" => [
"id" => "prices-tooltip-9",
"html" => _w("The promo is planned for the future.")|escape
],
"prices-tooltip-10" => [
"id" => "prices-tooltip-10",
"html" => _w("The promo price does not differ from the original product price.")|escape,
"position" => "top"
],
"prices-tooltip-11" => [
"id" => "prices-tooltip-11",
"html" => _w("Product price changed for promo.")|escape,
"position" => "top"
]
]}
{if !empty($promos_model.promos)}
{foreach $promos_model.promos as $_promo}
{if $_promo.status === "active"}
{$_key = "prices-tooltip-promo-{$_promo.id}"}
{$_tooltips[$_key] = [
"id" => $_key,
"html" => sprintf(_w("The SKU variant is included in functioning promo “%s”. You can view the price change in the promo info block below."), $_promo.name)|escape
]}
{/if}
{/foreach}
{/if}
{$_locales = [
"stock_title" => _w("The quantity on this virtual stock is the sum of quantities on physical stocks — %s. You can change the list of stocks in “Settings” section."),
"storefronts_toggle_open_forms" => [
_w("Show %d storefront to which the promo is applied", "Show %d storefronts to which the promo is applied", 1, false),
_w("Show %d storefront to which the promo is applied", "Show %d storefronts to which the promo is applied", 2, false),
_w("Show %d storefront to which the promo is applied", "Show %d storefronts to which the promo is applied", 5, false)
],
"storefronts_toggle_hide_forms" => [
_w("Hide %d storefront to which the promo is applied", "Hide %d storefronts to which the promo is applied", 1, false),
_w("Hide %d storefront to which the promo is applied", "Hide %d storefronts to which the promo is applied", 2, false),
_w("Hide %d storefront to which the promo is applied", "Hide %d storefronts to which the promo is applied", 5, false)
]
]}
{/strip}
{* ШАБЛОНЫ *}
{$_templates = []}
{* КОМПОНЕНТЫ *}
{$_components = []}
{capture assign="_component_prices_section"}
{/capture}
{$_components["component-prices-section"] = $_component_prices_section|trim}
{capture assign="_component_price_table"}
{/capture}
{$_components["component-price-table"] = $_component_price_table|trim}
{capture assign="_component_promo_section"}
{/capture}
{$_components["component-promo-section"] = $_component_promo_section|trim}
{capture assign="_component_stocks_manager"}
{/capture}
{$_components["component-stocks-manager"] = $_component_stocks_manager|trim}
{capture assign="_component_dropdown"}
{/capture}
{$_components["component-dropdown"] = $_component_dropdown|trim}
{* PAGE *}
{* VUE *}
{* BODY *}
{* @event backend_prod_content.%plugin_id%.top *}
{if !empty($backend_prod_content_event)}{foreach $backend_prod_content_event as $_}{ifset($_.top)}{/foreach}{/if}
{* GLOBAL ERRORS *}
{* STATUS *}
{if $product.status === "1"}
[`The product is visible in listings in the storefront but its availability for ordering depends on its individual SKUs’ & variants’ properties.`]
{elseif $product.status === "0"}
[`The product is not shown among other products in the storefront, is not available for purchase, and can be viewed at its direct URL only.`]
{elseif $product.status === "-1"}
{sprintf(
_w('The product is not visible among other products in the storefront, is not available for purchase, cannot be viewed at its direct URL, and is excluded from the %sSitemap file%s.'),
'
',
sprintf(
' ',
_w('A Sitemap file is a special XML file containing URLs of all website pages that need to be indexed by search engines.')|escape
)
)}
{/if}
{* STOREFRONTS *}
{if !empty($frontend_urls) && (count($frontend_urls) > 1)}
{$_limit = 3}
{$_count = count($frontend_urls)}
{$_show_toggle = ($_count > $_limit)}
{$_store_locales = [
"show" => _w("Show %d storefront on which the product is available", "Show %d storefronts on which the product is available", $_count),
"hide" => _w("Hide storefront list"),
"hide_toggle" => _w("Hide storefronts")
]}
{if !empty($_show_toggle)}
{/if}
{/if}
{* PRICES *}
{* PROMOS *}
{* @event backend_prod_content.%plugin_id%.bottom *}
{if !empty($backend_prod_content_event)}{foreach $backend_prod_content_event as $_}{ifset($_.bottom)}{/foreach}{/if}
{* FOOTER *}
{include file="./includes/footer.html" hide_save=true hide_delete=empty($formatted_product["can_edit"]) inline}
{* INIT JS *}