How can I show number of ordered products in admin order details page?
Just was to double check if correct amount is put to box for packing.
{$oi.amount}
?
How can I show number of ordered products in admin order details page?
Just was to double check if correct amount is put to box for packing.
{$oi.amount}
?
Use something like
{$total_products = 0} {foreach from=$order_info.products item=oi} {$total_products = $total_products + $oi.amount} {/foreach} {$total_products|fn_print_r}
Use something like
{$total_products = 0} {foreach from=$order_info.products item=oi} {$total_products = $total_products + $oi.amount} {/foreach} {$total_products|fn_print_r}
This works well, but fn_print_r adds some weird styling..
Useing this
{$total_products = 0} {foreach from=$order_info.products item=oi} {$total_products = $total_products + $oi.amount} {/foreach} {__('quantity')}: {$total_products}
as
totals_content.post.tpl
Thanks for help!
This works well, but fn_print_r adds some weird styling..
It is used for debug purposes only.