{if $webshop->hasLoyaltyProgram() && $customer && $customer->getActivePoints()}> <{* The customer asked for more points than the basket can carry, typically because the basket changed after the points were chosen. This sits OUTSIDE the check below, because there may be 0 points left to use — and the explanation would then vanish. *}> <{if $points_clamped}>
<{if $points_granted}> <{t x=$points_clamped|number_format:0:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".") y=$points_granted|number_format:0:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}>Du valgte {x} point, men kurven er ændret siden. Vi bruger {y} point på ordren.<{/t}> <{else}> <{t x=$points_clamped|number_format:0:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}>Du valgte {x} point, men de kan ikke bruges på kurvens nuværende indhold.<{/t}> <{/if}>
<{/if}> <{if $customer->getPointsAvailable()}> <{/if}> <{/if}>