{* * 2007-2015 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-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {extends file="helpers/view/view.tpl"} {block name="override_tpl"}
{$kpi}

{l s='Customer information'}

{if $customer->id} {$customer->email}

{if $customer->id_gender == 1} {elseif $customer->id_gender == 2} {else} {/if} {$customer->firstname} {$customer->lastname}

{dateFormat date=$customer->date_add}

{$customer_stats.nb_orders}

{displayWtPriceWithCurrency price=$customer_stats.total_orders currency=$currency}

{else}

{l s='Guest not registered'}

{/if}

{l s='Order information'}

{if $order->id}

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

{l s='Made on:'} {dateFormat date=$order->date_add} {else}

{l s='No order was created from this cart.'}

{if $customer->id} {l s='Create an order from this cart.'} {/if} {/if}

{l s='Cart summary'}

{foreach from=$products item='product'} {if isset($customized_datas[$product.id_product][$product.id_product_attribute][$product.id_address_delivery])} {foreach from=$customized_datas[$product.id_product][$product.id_product_attribute][$product.id_address_delivery] item='customization'} {/foreach} {/if} {if !isset($product.customizationQuantityTotal) || $product.cart_quantity > $product.customizationQuantityTotal} {/if} {/foreach} {if $total_discounts != 0} {/if} {if $total_wrapping > 0} {/if} {if $cart->getOrderTotal(true, Cart::ONLY_SHIPPING) > 0} {/if}
  {l s='Product'} {l s='Unit price'} {l s='Quantity'} {l s='Stock'} {l s='Total'}
{$product.image} {$product.name}{if isset($product.attributes)}
{$product.attributes}{/if}
{if $product.reference}{l s='Ref:'} {$product.reference}{/if} {if $product.reference && $product.supplier_reference} / {$product.supplier_reference}{/if}
{displayWtPriceWithCurrency price=$product.price_wt currency=$currency} {$product.customizationQuantityTotal} {$product.qty_in_stock} {displayWtPriceWithCurrency price=$product.total_customization_wt currency=$currency}
{foreach from=$customization.datas key='type' item='datas'} {if $type == constant('Product::CUSTOMIZE_FILE')}
    {foreach from=$datas key='index' item='data'}
  • {/foreach}
{elseif $type == constant('Product::CUSTOMIZE_TEXTFIELD')}
{foreach from=$datas key='index' item='data'}
{if $data.name}{$data.name}{else}{l s='Text #'}{$index}{/if}

{$data.value}

{/foreach}
{/if} {/foreach}
{$customization.quantity}
{$product.image} {$product.name}{if isset($product.attributes)}
{$product.attributes}{/if}
{if $product.reference}{l s='Ref:'} {$product.reference}{/if} {if $product.reference && $product.supplier_reference} / {$product.supplier_reference}{/if}
{displayWtPriceWithCurrency price=$product.product_price currency=$currency} {if isset($product.customizationQuantityTotal)}{math equation='x - y' x=$product.cart_quantity y=$product.customizationQuantityTotal|intval}{else}{math equation='x - y' x=$product.cart_quantity y=$product.customization_quantity|intval}{/if} {$product.qty_in_stock} {displayWtPriceWithCurrency price=$product.product_total currency=$currency}
{l s='Total cost of products:'} {displayWtPriceWithCurrency price=$total_products currency=$currency}
{l s='Total value of vouchers:'} {displayWtPriceWithCurrency price=$total_discounts currency=$currency}
{l s='Total cost of gift wrapping:'} {displayWtPriceWithCurrency price=$total_wrapping currency=$currency}
{l s='Total cost of shipping:'} {displayWtPriceWithCurrency price=$total_shipping currency=$currency}
{l s='Total:'} {displayWtPriceWithCurrency price=$total_price currency=$currency}
{if $discounts}
 
{foreach from=$discounts item='discount'} {/foreach}
{l s='Discounts'} {l s='Discount name'} {l s='Value'}
{$discount.id_discount} {$discount.name} {if (float)$discount.value_real == 0 && (int)$discount.free_shipping == 1}{l s='Free shipping'}{else}- {displayWtPriceWithCurrency price=$discount.value_real currency=$currency}{/if}
{/if}
 
{l s='For this particular customer group, prices are displayed as:'} {if $tax_calculation_method == $smarty.const.PS_TAX_EXC}{l s='Tax excluded'}{else}{l s='Tax included'}{/if}
{/block}