{strip} {$_sprite_url = "`$wa_url`wa-apps/shop/img/backend/products/product/icons.svg?v=`$wa->version()`"} {$_lang = substr($wa->locale(), 0, 2)} {$_max_post_size = waRequest::getPostMaxSize()} {$_max_file_size = waRequest::getUploadMaxFilesize()} {$_max_post_size_mb = floor($_max_post_size * 10/(1024))/10} {$_max_file_size_mb = floor($_max_file_size * 10/(1024))/10} {* ШАБЛОНЫ *} {$_templates = []} {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} {* ПОДСКАЗКИ *} {$_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-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-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-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-name-error" => [ "id" => "product-name-error", "html" => _w("This field may contain a maximum of 255 characters.") ], "product-photo-disabled" => [ "id" => "product-photo-disabled", "html" => _w("To add images, save the product.") ] ]} {* КОМПОНЕНТЫ *} {capture assign="_dropdown_currency"} {/capture} {$_templates["component-dropdown-currency"] = $_dropdown_currency} {capture assign="_component_product_badge_form"}
{/capture} {$_templates["component-product-badge-form"] = $_component_product_badge_form} {capture assign="_component_file_manager"}
 
  [`Delete`]

[`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.`]

[`Comment to attached file (optional):`]
{/capture} {$_templates["component-file-manager"] = $_component_file_manager|trim} {capture assign="_sku_file_delete_confirm_dialog"}{include file="./dialogs/sku_file_delete_confirm.html" inline}{/capture} {$_templates["sku-file-delete-confirm-dialog"] = $_sku_file_delete_confirm_dialog|trim} {$_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} {$_globals_tooltips = $wa->globals("tooltips")} {if !empty($_globals_tooltips)} {$_tooltips = array_merge($_tooltips, $_globals_tooltips)} {/if} {* LOCALES *} {$_locales = [ "add_tag" => _w("Add a tag"), "select_category" => _w("Please select a category"), "storefront_changed" => _w('Product publication URL has changed. Storefronts’ addresses will be updated after you click “Save”.'), "modification_wysiwyg_message" => _ws('WYSIWYG editor may change your HTML code. It is necessary for correct text formatting. Smarty code may be broken and outdated HTML tags may be replaced with modern ones. Are you sure to switch to WYSIWYG editor?'), "file_type" => _w("Unsupported image type. Use PNG, GIF, WEBP and JPEG image files only."), "file_size" => "{_w("Each file’s size cannot be greater than")} {$_max_file_size_mb}{_w("KB")}.", "post_size" => "{_w("Total size of selected files cannot be greater than")} {$_max_post_size_mb}{_w("KB")}.", "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."), "max_length_error" => "{_w("Invalid value")} ", "product_name_required" => _w("Enter a product name.") ]} {$_globals_locales = $wa->globals("locales")} {if !empty($_globals_locales)} {$_locales = array_merge($_locales, $_globals_locales)} {/if} {* OTHER *} {$_active_main_category = null} {if !empty($categories) && !empty($categories[$product.category_id])} {$_active_main_category = $categories[$product.category_id]} {/if} {/strip}