-
Notifications
You must be signed in to change notification settings - Fork 26
/
order-return.tpl
87 lines (83 loc) · 4.64 KB
/
order-return.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{include file="./errors.tpl"}
{if isset($orderRet)}
<div class="box">
<h2 class="page-subheading">{l s='RE#'}{$orderRet->id|string_format:"%06d"} {l s='on'} {dateFormat date=$order->date_add full=0}</h2>
<p class="bold">{l s='We have logged your return request.'}</p>
<p>{l s='Your package must be returned to us within'} {$nbdaysreturn} {l s='days of receiving your order.'}</p>
<p>{l s='The current status of your merchandise return is:'} <span class="bold">{$state_name|escape:'html':'UTF-8'}</span></p>
<p>{l s='List of items to be returned:'}</p>
</div>
<div id="order-detail-content" class="table_block">
<table class="table table-bordered">
<thead>
<tr>
<th>{l s='Reference'}</th>
<th>{l s='Product'}</th>
<th>{l s='Quantity'}</th>
</tr>
</thead>
<tbody>
{foreach from=$products item=product name=products}
{assign var='quantityDisplayed' value=0}
{foreach from=$returnedCustomizations item='customization' name=products}
{if $customization.product_id == $product.product_id}
<tr>
<td>{if $customization.reference}{$customization.reference|escape:'html':'UTF-8'}{else}--{/if}</td>
<td class="bold">{$customization.name|escape:'html':'UTF-8'}</td>
<td><span class="order_qte_span editable">{$customization.product_quantity|intval}</span></td>
</tr>
{assign var='productId' value=$customization.product_id}
{assign var='productAttributeId' value=$customization.product_attribute_id}
{assign var='customizationId' value=$customization.id_customization}
{assign var='addressDeliveryId' value=$customization.id_address_delivery}
{foreach from=$customizedDatas.$productId.$productAttributeId.$addressDeliveryId.$customizationId.datas key='type' item='datas'}
<tr>
<td colspan="3">
{if $type == Product::CUSTOMIZE_FILE}
<ul class="customizationUploaded">
{foreach from=$datas item='data'}
<li><img src="{$pic_dir}{$data.value}_small" alt="" class="customizationUploaded"></li>
{/foreach}
</ul>
{elseif $type == Product::CUSTOMIZE_TEXTFIELD}
<ul class="typedText">{counter start=0 print=false}
{foreach from=$datas item='data'}
{assign var='customizationFieldName' value="Text #"|cat:$data.id_customization_field}
<li>{l s='%s:' sprintf=$data.name|default:$customizationFieldName} {$data.value}</li>
{/foreach}
</ul>
{/if}
</td>
</tr>
{/foreach}
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.product_quantity}
{/if}
{/foreach}
{if $product.product_quantity > $quantityDisplayed}
<tr>
<td>{if $product.product_reference}{$product.product_reference|escape:'html':'UTF-8'}{else}--{/if}</td>
<td class="bold">{$product.product_name|escape:'html':'UTF-8'}</td>
<td><span class="order_qte_span editable">{$product.product_quantity|intval}</span></td>
</tr>
{/if}
{/foreach}
</tbody>
</table>
</div>
{if $orderRet->state == 2}
<div class="box">
<h3 class="page-subheading">{l s='Reminder'}</h3>
<ul>
<li>{l s='All merchandise must be returned in its original packaging and in its original state.'}</li>
<li>{l s='Please print out the'} <a href="{$link->getPageLink('pdf-order-return', true, NULL, "id_order_return={$orderRet->id|intval}")|escape:'html':'UTF-8'}">{l s='PDF return slip'}</a> {l s='and include it with your package.'}</li>
<li>{l s='Please see the PDF return slip'} (<a href="{$link->getPageLink('pdf-order-return', true, NULL, "id_order_return={$orderRet->id|intval}")|escape:'html':'UTF-8'}">{l s='for the correct address.'}</a>)</li>
</ul>
{l s='When we receive your package, we will notify you by email. We will then begin processing order reimbursement.'}
<br><br><a href="{$link->getPageLink('contact', true)|escape:'html':'UTF-8'}">{l s='Please let us know if you have any questions.'}</a>
<br>
<p class="bold">{l s='If the conditions of return listed above are not respected, we reserve the right to refuse your package and/or reimbursement.'}</p>
</div>
{elseif $orderRet->state == 1}
<p class="bold">{l s='You must wait for confirmation before returning any merchandise.'}</p>
{/if}
{/if}