{function sort_url field=''}{strip} #/products/{if $collection_param}{$collection_param}&{/if} view={$view}&sort={$field}& order={if $order == 'asc' && $sort==$field}desc{else}asc{/if} {/strip}{/function} {function sort_icon field=''}{strip} {if $sort==$field}{/if} {/strip}{/function} {$sort_column = $manual && $sort == 'sort'}
{if $sort_column} {/if} {foreach $stocks as $stock} {foreachelse} {/foreach}
[`Name`] {sort_icon field='name'}
 
[`Purchase price`]
[`Compare at price`]
[`Price`]
{$stock.name|escape}
[`In stock`]