<{* Template: user-orders.html Description: Author: 1260 A/S, @1260-digital Since: 2022-09-01 *}> <{capture name="title"}> <{if $order}> <{capture name="order_total"}> <{$order->getTotalPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/capture}> <{t section="Thanks" x=$order->getWebshopOrderId() y=$smarty.capture.order_total}>► Step 3 of 3 - Order (#{x}) has been received. Total: {y}<{/t}> <{else}> <{t section="Thanks"}>The order was not found in the system.<{/t}> <{/if}> <{/capture}> <{include file="partials/user.profile.wrapper.start.html"}>

Dine points

<{foreach $my_points as $point}> <{/foreach}>
Dato Ordre Status Point Udløber Afventer indtil
<{$point->getTime()|date_format:"%d.%m.%Y"}> <{if $order = $point->getOrder()}> <{$order->getWebshopOrderId()|escape}> <{/if}> <{if $point->getStatus() == "approved"}> <{t}>Godkendt<{/t}> <{elseif $point->getStatus() == "pending"}> <{t}>Afventer<{/t}> <{elseif $point->getStatus() == "revoked"}> <{t}>Tilbagekaldt<{/t}> <{elseif $point->getStatus() == "expired"}> <{t}>Udløbet<{/t}> <{else}> <{$point->getStatus()|escape}> <{/if}> <{$point->getPoints()|number_format:0:",":"."}> <{$point->getExpires()|date_format:"%d.%m.%Y"}> <{$point->getPendingUntil()|date_format:"%d.%m.%Y"}>
<{if $webshop->hasLoyaltyProgram()}> <{capture name="hasLoyaltyProgram"}> <{t x=$customer->getActivePoints()|number_format:0:",":"."}>Du har {x} aktive point.<{/t}> <{/capture}> <{include file="components/alert.html" variant="info" text=$smarty.capture.hasLoyaltyProgram}> <{/if}>
<{include file="partials/user.profile.wrapper.end.html"}>