{$categories_rights = $wa->userRights('setscategories')}
{if $forecast.days < shopProduct::MAX_FORECAST_DAYS} {* this is 10 years *} {sprintf( _w('Based on your average monthly sales volume for %s during last three months (%d units per month), you will run out of this product in %d days (on %s).'), $product.name|escape, $forecast.sold_rounded, $forecast.days, wa_date("humandate", $forecast.date) )} {else} {sprintf( _w('Based on your average monthly sales volume for %s during last three months (%d units per month), you will run out of this product in more than 10 years (on %s).'), $product.name|escape, $forecast.sold_rounded, wa_date("humandate", $forecast.date) )} {/if}
{/if}[`Available stock balance`]: {literal}{% if (o.count !== null) { %}{%#o.count%}{% } else { %}∞{% } %}{/literal}
{literal} {% if (o.count !== null && !$.isEmptyObject(o.runout_str)) { %} {%=o.runout_str%} {% } %} {/literal} {/capture}{$sku.name|escape} {$sku.sku|escape} {if !empty($sku.file_name)} {/if} | {if $product.currency !== null}{wa_currency_html($sku.price, $product.currency)}{else}{wa_currency_html($sku.price, $primary_currency)}{/if} |
{if !count($sku.stock)}
{shopHelper::getStockCountIcon($sku.count)}
{if $sku.count === null}∞{else}{$sku.count}{/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 count($stocks) > 1}
{$stock.name|escape} {/if} {/foreach} {/if} |
{if $edit_rights}
[`Edit`] | {/if}
{%=sku.name%} {%=sku.sku%} {% if (sku.file_name) { %} {% } %} | {%#sku.price_html%} |
{% 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 (!$.isEmptyObject(stocks)){ %}
@{%=stocks[stock_id]['name']%} {% } %} {% } %} {% } else { %} {%# sku.stock_icon[0] %} {% if (sku.count === null) { %}∞{% }else{ %}{%=''+sku.count%}{% } %} {% } %} |
{/literal}
{if $edit_rights}
{literal}[`Edit`]{/literal} | {/if}