{* * 2007-2016 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-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}

{l s='Cart Summary'}

{assign var='total_discounts_num' value="{if $total_discounts != 0}1{else}0{/if}"} {assign var='use_show_taxes' value="{if $use_taxes && $show_taxes}2{else}0{/if}"} {assign var='total_wrapping_taxes_num' value="{if $total_wrapping != 0}1{else}0{/if}"} {* eu-legal *} {hook h="displayBeforeShoppingCartBlock"}
{if $PS_STOCK_MANAGEMENT} {assign var='col_span_subtotal' value='3'} {assign var='col_span_total' value='7'} {else} {assign var='col_span_subtotal' value='2'} {assign var='col_span_total' value='6'} {/if} {assign var='rowspan_total' value=2+$total_discounts_num+$total_wrapping_taxes_num} {if $use_taxes && $show_taxes && $total_tax != 0} {assign var='rowspan_total' value=$rowspan_total+1} {/if} {if $priceDisplay != 0} {assign var='rowspan_total' value=$rowspan_total+1} {/if} {if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship} {assign var='rowspan_total' value=$rowspan_total+1} {else} {if $use_taxes && $total_shipping_tax_exc != $total_shipping} {if $priceDisplay && $total_shipping_tax_exc > 0} {assign var='rowspan_total' value=$rowspan_total+1} {elseif $total_shipping > 0} {assign var='rowspan_total' value=$rowspan_total+1} {/if} {elseif $total_shipping_tax_exc > 0} {assign var='rowspan_total' value=$rowspan_total+1} {/if} {/if} {if $use_taxes} {if $priceDisplay} {else} {/if} {else} {/if} {if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart)} {else} {if $use_taxes && $total_shipping_tax_exc != $total_shipping} {if $priceDisplay} {else} {/if} {else} {/if} {/if} {if $use_taxes && $show_taxes && $total_tax != 0 } {if $priceDisplay != 0} {/if} {/if} {if $use_taxes} {else} {/if} {hook h="displayAfterShoppingCartBlock" colspan_total=$col_span_total} {assign var='odd' value=0} {assign var='have_non_virtual_products' value=false} {foreach $products as $product} {if $product.is_virtual == 0} {assign var='have_non_virtual_products' value=true} {/if} {assign var='productId' value=$product.id_product} {assign var='productAttributeId' value=$product.id_product_attribute} {assign var='quantityDisplayed' value=0} {assign var='odd' value=($odd+1)%2} {assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId) || count($gift_products)} {* Display the product line *} {include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0} {* Then the customized datas ones*} {if isset($customizedDatas.$productId.$productAttributeId)} {foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$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" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0}{/if} {/if} {/foreach} {assign var='last_was_odd' value=$product@iteration%2} {foreach $gift_products as $product} {assign var='productId' value=$product.id_product} {assign var='productAttributeId' value=$product.id_product_attribute} {assign var='quantityDisplayed' value=0} {assign var='odd' value=($product@iteration+$last_was_odd)%2} {assign var='ignoreProductLast' value=isset($customizedDatas.$productId.$productAttributeId)} {assign var='cannotModify' value=1} {* Display the gift product line *} {include file="$tpl_dir./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first noDeleteButton=0 cannotModify=0} {/foreach} {if sizeof($discounts)} {foreach $discounts as $discount} {if (float)$discount.value_real == 0} {continue} {/if} {/foreach} {/if}
{l s='Product'} {l s='Description'}{l s='Availability'}{l s='Unit price'} {l s='Qty'} {l s='Total'}
{if $voucherAllowed}

{l s='Vouchers'}

{if $displayVouchers}

{l s='Take advantage of our exclusive offers:'}

{foreach $displayVouchers as $voucher} {if $voucher.code != ''}{$voucher.code|escape:'html':'UTF-8'} - {/if}{$voucher.name}
{/foreach}
{/if} {/if}
{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if} {displayPrice price=$total_products}
{if $voucherAllowed}

{l s='Vouchers'}

{if $displayVouchers}

{l s='Take advantage of our exclusive offers:'}

{foreach $displayVouchers as $voucher} {if $voucher.code != ''}{$voucher.code|escape:'html':'UTF-8'} - {/if}{$voucher.name}
{/foreach}
{/if} {/if}
{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if} {displayPrice price=$total_products_wt}
{if $voucherAllowed}

{l s='Vouchers'}

{if $displayVouchers}

{l s='Take advantage of our exclusive offers:'}

{foreach $displayVouchers as $voucher} {if $voucher.code != ''}{$voucher.code|escape:'html':'UTF-8'} - {/if}{$voucher.name}
{/foreach}
{/if} {/if}
{l s='Total products'} {displayPrice price=$total_products}
{if $use_taxes} {if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift-wrapping cost'}{/if} {else} {l s='Total gift-wrapping cost'} {/if} {if $use_taxes} {if $priceDisplay} {displayPrice price=$total_wrapping_tax_exc} {else} {displayPrice price=$total_wrapping} {/if} {else} {displayPrice price=$total_wrapping_tax_exc} {/if}
{l s='Total shipping'} {l s='Free shipping!'}
{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if} {displayPrice price=$total_shipping_tax_exc}
{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if} {displayPrice price=$total_shipping}
{l s='Total shipping'} {displayPrice price=$total_shipping_tax_exc}
{if $display_tax_label} {if $use_taxes && $priceDisplay == 0} {l s='Total vouchers (tax incl.)'} {else} {l s='Total vouchers (tax excl.)'} {/if} {else} {l s='Total vouchers'} {/if} {if $use_taxes && $priceDisplay == 0} {assign var='total_discounts_negative' value=$total_discounts * -1} {else} {assign var='total_discounts_negative' value=$total_discounts_tax_exc * -1} {/if} {displayPrice price=$total_discounts_negative}
{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if} {displayPrice price=$total_price_without_tax}
{l s='Tax'} {displayPrice price=$total_tax}
{l s='Total'}
{hook h="displayCartTotalPriceLabel"}
{displayPrice price=$total_price} {displayPrice price=$total_price_without_tax}
{foreach $customization.datas as $type => $custom_data} {if $type == $CUSTOMIZE_FILE}
    {foreach $custom_data as $picture}
  • {/foreach}
{elseif $type == $CUSTOMIZE_TEXTFIELD}
    {foreach $custom_data as $textField}
  • {if $textField.name} {$textField.name} {else} {l s='Text #'}{$textField@index+1} {/if} : {$textField.value}
  • {/foreach}
{/if} {/foreach}
{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}
{$discount.name} {if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if} 1 {if strlen($discount.code)} {/if} {if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}

{if $opc} {assign var='back_link' value=$link->getPageLink('index')} {else} {assign var='back_link' value=$link->getPageLink('order', true, NULL, "step=2")} {/if} {l s='Continue shopping'}

{strip} {addJsDef deliveryAddress=$cart->id_address_delivery|intval} {/strip}