### Dine ordrer

Ordrenummer | Produkter | Dato | Status | Beløb | Betalt
--- | --- | --- | --- | --- | ---
<{section name="i" loop=$my_orders}>
<{$my_orders[i]->getWebshopOrderId()|escape}> | <{assign var="products" value=$my_orders[i]->getOrderProducts()}> <{section name="j" loop=$products}> <{assign var="p" value=$products[j]->getProduct()}> <{assign var="image" value=$p->getImage()}> <{if $image}> <{/if}> <{$products[j]->getAmount()}> stk. <{$products[j]->getName()|escape}> <{assign var="attributes" value=$products[j]->getAttributes()}> <{if $attributes}> <{section name="k" loop=$attributes}> <{$attributes[k].name}>: <{$attributes[k].val}> <{/section}> <{/if}> <{assign var="file" value=$products[j]->getFile()}> <{if $file}> Download: <{$file->filename|escape}> <{/if}> <{/section}> <{if !$my_orders[i]->hasReviews() && $settings.settings.show_reviews}> Skriv anmeldelse <{/if}> | <{$my_orders[i]->getTime()|date_format:"%d.%m.%Y %H:%M:%S"}> | <{if $my_orders[i]->getStatus() == "new"}> <{t}>Ubehandlet<{/t}> <{elseif $my_orders[i]->getStatus() == "process"}> <{t}>Igang<{/t}> <{elseif $my_orders[i]->getStatus() == "pending"}> <{t}>Venter<{/t}> <{elseif $my_orders[i]->getStatus() == "ready"}> <{t}>Klar<{/t}> <{elseif $my_orders[i]->getStatus() == "sent"}> <{t}>Sendt<{/t}> <{elseif $my_orders[i]->getStatus() == "credit"}> <{t}>Kreditnota<{/t}> <{elseif $my_orders[i]->getStatus() == "cancelled"}> <{t}>Anulleret<{/t}> <{else}> <{$my_orders[i]->getStatus()|escape}> <{/if}> <{if $my_orders[i]->getTrackingNumbers()}> <{assign var="shipping" value=$my_orders[i]->getShipping()}> <{assign var="tracking_numbers" value=$my_orders[i]->getTrackingNumbers()}> <{t}>Følg din ordre hos<{/t}> <{$shipping->getName()|escape}>: <{section name="k" loop=$tracking_numbers}> <{if $shipping && $shipping->getTrackingUrl()}> <{$tracking_numbers[k]|escape}> <{else}> <{$tracking_numbers[k]|escape}><{if !$smarty.section.k.last}>,<{/if}> <{/if}> <{/section}> <{/if}> | <{$my_orders[i]->getTotalPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}> | <{if $my_orders[i]->getIsPaid()}> Ja <{else}> Nej, betal nu <{/if}>
<{/section}>