<{* Issue #466: Digital right-of-withdrawal function (Consumer Rights Directive art. 11a) *}> <{capture name="noindex"}>noindex<{/capture}> <{if $step == "receipt"}> <{* ── Receipt ─────────────────────────────────────────────── *}>
<{include file="components/alert.html" variant="success" icon="check" text="Your withdrawal has been registered. We have sent a confirmation to your e-mail."|t}>

<{t}>Your withdrawal has been registered<{/t}>

<{t order_id=$order->getWebshopOrderId()}>Order #{order_id}<{/t}>

<{t}>You will hear from us regarding the next steps. Any return of goods is arranged separately.<{/t}>

<{elseif $step == "confirm"}> <{* ── Step 2: confirmation ────────────────────────────────── *}>

<{t}>Confirm withdrawal<{/t}>

<{t order_id=$order->getWebshopOrderId()}>Order #{order_id}<{/t}>

<{include file="components/alert.html" variant="info" text="You are about to withdraw from this purchase. When you confirm, we register your withdrawal and send you a confirmation by e-mail."|t}> <{if $order->hasDownloadedDigitalContent()}> <{include file="components/alert.html" variant="warning" text="Note: Your order contains digital content that you have already downloaded. The right of withdrawal for that content may have lapsed. You can still withdraw, and the shop will assess whether the amount is refunded."|t}> <{/if}> <{if $order->hasWithdrawalExemptProducts()}> <{include file="components/alert.html" variant="warning" text="Some items in this order are exempt from the 14-day right of withdrawal (for example made-to-order or perishable goods). You can still withdraw, and the shop assesses each item individually."|t}>
    <{foreach $order->getWithdrawalExemptProducts() as $item}>
  • <{$item.name|escape}>
    <{$item.text|escape}>
  • <{/foreach}>
<{/if}> <{* § 20 a, stk. 2: kunden skal kunne bekræfte navn, aftalen og hvor kvitteringen sendes hen *}>
<{t}>Name<{/t}><{$order->getOrderName()|escape}>
<{t}>Order Number<{/t}>#<{$order->getWebshopOrderId()}>
<{t}>Receipt will be sent to<{/t}><{$order->getEmail()|escape}>

<{include file="components/button.html" size="lg" text="Confirm withdrawal"|t type="submit" variant="action" name="confirm" value="1"}>

<{t}>Cancel — I do not want to withdraw after all<{/t}>

<{elseif $step == "start"}> <{* ── Step 1: show order + start withdrawal ───────────────── *}>

<{t}>Withdraw from purchase<{/t}>

<{t order_id=$order->getWebshopOrderId()}>Order #{order_id}<{/t}> <{if $order->getInvoiceId()}>
<{t invoice_id=$order->getInvoiceId()}>Invoice number: {invoice_id}<{/t}><{/if}>

    <{foreach $order->getOrderProducts() as $product}>
  • <{$product->getAmount()}> × <{$product->getName()|escape}>
  • <{/foreach}>
<{if $order->hasWithdrawalExemptProducts()}> <{include file="components/alert.html" variant="warning" text="Some items in this order are exempt from the 14-day right of withdrawal (for example made-to-order or perishable goods). You can still withdraw, and the shop assesses each item individually."|t}>
    <{foreach $order->getWithdrawalExemptProducts() as $item}>
  • <{$item.name|escape}>
    <{$item.text|escape}>
  • <{/foreach}>
<{/if}> <{* § 20 a, stk. 2: kunden skal kunne bekræfte navn, aftalen og hvor kvitteringen sendes hen *}>
<{t}>Name<{/t}><{$order->getOrderName()|escape}>
<{t}>Order Number<{/t}>#<{$order->getWebshopOrderId()}>
<{t}>Receipt will be sent to<{/t}><{$order->getEmail()|escape}>

<{include file="components/label.html" for="reason" text="Reason (optional)"|t}> <{include file="components/input.html" name="reason" type="text" placeholder="You do not have to give a reason"|t inputmode="text"}>

<{include file="components/button.html" size="lg" text="Withdraw from purchase"|t type="submit" variant="action" name="withdraw" value="1"}>
<{if $order->getWithdrawalDays() > 14}>

<{t days=$order->getWithdrawalDays()}>You have a {days}-day right of withdrawal. When you withdraw, we send you a confirmation. If goods are to be returned, we arrange that afterwards.<{/t}>

<{else}>

<{t}>You have a 14-day right of withdrawal. When you withdraw, we send you a confirmation. If goods are to be returned, we arrange that afterwards.<{/t}>

<{/if}>
<{elseif $step == "expired"}> <{* ── Withdrawal period expired ───────────────────────────── *}>
<{include file="components/alert.html" variant="warning" text="This order can no longer be withdrawn online."|t}>

<{t}>The withdrawal period has expired<{/t}>

<{t order_id=$order->getWebshopOrderId()}>Order #{order_id}<{/t}>

<{t}>If you have questions about your order, you are welcome to contact us.<{/t}>

<{else}> <{* ── Step 0: find order (footer link without token) ──────── *}>

<{t}>Withdraw from purchase<{/t}>

<{if $get.not_found}> <{include file="components/alert.html" variant="error" icon="x" text="Your order was not found"|t}> <{/if}>

<{t}>Find order<{/t}>
<{include file="components/label.html" for="webshop_order_id" text="Order Number"|t required="true"}> <{include file="components/input.html" name="webshop_order_id" type="text" placeholder="Order Number"|t inputmode="text" required="true"}>
<{include file="components/label.html" for="email" text="E-mail-adress"|t required="true"}> <{include file="components/input.html" name="email" type="text" placeholder="E-mail-adress"|t inputmode="text" required="true"}>

<{include file="components/button.html" size="lg" text="Continue"|t type="submit" variant="action"}>
<{/if}>