← [`Back`] {if $product.id == 'new'}[`New product`]{else}{$product.name|escape}{/if} id: {$product.id} {* @event backend_product.%plugin_id%.title_suffix *} {if !empty($backend_product)}{foreach $backend_product as $_}{ifset($_.title_suffix)}{/foreach}{/if} {if $edit_rights} [`Edit`] {/if} {* @event backend_product.%plugin_id%.action_button *} {if !empty($backend_product)}{foreach $backend_product as $_}{ifset($_.action_button)}{/foreach}{/if}

{* PRODUCT PROFILE SECTION BEGIN *}
    {capture name='template-product-image-list'} {literal} {% if (!o.type || o.type == 'thumb') { %} {% for (var i = 0, n = o.images.length, image = o.images[0]; i < n; image = o.images[++i]) { %}
  • {% if (image.description) { %}
    {%#image.description%}
    {% } else { %}
    {%#o.placeholder%}
    {% } %}
  • {% } %} {% } else { %} {% for (var i = 0, n = o.images.length, image = o.images[0]; i < n; image = o.images[++i]) { %}
  • {/literal} {if $edit_rights} {literal}{/literal} {/if} {literal}{/literal} {if $edit_rights} {/if} {literal}
  • {% } %} {% } %} {/literal} {/capture} {* @see ProductSkuSettings.html *} {capture name='template-sku-image-list'} {literal} {% for (var i = 0, n = o.images.length, image = o.images[0]; i < n; image = o.images[++i]) { %}
  • {% } %} {/literal} {/capture} {* @event backend_product.%plugin_id%.image_li *} {if !empty($backend_product)}{foreach $backend_product as $_}{ifset($_.image_li)}{/foreach}{/if}

{$product.summary|escape} {if $edit_rights} [`Edit`]

{/if} {foreach $product.skus as $sku_id => $sku} {if $edit_rights} {/if} {/foreach} {capture name='template-sku'}{literal} {% var sku_id = o.sku_id; %} {% var sku = o.sku; %} {% var stocks = o.stocks || {}; %} {% sku.stocks = sku.stocks || {}; %} {% var stock_ids = o.stock_ids; %} {% var sku_runout = o.runout.sku[sku_id] || {}; %} {/literal} {if $edit_rights} {/if} {/capture}
{$sku.name|escape} {$sku.sku} {if !empty($sku.file_name)} {/if} {if $product.currency !== null}{wa_currency($sku.price, $product.currency)}{else}{wa_currency($sku.price, $primary_currency)}{/if} {if !count($sku.stock)} {shopHelper::getStockCountIcon($sku.count)} {if $sku.count === null}∞{else}{$sku.count}{/if} {if isset($runout['sku'][$sku_id]) && $runout['sku'][$sku_id]['days'] > 0 && $runout['sku'][$sku_id]['days'] < 90} {_w('%d day', '%d days', $runout['sku'][$sku_id]['days'])} {/if} {else} {foreach $stocks as $stock_id => $stock} {if isset($sku.stock[$stock_id])} {$count = $sku.stock[$stock_id]} {else} {$count = null} {/if} {shopHelper::getStockCountIcon($count, $stock_id)} {if $count === null}∞{else}{$count}{/if} {if isset($runout['sku'][$sku_id]['stock'][$stock_id]) && $runout['sku'][$sku_id]['stock'][$stock_id]['days'] > 0 && $runout['sku'][$sku_id]['stock'][$stock_id]['days'] < 90} {_w('%d day', '%d days', $runout['sku'][$sku_id]['stock'][$stock_id]['days'])} {/if} {if count($stocks) > 1} @{$stock.name|escape}
{/if} {/foreach} {/if}
[`Edit`]
{%=sku.name%} {%=sku.sku%} {% if (sku.file_name) { %} {% } %} {%=sku.price_str%} {% if (!$.isEmptyObject(sku.stock)){ %} {% for (var i = 0, n = stock_ids.length; i < n; i += 1) { %} {% var stock_id = stock_ids[i]; %} {% count = typeof sku.stock[stock_id] !== 'undefined' ? sku.stock[stock_id] : null; %} {%# sku.stock_icon[stock_id] %} {% if (count === null) { %}∞{% }else{ %}{%=''+count%}{% } %} {% if (sku_runout.stock && (stock_id in sku_runout.stock) && sku_runout.stock[stock_id].days > 0 && sku_runout.stock[stock_id].days < 90) { %} {%#sku_runout.stock[stock_id].days_str%} {% } %} {% if (!$.isEmptyObject(stocks)){ %} @{%=stocks[stock_id]['name']%}
{% } %} {% } %} {% } else { %} {%# sku.stock_icon[0] %} {% if (sku.count === null) { %}∞{% }else{ %}{%=''+sku.count%}{% } %} {% if (!$.isEmptyObject(sku_runout) && sku_runout.days > 0 && sku_runout.days < 90) { %} {%#sku_runout.days_str%} {% } %} {% } %}
[`Edit`]
{if !empty($product.reviews)} {$reviews = $product.reviews}

[`Customer reviews`] ({if !empty($counters['reviews'])}{$counters['reviews']}{else}0{/if})

[`Show all reviews`]
{/if}
{* PRODUCT PROFILE SECTION END *} {* PRODUCT EDIT SECTION MENU BEGIN *} {* PRODUCT EDIT SECTION MENU END *}
{* PRODUCT EDIT MAIN TAB SECTION BEGIN *} {* PRODUCT EDIT MAIN TAB SECTION END *} {* PRODUCT EDIT DESCRIPTIONS TAB SECTION BEGIN *} {* PRODUCT EDIT DESCRIPTIONS TAB SECTION END *} {capture name="template-productprofile-tab"}{literal}
[`Loading`]
{/literal}{/capture}
Ctrl + S
{* js templates block*} {foreach $smarty.capture as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {capture name=$template}{/capture} {/if} {/foreach} {$title_suffix = " — "|cat:{$wa->accountName(false)}|escape:'javascript'}