{$product.summary|escape} {if $edit_rights} [`Edit`]
{/if}| {$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} |
{if $edit_rights}
[`Edit`] | {/if}
| {%=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%} {% } %} {% } %} |
{/literal}
{if $edit_rights}
[`Edit`] | {/if}