<{if $order}>

Retuner varer

Ordre ID: <{$order->getWebshopOrderId()}> <{if $order->getInvoiceId()}>
Fakturanummer: <{$order->getInvoiceId()}> <{/if}>
<{$line = 0}> <{foreach $order->getOrderProducts() as $product}> <{assign var="p" value=$product->getProduct()}> <{$returned = $product->getReturned()}> <{section name="i" loop=$product->getAmount()}> <{$line = $line+1}> <{if $line - $returned > 0}> <{/if}> <{/section}> <{/foreach}>
<{t section="Order"}>Products<{/t}>
<{t section="Order"}>Product<{/t}> <{t section="Order"}>Price<{/t}> <{t section="Order"}>Return<{/t}>
<{if $image = $p->getImage()}> <{$image->getDescription()|escape}> <{/if}>
<{$product->getName()|escape}> <{if $attributes = $product->getAttributes()}>
    <{foreach $attributes as $attribute}>
  • <{$attribute.name}>: <{$attribute.val}>
  • <{/foreach}>
<{/if}>
<{if $webshop->getUseCalculatedUnitPrice()}> <{$product->getCalculatedUnitPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}> <{$product->getCalculatedUnitVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{else}> <{$product->getUnitPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t}>VAT<{/t}><{$product->getUnitVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{/if}>
<{include file="components/label.html" for="return[<{$line}>]" text="Return this item"|t }> <{include file="components/input.html" name="return[<{$line}>]" type="checkbox" value=$product->getOrderProductId() }>
<{include file="components/label.html" for="reason[<{$line}>]" text="Reason for return"|t class="sr-only" }> <{include file="components/input.html" name="reason[<{$line}>]" type="text" placeholder="Reason for return"|t inputmode="text" }>
<{if $return_shipping = $webshop->getReturnShipping($order->getDelCountryId())}>

<{t}>Varer skal returneres via<{/t}> <{$return_shipping->getName()|escape}>. <{if $webshop->getReturnShippingPrice($order->getDelCountryId())}> <{t currency=$webshop->getCurrency() price=$webshop->getReturnShippingPrice($order->getDelCountryId())|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> Pris for returlabel m.m. er {currency} {price}. Dette modregnes i den endelige returnering. <{/t}> <{else}> <{t currency=$webshop->getCurrency() price=$return_shipping->getCost()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> Pris for returlabel m.m. er {currency} {price}. Dette modregnes i den endelige returnering. <{/t}> <{/if}>

<{else}>
<{include file="components/label.html" for="shipping_id" text="Select Return Method"|t required="true" }> <{capture name='shipping_id_options'}> <{foreach $webshop->getShippings() as $shipping}> <{if $webshop->getReturnShippingPrice($order->getDelCountryId())}> <{$shipping_price = $webshop->getReturnShippingPrice($order->getDelCountryId())}> <{else}> <{$shipping_price = $shipping->getCost()}> <{/if}> <{/foreach}> <{/capture}> <{include file="components/select.html" name="shipping_id" required="true" options=$smarty.capture.shipping_id_options }>

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

<{t}>Returcenter<{/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" xclass="{'label--is-floating': webshop_order_id && webshop_order_id.length > 0 }" }> <{include file="components/input.html" name="webshop_order_id" type="text" placeholder="Order Number"|t inputmode="text" required="true" xclass="{'input--has-value': webshop_order_id && webshop_order_id.length > 0 }" xmodel="webshop_order_id" xvalue="webshop_order_id" xref="webshop_order_id" }>
<{include file="components/label.html" for="email" text="E-mail-adress"|t required="true" xclass="{'label--is-floating': email && email.length > 0 }" }> <{include file="components/input.html" name="email" type="text" placeholder="E-mail-adress"|t inputmode="text" required="true" xclass="{'input--has-value': email && email.length > 0 }" xmodel="email" xvalue="email" xref="email" }>

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