{** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * 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 https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) *} {extends file="helpers/view/view.tpl"} {block name="override_tpl"}
{$kpi}

{l s='Customer information' d='Admin.Orderscustomers.Feature'}

{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' d='Admin.Orderscustomers.Feature'}

{/if}

{l s='Order information' d='Admin.Orderscustomers.Feature'}

{if $order->id}

{l s='Order #%d' sprintf=[$order->id|string_format:"%06d"] d='Admin.Orderscustomers.Feature'}

{l s='Made on:' d='Admin.Orderscustomers.Feature'} {dateFormat date=$order->date_add} {else}

{l s='No order was created from this cart.' d='Admin.Orderscustomers.Feature'}

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

{l s='Cart summary' d='Admin.Orderscustomers.Feature'}

{foreach from=$products item='product'} {if $product['customizedDatas']} {foreach $product['customizedDatas'] as $customizationPerAddress} {foreach $customizationPerAddress as $customization} {if count($customizationPerAddress) == 1 && ((int)$customization.id_customization != (int)$product.id_customization)}{continue}{/if} {/foreach} {/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' d='Admin.Global'} {l s='Unit price' d='Admin.Global'} {l s='Quantity' d='Admin.Global'} {l s='Stock' d='Admin.Global'} {l s='Total' d='Admin.Global'}
{$product.image} {$product.name}{if isset($product.attributes)}
{$product.attributes}{/if}
{if $product.reference}{l s='Ref:' d='Admin.Orderscustomers.Feature'} {$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 #' d='Admin.Orderscustomers.Feature'}{$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:' d='Admin.Orderscustomers.Feature'} {$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:' d='Admin.Orderscustomers.Feature'} {displayWtPriceWithCurrency price=$total_products currency=$currency}
{l s='Total value of vouchers:' d='Admin.Orderscustomers.Feature'} {displayWtPriceWithCurrency price=$total_discounts currency=$currency}
{l s='Total cost of gift wrapping:' d='Admin.Orderscustomers.Feature'} {displayWtPriceWithCurrency price=$total_wrapping currency=$currency}
{l s='Total shipping costs:' d='Admin.Orderscustomers.Feature'} {displayWtPriceWithCurrency price=$total_shipping currency=$currency}
{l s='Total' d='Admin.Global'} {displayWtPriceWithCurrency price=$total_price currency=$currency}
{if $discounts}
 
{foreach from=$discounts item='discount'} {/foreach}
{l s='Discounts' d='Admin.Global'} {l s='Discount name'} {l s='Value' d='Admin.Global'}
{$discount.id_discount} {$discount.name} {if (float)$discount.value_real == 0 && (int)$discount.free_shipping == 1}{l s='Free shipping' d='Admin.Shipping.Feature'}{else}- {displayWtPriceWithCurrency price=$discount.value_real currency=$currency}{/if}
{/if}
 
{l s='For this particular customer group, prices are displayed as:' d='Admin.Orderscustomers.Notification'} {if $tax_calculation_method == $smarty.const.PS_TAX_EXC}{l s='Tax excluded' d='Admin.Global'}{else}{l s='Tax included' d='Admin.Global'}{/if}
{/block}