{*
* 2007-2011 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 {l s='Your shopping cart is empty.'} {l s='This store has not accepted your new order.'} {l s='Your shopping cart contains'} {$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if} {l s='savings'} {displayPrice price=$economy} ({displayPrice price=$total_products_wt} {l s='instead of'} {displayPrice price=$strike_price})
gift == 1}checked="checked"{/if} onclick="$('#gift_div').toggle('slow');" />
{l s='Summary of your order'}
{l s='Shopping cart summary'}
{include file="$tpl_dir./errors.tpl"}
{if isset($empty)}
{$product.name|escape:'htmlall':'UTF-8'}
{if isset($product.attributes) && $product.attributes}{$product.attributes|escape:'htmlall':'UTF-8'}{/if}
{*
*}
{assign var='economy' value=0}
{assign var='strike_price' value=0}
{foreach from=$products item=details}
{l s='Product'}
{l s='Description'}
{l s='Ref.'}
{l s='Avail.'}
{l s='Unit price'}
{l s='Qty'}
{l s='Total'}
{$details.title}
{foreach from=$details.products item=product name=productLoop}
{assign var='economy' value=$economy + (($product.price_without_reduc * $product.quantity) - $product.total_wt)}
{assign var='strike_price' value=$strike_price + ($product.price_without_reduc * $product.quantity)}
{assign var='productId' value=$product.id_product}
{assign var='productAttributeId' value=$product.id_product_attribute}
{assign var='quantityDisplayed' value=0}
{* Display the product line *}
{include file="$tpl_dir./shopping-cart-product-line.tpl"}
{* Then the customized datas ones*}
{if isset($customizedDatas.$productId.$productAttributeId)}
{foreach from=$customizedDatas.$productId.$productAttributeId key='id_customization' item='customization'}
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
{/foreach}
{* If it exists also some uncustomized products *}
{if $product.quantity-$quantityDisplayed > 0}{include file="$tpl_dir./shopping-cart-product-line.tpl"}{/if}
{/if}
{/foreach}
{/foreach}
{foreach from=$customization.datas key='type' item='datas'}
{if $type == $CUSTOMIZE_FILE}
{foreach from=$datas item='picture'}{/foreach}
{foreach from=$datas item='textField' name='typedText'}
{/if}
{/foreach}
{l s='Total products'}{if $display_tax_label} {l s='(tax incl.)'}{/if}
{displayPrice price=$total_products_wt}
{if $total_ecotax > 0}
{l s='Total vouchers'}{if $display_tax_label} {l s='(tax incl.)'}{/if}
{displayPrice price=$total_discounts}
{if sizeof($discounts)}
{foreach from=$discounts item=discount name=discountLoop}
{l s='Total gift-wrapping'}{if $display_tax_label} {l s='(tax incl.)'}{/if}
{displayPrice price=$total_wrapping}
{*
{/foreach}
{/if}
{$discount.name} *}
{$discount.description}
{l s='Code'}: {$discount.name}
{foreach from=$errors_discount key=k item=error}
{/if}