<{if $order_return}> <{$order = $order_return->getOrder()}> <{* Lande (#1363): ordrens valuta, når ordren er i en anden valuta end den, siden vises i *}> <{if $order && $order->getCurrency() != $webshop->getCurrency()}><{$currency = $order->getCurrency()}><{/if}>

<{if $order_return->getExchange()}><{t}>Exchange<{/t}><{else}><{t}>Returned items<{/t}><{/if}>

<{if $order_return->getExchange()}><{t}>Exchange, order<{/t}><{else}><{t}>Return, order<{/t}><{/if}> <{$order->getWebshopOrderId()}>

<{if $order_return->getStatus() == "new"}> <{if $order_return->getExchange()}> <{include file="components/alert.html" variant="info" text="Your exchange is being processed"|t}> <{else}> <{include file="components/alert.html" variant="info" text="Din returnering er under behandling"|t}> <{/if}> <{elseif $order_return->getStatus() == "done"}> <{if $order_return->getExchange()}> <{include file="components/alert.html" variant="success" text="Your exchange has been processed"|t}> <{else}> <{include file="components/alert.html" variant="success" text="Din returnering er færdigbehandlet"|t}> <{/if}> <{/if}>
<{foreach $order_return->getReturnProducts() as $return_product}> <{$product = $return_product->getProduct()}> <{if $product}> <{/if}> <{/foreach}> <{* Deposit refund rows (pant, #645) — separate accessor, no product objects *}> <{foreach $order_return->getDepositRefunds() as $deposit_refund}> <{/foreach}> <{if !$order_return->getExchange()}> <{if $shipping = $order_return->getShipping()}> <{/if}> <{else}> <{if $order_return->getShippingPrice() > 0}> <{/if}> <{$diff = $order_return->getExchangeDifference()}> <{if $diff > 0.005}> <{elseif $diff < -0.005}> <{$surplus = $diff * -1}> <{else}> <{/if}> <{/if}>
<{t section="Order"}>Products<{/t}>
<{t section="Order"}>Product<{/t}> <{t section="Order"}>Comment<{/t}> <{t section="Order"}>Price<{/t}>
<{if $image = $product->getImage()}> <{$image->getDescription()|escape}> <{/if}>
<{$product->getName()|escape}> <{if $attributes = $return_product->getAttributes()}>
    <{section name="j" loop=$attributes}>
  • <{$attributes[j].name|escape}>: <{$attributes[j].val|escape}>
  • <{/section}>
<{/if}>
<{$return_product->getReason()|escape}> <{$return_product->getUnitPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$return_product->getUnitVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{$deposit_refund->getDisplayName()|escape}> (<{$deposit_refund->getDepositUnits()}> <{t section="Order"}>pcs.<{/t}>) <{$deposit_refund->getUnitPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$deposit_refund->getUnitVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Original price<{/t}> <{$order->getCurrency()|escape}> <{$order->getTotalPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$order->getVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Total return<{/t}> <{$order->getCurrency()|escape}> <{$order_return->getPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$order_return->getVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Return shipping via<{/t}> <{$shipping->getName()|escape}> <{$order->getCurrency()|escape}> <{$order_return->getShippingPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$order_return->getShippingVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Refund<{/t}> <{$order_return->getReturnPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$order_return->getReturnVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Return value<{/t}> <{$order_return->getExchangeReturnValue()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>New item<{/t}> <{$order_return->getExchangeTotal()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Return shipping<{/t}> <{$order_return->getShippingPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>Difference to pay<{/t}>
<{t}>You pay for the new items via the payment link, and the return value is refunded to your card.<{/t}>
<{$diff|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{if $order_return->getRefundSurplus()}><{t}>Refunded to your card<{/t}><{else}><{t}>You get as store credit<{/t}><{/if}> <{$surplus|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{t}>Even exchange — nothing to pay<{/t}> 0<{$webshop->getDecimalSeparator(",")}>00 <{$currency}>
<{if $order_return->getExchange()}>

<{t}>You exchange for<{/t}>

<{foreach $order_return->getOrderReturnExchanges() as $ex}> <{$exp = $ex->getProduct()}> <{if $exp}>
<{if $eximg = $exp->getImage()}> <{/if}>
<{$exp->getName()|escape}> <{foreach $ex->getAttributeLabels() as $label}>
<{$label|escape}>
<{/foreach}>
<{$ex->getUnitPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{/if}> <{/foreach}> <{/if}>
<{if $qr = $order->getGlsReturnQr()}>

<{t}>Your return label<{/t}>

<{t}>Scan the QR code below to return your package<{/t}>

<{t}>QR code return label<{/t}>
<{/if}>
<{/if}>