{strip} {$_settings_url = "{$wa_app_url}?action=settings#/typefeat/"} {if !empty($product["type_id"])} {$_settings_url = "{$_settings_url}{$product["type_id"]}/"} {/if} {$_sprite_url = "`$wa_url`wa-apps/shop/img/backend/products/product/icons.svg?v=`$wa->version()`"} {$_view_types = [ "thin" => [ "id" => "thin", "html" => "", "render_skus" => false, "expanded_sku" => false ], "half" => [ "id" => "half", "html" => "", "render_skus" => true, "expanded_sku" => false ], "full" => [ "id" => "full", "html" => "", "render_skus" => true, "expanded_sku" => true ] ]} {$_active_view_type_id = "full"} {$_active_view_type = $_view_types[$_active_view_type_id]} {$formatted_product["view_types"] = $_view_types} {$formatted_product["view_type_id"] = $_active_view_type["id"]} {foreach $formatted_product.skus as $_sku_index => $_sku} {$formatted_product.skus[$_sku_index]["expanded"] = $_active_view_type["expanded_sku"]} {$formatted_product.skus[$_sku_index]["render_skus"] = $_active_view_type["render_skus"]} {/foreach} {* ШАБЛОНЫ *} {$_templates = []} {capture assign="_feature_select_dialog"}{include file="./dialogs/feature_select.html" inline}{/capture} {$_templates["dialog_feature_select"] = $_feature_select_dialog} {capture assign="_sku_delete_dialog"}{include file="./dialogs/sku_delete_dialog.html" inline}{/capture} {$_templates["dialog_sku_delete"] = $_sku_delete_dialog} {capture assign="_sku_delete_photo"}{include file="./dialogs/sku_delete_photo.html" inline}{/capture} {$_templates["dialog_sku_delete_photo"] = $_sku_delete_photo} {capture assign="_photo_manager_dialog"}{include file="./ProdSkuImageDialog.html" inline}{/capture} {$_templates["dialog_photo_manager"] = $_photo_manager_dialog} {capture assign="_mass_sku_generation"}{include file="./dialogs/mass_sku_generation.html" inline}{/capture} {$_templates["dialog_mass_sku_generation"] = $_mass_sku_generation} {* Диалог показывающий какие значения характеристики используются в модификациях *} {capture assign="_feature_used_values"}{include file="./dialogs/feature_used_values.html" inline}{/capture} {$_templates["dialog_feature_used_values"] = $_feature_used_values} {capture assign="_minimal_mode_message"}{include file="./dialogs/minimal_mode_message.html" inline}{/capture} {$_templates["dialog_minimal_mode_message"] = $_minimal_mode_message} {capture assign="_locked_mode_message"}{include file="./dialogs/locked_mode_message.html" inline}{/capture} {$_templates["dialog_locked_mode_message"] = $_locked_mode_message} {* КОМПОНЕНТЫ *} {* Они могут добавляться внутри шаблонов через globals. Не удалять. *} {$_components = []} {capture assign="_component_fractional_section"}{include file="./components/component_fractional_section.html" inline}{/capture} {$_components["component-fractional-section"] = $_component_fractional_section|trim} {$_globals_components = $wa->globals("components")} {if !empty($_globals_components)} {$_components = array_merge($_components, $_globals_components)} {/if} {* LOCALE *} {$_locales = [ "file_type" => _w("Unsupported image type. Use PNG, GIF, WEBP and JPEG image files only."), "sku_required" => _w("An SKU code is required for grouping."), "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."), "total_sku_mods" => _w("Total: %s."), "not_defined" => _w("Not defined"), "main_sku_visibility" => _w("The main SKU variant cannot be hidden. Either select another variant as main or enable visibility in the storefront for the main variant."), "sku_generation_sku_forms" => [ _w("%d SKU with %s each.", "%d SKUs with %s each.", 1, false), _w("%d SKU with %s each.", "%d SKUs with %s each.", 2, false), _w("%d SKU with %s each.", "%d SKUs with %s each.", 5, false) ], "sku_generation_sku_mod_forms" => [ _w("%d variant", "%d variants", 1, false), _w("%d variant", "%d variants", 2, false), _w("%d variant", "%d variants", 5, false) ], "features_hidden_on_front_forms" => [ _w("%d product variant is not displayed in the storefront because of an error.", "%d product variants are not displayed in the storefront because of an error.", 1, false), _w("%d product variant is not displayed in the storefront because of an error.", "%d product variants are not displayed in the storefront because of an error.", 2, false), _w("%d product variant is not displayed in the storefront because of an error.", "%d product variants are not displayed in the storefront because of an error.", 5, false) ], "value_invalid" => _w("Invalid value"), "value_required" => _w("This field is required.") ]} {$_globals_locales = $wa->globals("locales")} {if !empty($_globals_locales)} {$_locales = array_merge($_locales, $_globals_locales)} {/if} {* ПОДСКАЗКИ *} {$_tooltips = [ "price-error" => [ "id" => "price-error", "html" => sprintf(_w("Enter a number between 0 and %s99,999,999,999.9999%s with max. 4 decimal digits."), '', ""), "width" => "16rem" ], "product-sku-1" => [ "id" => "product-sku-1", "html" => _w("Move by one SKU up")|escape, "class" => "inline" ], "product-sku-2" => [ "id" => "product-sku-2", "html" => _w("Move by one SKU down")|escape, "class" => "inline" ], "product-sku-3" => [ "id" => "product-sku-3", "html" => _w("Copy the SKU with all its variants")|escape ], "product-sku-4" => [ "id" => "product-sku-4", "html" => _w("Delete the SKU with all its variants")|escape ], "product-sku-5" => [ "id" => "product-sku-5", "html" => _w("You cannot delete the last product SKU.")|escape ], "product-sku-6" => [ "id" => "product-sku-6", "html" => _w("Drag to change the variants’ sort order.")|escape ], "product-sku-7" => [ "id" => "product-sku-7", "html" => _w("You cannot move the last variant away from an SKU.")|escape ], "product-sku-8" => [ "id" => "product-sku-8", "html" => _w("Change image")|escape, "class" => "inline" ], "product-sku-9" => [ "id" => "product-sku-9", "html" => _w("Delete image")|escape, "class" => "inline" ], "product-sku-10" => [ "id" => "product-sku-10", "html" => _w("Copy variant")|escape, "class" => "inline" ], "product-sku-11" => [ "id" => "product-sku-11", "html" => _w("Delete variant")|escape, "class" => "inline" ], "product-sku-12" => [ "id" => "product-sku-12", "html" => _w("You cannot delete the last SKU variant.")|escape ], "product-sku-13" => [ "id" => "product-sku-13", "html" => _w("Main product SKU")|escape ], "product-sku-14" => [ "id" => "product-sku-14", "html" => _w("Make the main product SKU")|escape, "class" => "inline" ], "product-sku-15" => [ "id" => "product-sku-15", "html" => _w("Main product variant")|escape, "class" => "inline" ], "product-sku-16" => [ "id" => "product-sku-16", "html" => _w("Make the main product variant")|escape ], "product-sku-17" => [ "id" => "product-sku-17", "html" => _w("The variant is available for purchase.")|escape ], "product-sku-18" => [ "id" => "product-sku-18", "html" => _w("The variant is unavailable for purchase.")|escape ], "product-sku-19" => [ "id" => "product-sku-19", "html" => _w("Collapse SKU variants")|escape, "class" => "inline" ], "product-sku-20" => [ "id" => "product-sku-20", "html" => _w("Expand SKU variants")|escape, "class" => "inline" ], "product-sku-21" => [ "id" => "product-sku-21", "html" => _w("The SKU is not available for purchase.")|escape ], "product-sku-22" => [ "id" => "product-sku-22", "html" => _w("Some SKU variants are available for purchase.")|escape ], "product-sku-23" => [ "id" => "product-sku-23", "html" => _w("The SKU is available for purchase.")|escape ], "product-sku-24" => [ "id" => "product-sku-24" ], "product-sku-front-features-1" => [ "id" => "product-sku-front-features-1", "html" => _w("Add here the product features whose values customers should select to buy a corresponding product variety.")|escape ], "product-sku-front-features-2" => [ "id" => "product-sku-front-features-2", "html" => _w("The selectable features mode is enabled for this product. In this mode, you need to pick at least one feature for customers to select the variants of this product in the storefront.")|escape ], "product-mass-sku-generation" => [ "id" => "product-mass-sku-generation", "html" => _w("Automatically create product SKUs matching all selected feature settings.")|escape, "position" => "top" ], "product-image-dialog-1" => [ "id" => "product-image-dialog-1", "html" => _w("Drag & drop image files here or click this area to upload files.")|escape, "position" => "top" ], "product-sku-features-hidden-on-front" => [ "id" => "product-sku-features-hidden-on-front", "html" => _w("In the product variants’ properties must be specified the values of all selectable product features. You cannot select default values of such features for the entire product.")|escape ], "product-sku-feature-hidden-on-front" => [ "id" => "product-sku-feature-hidden-on-front", "html" => _w("This product variant is not displayed in the storefront. To make it displayed, specify the values of all selectable features in its properties.")|escape ], "product-feature-used-on-front" => [ "id" => "product-feature-used-on-front", "html" => _w("This feature is used to select product variants in the storefront. Its values can be selected only for individual SKUs.")|escape, "position" => "top" ], "sku_full_required" => [ "id" => "sku_full_required", "html" => _w("Enter an SKU code or name, or both of these values. The “code + name” combination must be unique for every SKU of this product.")|escape ], "sku_full_unique" => [ "id" => "sku_full_unique", "html" => _w("This product has SKUs with the same “code + name” combination. It must be unique for all SKUs within a product.")|escape ], "sku_mod_features_name_error_1" => [ "id" => "sku_mod_features_name_error_1", "html" => _w("To distinguish between SKU variants, determine features for product variants selection and set their values in the variants’ properties.")|escape ], "sku_mod_features_name_error_2" => [ "id" => "sku_mod_features_name_error_2", "html" => _w("This product has SKU variants with equal names. A variant name consists of the SKU name and the set values of features used for product variants selection. Either change the variant name or delete variants with equal names.")|escape ], "sku_mod_features_values_error_1" => [ "id" => "sku_mod_features_values_error_1", "html" => _w("For this product, variant selection mode by feature values is enabled. In this mode, determine at least one feature by whose values customers will be able to select product variants in the storefront.")|escape ], "sku_mod_features_values_error_2" => [ "id" => "sku_mod_features_values_error_2", "html" => _w("This product has SKU variants with equal values of the features used for product variants selection in the storefront. Either change those values or delete variants with equal values.")|escape ], "product-feature-type-select" => [ "id" => "product-feature-type-select", "html" => _w("You cannot select default values for features with the “Multiple values selection from a list” format. Select this feature’s values in product variants’ properties.")|escape ] ]} {capture assign="_tooltip_visible_in_storefront"}
[`The heading is visible in the storefront.`]
{sprintf_wp("You can change this setting in product types and features setup section.", $_settings_url)}
{/capture} {$_tooltips["visible_in_storefront"] = [ "id" => "visible_in_storefront", "html" => $_tooltip_visible_in_storefront|trim, "width" => "15rem" ]} {$_globals_tooltips = $wa->globals("tooltips")} {if !empty($_globals_tooltips)} {$_tooltips = array_merge($_tooltips, $_globals_tooltips)} {/if} {* ЛОКАЛЬНЫЕ КОМПОНЕНТЫ *} {capture assign="_component_feature"}[`A link to download the file will be sent to a customer in an order notification and will be valid only after payment. A convenient delivery method for digital products.`]