{* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {if isset($order)} {if isset($reorderingAllowed) && $reorderingAllowed}
{l s='Reorder'}

{l s='Order Reference %s - placed on' sprintf=$order->getUniqReference()} {dateFormat date=$order->date_add full=0}

{/if}
{if $carrier->id}

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

{/if}

{l s='Payment method'} {$order->payment|escape:'html':'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 have requested gift wrapping for this order.'}

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

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

{l s='Follow your order\'s status step-by-step'}

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

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

{$followup|escape:'html':'UTF-8'} {/if}
isVirtual()} style="display:none;"{/if}>
  • {l s='Delivery address'} ({$address_delivery->alias})

  • {foreach from=$dlv_adr_fields name=dlv_loop item=field_item} {if $field_item eq "company" && isset($address_delivery->company)}
  • {$address_delivery->company|escape:'html':'UTF-8'}
  • {elseif $field_item eq "address2" && $address_delivery->address2}
  • {$address_delivery->address2|escape:'html':'UTF-8'}
  • {elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}
  • {$address_delivery->phone_mobile|escape:'html':'UTF-8'}
  • {else} {assign var=address_words value=" "|explode:$field_item}
  • {foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$deliveryAddressFormatedValues[$word_item|replace:',':'']|escape:'html':'UTF-8'}{/foreach}
  • {/if} {/foreach}
  • {l s='Invoice address'} ({$address_invoice->alias})

  • {foreach from=$inv_adr_fields name=inv_loop item=field_item} {if $field_item eq "company" && isset($address_invoice->company)}
  • {$address_invoice->company|escape:'html':'UTF-8'}
  • {elseif $field_item eq "address2" && $address_invoice->address2}
  • {$address_invoice->address2|escape:'html':'UTF-8'}
  • {elseif $field_item eq "phone_mobile" && $address_invoice->phone_mobile}
  • {$address_invoice->phone_mobile|escape:'html':'UTF-8'}
  • {else} {assign var=address_words value=" "|explode:$field_item}
  • {foreach from=$address_words item=word_item name="word_loop"}{if !$smarty.foreach.word_loop.first} {/if}{$invoiceAddressFormatedValues[$word_item|replace:',':'']|escape:'html':'UTF-8'}{/foreach}
  • {/if} {/foreach}
{$HOOK_ORDERDETAILDISPLAYED} {if !$is_guest}
{/if}
{if $return_allowed}{/if} {if $order->hasProductReturned()} {/if} {if $priceDisplay && $use_tax} {/if} {if $order->total_discounts > 0} {/if} {if $order->total_wrapping > 0} {/if} {foreach from=$products item=product name=products} {if !isset($product.deleted)} {assign var='productId' value=$product.product_id} {assign var='productAttributeId' value=$product.product_attribute_id} {if isset($product.customizedDatas)} {assign var='productQuantity' value=$product.product_quantity-$product.customizationQuantityTotal} {else} {assign var='productQuantity' value=$product.product_quantity} {/if} {if isset($product.customizedDatas)} {if $return_allowed}{/if} {if $order->hasProductReturned()} {/if} {foreach $product.customizedDatas as $customizationPerAddress} {foreach $customizationPerAddress as $customizationId => $customization} {if $return_allowed}{/if} {/foreach} {/foreach} {/if} {if $product.product_quantity > $product.customizationQuantityTotal} {if $return_allowed}{/if} {if $order->hasProductReturned()} {/if} {/if} {/if} {/foreach} {foreach from=$discounts item=discount} {if $return_allowed} {/if} {/foreach}
{l s='Reference'} {l s='Product'} {l s='Quantity'}{l s='Returned'}{l s='Unit price'} {l s='Total price'}
{l s='Items (tax excl.)'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency}
{l s='Items'} {if $use_tax}{l s='(tax incl.)'}{/if} {displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency}
{l s='Total vouchers'} {displayWtPriceWithCurrency price=$order->total_discounts currency=$currency convert=1}
{l s='Total gift wrapping cost'} {displayWtPriceWithCurrency price=$order->total_wrapping currency=$currency}
{l s='Shipping & handling'} {if $use_tax}{l s='(tax incl.)'}{/if} {displayWtPriceWithCurrency price=$order->total_shipping currency=$currency}
{l s='Total'} {displayWtPriceWithCurrency price=$order->total_paid currency=$currency}
{$product['qty_returned']}
{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'} {assign var='customizationFieldName' value="Text #"|cat:$data.id_customization_field}
  • {$data.name|default:$customizationFieldName} : {$data.value}
  • {/foreach}
{/if} {/foreach}
{$product['qty_returned']}
{$discount.name|escape:'html':'UTF-8'} {l s='Voucher'} {$discount.name|escape:'html':'UTF-8'} 1   {if $discount.value != 0.00}-{/if}{convertPriceWithCurrency price=$discount.value currency=$currency} 
{if $return_allowed}

{l s='Merchandise return'}

{l s='If you wish to return one or more products, please mark the corresponding boxes and provide an explanation for the return. When complete, click the button below.'}

{/if}
{if $order->getShipping()|count > 0} {foreach from=$order->getShipping() item=line} {/foreach}
{l s='Date'} {l s='Carrier'} {l s='Weight'} {l s='Shipping cost'} {l s='Tracking number'}
{dateFormat date=$line.date_add full=0} {$line.carrier_name} {if $line.weight > 0}{$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}{else}-{/if} {if $order->getTaxCalculationMethod() == $smarty.const.PS_TAX_INC}{displayPrice price=$line.shipping_cost_tax_incl currency=$currency->id}{else}{displayPrice price=$line.shipping_cost_tax_excl currency=$currency->id}{/if} {if $line.tracking_number}{if $line.url && $line.tracking_number}{$line.tracking_number}{else}{$line.tracking_number}{/if}{else}-{/if}
{/if} {if !$is_guest} {if count($messages)}

{l s='Messages'}

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

{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}

    {foreach from=$errors key=k item=error}
  1. {$error}
  2. {/foreach}
{/if} {if isset($message_confirmation) && $message_confirmation}

{l s='Message successfully sent'}

{/if}

{l s='Add a message'}

{l s='If you would like to add a comment about your order, please write it in the field below.'}

{else}

{l s='You cannot return merchandise with a guest account'}

{/if} {/if}