{l s='Order placed on'} {dateFormat date=$order->date_add full=0}

{if count($order_history)}

{l s='Follow your order step by step'}

{foreach from=$order_history item=state name="orderStates"} {/foreach}
{l s='Date'} {l s='Status'}
{dateFormat date=$state.date_add full=1} {$state.ostate_name|escape:'htmlall':'UTF-8'}
{/if} {if $followup}

{l s='Click the following link to track delivery of your order'}

{$followup|escape:'htmlall':'UTF-8'} {/if}

{l s='Order:'} {l s='#'}{$order->id|string_format:"%06d"}

{if $carrier->id}

{l s='Carrier:'} {if $carrier->name == "0"}{$shop_name|escape:'htmlall':'UTF-8'}{else}{$carrier->name|escape:'htmlall':'UTF-8'}{/if}

{/if}

{l s='Payment method:'} {$order->payment|escape:'htmlall':'UTF-8'}

{if $invoice AND $invoiceAllowed}

{l s='Download your invoice as a .PDF file'}

{/if} {if $order->recyclable}

 {l s='You have given permission to receive your order in recycled packaging.'}

{/if} {if $order->gift}

 {l s='You requested gift-wrapping for your order.'}

{l s='Message:'} {$order->gift_message|nl2br}

{/if}
{if $return_allowed}{/if} {if $order->total_discounts > 0} {/if} {if $order->total_wrapping > 0} {/if} {foreach from=$products item=product name=products} {if !$product.deleted} {assign var='productId' value=$product.product_id} {assign var='productAttributeId' value=$product.product_attribute_id} {if isset($customizedDatas.$productId.$productAttributeId)}{assign var='productQuantity' value=$product.product_quantity-$product.customizationQuantityTotal}{else}{assign var='productQuantity' value=$product.product_quantity}{/if} {if isset($customizedDatas.$productId.$productAttributeId)} {if $return_allowed}{/if} {foreach from=$customizedDatas.$productId.$productAttributeId item='customization' key='customizationId'} {if $return_allowed}{/if} {/foreach} {/if} {if $product.product_quantity > $product.customizationQuantityTotal} {if $return_allowed}{/if} {/if} {/if} {/foreach} {foreach from=$discounts item=discount} {/foreach}
{l s='Reference'} {l s='Product'} {l s='Quantity'} {l s='Unit price'} {l s='Total price'}
{l s='Total products:'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency convert=0}
{l s='Total vouchers:'} {displayWtPriceWithCurrency price=$order->total_discounts currency=$currency convert=1}
{l s='Total gift-wrapping:'} {displayWtPriceWithCurrency price=$order->total_wrapping currency=$currency convert=0}
{l s='Total shipping:'} {displayWtPriceWithCurrency price=$order->total_shipping currency=$currency convert=0}
{l s='Total:'} {displayWtPriceWithCurrency price=$order->total_paid currency=$currency convert=0}
{foreach from=$customization.datas key='type' item='datas'} {if $type == $CUSTOMIZE_FILE}
    {foreach from=$datas item='data'}
  • {/foreach}
{elseif $type == $CUSTOMIZE_TEXTFIELD}
    {counter start=0 print=false} {foreach from=$datas item='data'}
  • {l s='Text #'}{counter}{l s=':'} {$data.value}
  • {/foreach}
{/if} {/foreach}
{$discount.name|escape:'htmlall':'UTF-8'} {l s='Voucher:'} {$discount.name|escape:'htmlall':'UTF-8'} 1   {l s='-'}{convertPriceWithCurrency price=$discount.value currency=$currency convert=0}
{if $return_allowed}

{l s='Merchandise return'}

{l s='If you want to return one or several products, please mark the corresponding checkbox(es) and provide an explanation for the return. Then click the button below.'}


{/if}
{if count($messages)}

{l s='Messages'}

{foreach from=$messages item=message name="messageList"} {/foreach}
{l s='From'} {l s='Message'}
{if $message.ename} {$message.efirstname|escape:'htmlall':'UTF-8'} {$message.elastname|escape:'htmlall':'UTF-8'} {elseif $message.clastname} {$message.cfirstname|escape:'htmlall':'UTF-8'} {$message.clastname|escape:'htmlall':'UTF-8'} {else} {$shop_name|escape:'htmlall':'UTF-8'} {/if}
{dateFormat date=$message.date_add full=1}
{$message.message|nl2br}
{/if}

{l s='Add a message:'}

{l s='If you want to leave us comment about your order, please write it below.'}