{$stocks_count = count($stocks)}

[`In stock now`]

{if !empty($product_stocks)} {* After filtred by stock_id *} {$current_stock = []} {if $stocks_count > 1 && !empty($stock_id)} {foreach $stocks as $stock} {if $stock.id == $stock_id} {$stocks = [$stock]} {$current_stock = $stock} {break} {/if} {/foreach} {/if}
{if empty($current_stock)} {/if} {foreach $stocks as $stock} {/foreach} {if !empty($current_stock)} {/if} {strip} {if $current_stock} {else if !empty($stocks)} {foreach $stocks as $stock} {/foreach} {/if} {/strip}
 {strip} [`All stocks`] {if $sort === 'count'} {/if} {/strip}{strip} {$sort_key = 'stock_count_'|cat:$stock.id} {$stock.name|escape} {if $sort == $sort_key} {/if} {/strip}[`Total market value`] [`Total purchase costs`]
{$current_stock.total_count} {$current_stock.total_market_html} {$current_stock.total_purchase_html}
{$total_all_stocks.count} {$total_all_stocks.total_market_html}{$stock.total_count} {$stock.total_market_html}
{_w('%d product','%d products', $count)} {sprintf(_w('of %d'), $total_count)}
= $total_count}style="display:none;"{/if}>[`Show more products`]
{else}

[`See the general picture of your overall stock assets by every SKU and stock.`]

    {$stocks_count = count($stocks)} 0} class="strike"{/if}>{sprintf('[`Add at least one stock in your store settings.`]', '?action=settings#/stock')}
  1. {sprintf('[`Save stock quantities for your products.`]', 'products/')}
{/if} {if !empty($product_stocks)} {* table of info @see 'template-product-stocks' template *} {literal} {/literal} {$_sort = ""} {if !empty($sort) && $sort !== "count"} {$_sort = $sort} {/if} {/if}