{* * 2007-2013 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-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture assign='page_title'}{l s='Order'} {l s='#'}{$order->id|string_format:"%06d"}{/capture} {include file='./page-title.tpl'}
{assign var='type_order' value="order"} {if isset($opc) && $opc} {assign var='type_order' value="order-opc"} {/if} id|intval}")|escape:'html'}" title="{l s='Reorder'}" data-ajax="false"> {l s='Reorder'}

{l s='Order #%s - placed on' sprintf=$order->id|string_format:"%06d"} {dateFormat date=$order->date_add full=0}

{if count($order_history)}

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

{/if} {* > TO CHECK ==========================*} {if isset($followup)}

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

{$followup|escape:'htmlall':'UTF-8'} {/if} {* / TO CHECK ==========================*}

{l s='Addresses'}

{* > TO CHECK ==========================*} {if $invoice AND $invoiceAllowed}

{if $is_guest} id}&secure_key=$order->secure_key")|escape:'html'}" >{l s='Download your invoice as a PDF file.'} {else} id}")|escape:'html'}" >{l s='Download your invoice as a PDF file.'} {/if}

{/if} {if $order->recyclable && isset($isRecyclable) && $isRecyclable}

 {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} {* / TO CHECK ==========================*}
    {if !$order->isVirtual()}
  • {l s='Invoice'}
  • {foreach from=$inv_adr_fields name=inv_loop item=field_item} {if $field_item eq "company" && isset($address_invoice->company)}

    {$address_invoice->company|escape:'htmlall':'UTF-8'}

    {elseif $field_item eq "address2" && $address_invoice->address2}

    {$address_invoice->address2|escape:'htmlall':'UTF-8'}

    {elseif $field_item eq "phone_mobile" && $address_invoice->phone_mobile}

    {$address_invoice->phone_mobile|escape:'htmlall':'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:'htmlall':'UTF-8'}{/foreach}

    {/if} {/foreach}
  • {/if}
  • {l s='Delivery'}
  • {foreach from=$dlv_adr_fields name=dlv_loop item=field_item} {if $field_item eq "company" && isset($address_delivery->company)}

    {$address_delivery->company|escape:'htmlall':'UTF-8'}

    {elseif $field_item eq "address2" && $address_delivery->address2}

    {$address_delivery->address2|escape:'htmlall':'UTF-8'}

    {elseif $field_item eq "phone_mobile" && $address_delivery->phone_mobile}

    {$address_delivery->phone_mobile|escape:'htmlall':'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:'htmlall':'UTF-8'}{/foreach}

    {/if} {/foreach}

{l s='Order details'}

{* > TO CHECK ==========================*} {*$HOOK_ORDERDETAILDISPLAYED*} {* / TO CHECK ==========================*} {if $return_allowed}

{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 !$is_guest}
{/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} {include file="./order-detail-product-li.tpl"} {/if} {/foreach} {* > TO CHECK ==========================*} {foreach from=$discounts item=discount}
  • {$discount.name|escape:'htmlall':'UTF-8'}

    {l s='Voucher'} {$discount.name|escape:'htmlall':'UTF-8'}

    1

     

    {if $discount.value != 0.00}{l s='-'}{/if}{convertPriceWithCurrency price=$discount.value currency=$currency}

    {if $return_allowed}

     

    {/if}
  • {/foreach} {* / TO CHECK ==========================*} {if $priceDisplay && $use_tax}
  • {l s='Total products (tax excl.)'} {displayWtPriceWithCurrency price=$order->getTotalProductsWithoutTaxes() currency=$currency}
  • {/if}
  • {l s='Total products'} {if $use_tax}{l s='(tax incl.)'}{/if}: {displayWtPriceWithCurrency price=$order->getTotalProductsWithTaxes() currency=$currency}
  • {if $order->total_discounts > 0}
  • {l s='Total vouchers:'} {displayWtPriceWithCurrency price=$order->total_discounts currency=$currency convert=1}
  • {/if} {if $order->total_wrapping > 0}
  • {l s='Total gift wrapping cost:'} {displayWtPriceWithCurrency price=$order->total_wrapping currency=$currency}
  • {/if}
  • {l s='Total shipping'} {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}
{if $order->getShipping()|count > 0}

{l s='Carrier'}

    {foreach from=$order->getShipping() item=line}
  • {$line.carrier_name}

    {l s='Weight'} {$line.weight|string_format:"%.3f"} {Configuration::get('PS_WEIGHT_UNIT')}

    {l s='Shipping cost'} {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}

    {l s='Tracking number'} {if $line.url && $line.tracking_number}{$line.tracking_number}{elseif $line.tracking_number != ''}{$line.tracking_number}{else}----{/if}

    {$line.date_add}
  • {/foreach}
{/if} {* > TO CHECK ==========================*} {if !$is_guest} {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 count($messages)}

{l s='Messages'}

{foreach from=$messages item=message name="messageList"} {/foreach}
{l s='From'} {l s='Message'}
{if isset($message.ename) && $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} {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} {* / TO CHECK ==========================*}

{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}