darius
#1
Hello,
some time ago ecomlabs gave me such code to load customers order list in to a block
{foreach from=$_orders.0 item="o"}
#{$o.order_id} |
{include file="common/status.tpl" status=$o.status display="view"} |
{$o.firstname} {$o.lastname} |
{$o.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"} |
{include file="common/price.tpl" value=$o.total} |
{foreachelse}
can this also load incomplete status orders ?
Where does the value of the $_orders variable come from?
darius
#3
Where does the value of the $_orders variable come from?
full code
{$params = $smarty.request}
{$params.user_id = $auth.user_id}
{$_orders = $params|fn_get_orders:2}
{foreach from=$_orders.0 item="o"}
#{$o.order_id} |
{include file="common/status.tpl" status=$o.status display="view"} |
{$o.firstname} {$o.lastname} |
{$o.timestamp|date_format:"`$settings.Appearance.date_format`, `$settings.Appearance.time_format`"} |
{include file="common/price.tpl" value=$o.total} |
{foreachelse}
{__("text_no_orders")} |
{/foreach}
{__("id")} |
{__("status")} |
{__("customer")} |
{__("date")} |
{__("total")} |
{/if}