{* * 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 * @copyright 2007-2011 PrestaShop SA * @version Release: $Revision: 8088 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Your shopping cart'}{/capture} {include file="$tpl_dir./breadcrumb.tpl"} {assign var='current_step' value='summary'}

{l s='Summary of your order'}

{include file="$tpl_dir./order-steps.tpl"}

{l s='Shopping cart summary'}

{include file="$tpl_dir./errors.tpl"} {if isset($empty)}

{l s='Your shopping cart is empty.'}

{elseif $PS_CATALOG_MODE}

{l s='This store has not accepted your new order.'}

{else} {*{if isset($lastProductAdded) AND $lastProductAdded} {foreach from=$products item=product} {if $product.id_product == $lastProductAdded.id_product AND (!$product.id_product_attribute OR ($product.id_product_attribute == $lastProductAdded.id_product_attribute))}
{l s='Last added product'}
{$product.name|escape:'htmlall':'UTF-8'}
{$product.name|escape:'htmlall':'UTF-8'}
{if isset($product.attributes) && $product.attributes}{$product.attributes|escape:'htmlall':'UTF-8'}{/if}

{/if} {/foreach} {/if}

{l s='Your shopping cart contains'} {$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}

*}
{**} {assign var='economy' value=0} {assign var='strike_price' value=0} {foreach from=$products item=details} {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} {if sizeof($discounts)} {foreach from=$discounts item=discount name=discountLoop} {**} {/foreach} {/if}
{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=$customization.datas key='type' item='datas'} {if $type == $CUSTOMIZE_FILE}
    {foreach from=$datas item='picture'}
  • {/foreach}
{elseif $type == $CUSTOMIZE_TEXTFIELD}
    {foreach from=$datas item='textField' name='typedText'}
  • {if $textField.name}{$textField.name}{else}{l s='Text #'}{$smarty.foreach.typedText.index+1}{/if}{l s=':'} {$textField.value}
  • {/foreach}
{/if} {/foreach}
{l s='Delete'}
{l s='Add'}
{if $product.minimal_quantity < ($customization.quantity -$quantityDisplayed) OR $product.minimal_quantity <= 1} {l s='Subtract'} {else} {l s='Subtract'} {/if}
{l s='Total products'}{if $display_tax_label} {l s='(tax incl.)'}{/if} {displayPrice price=$total_products_wt} {if $total_ecotax > 0}
({l s='Including'} {displayPrice price=$total_ecotax} {l s='of ecotax'})
{/if}
{l s='Total vouchers'}{if $display_tax_label} {l s='(tax incl.)'}{/if} {displayPrice price=$total_discounts}
{l s='Total gift-wrapping'}{if $display_tax_label} {l s='(tax incl.)'}{/if} {displayPrice price=$total_wrapping}
{$discount.name} {$discount.description} {l s='Code'}: {$discount.name}
{if $discount.value_real > 0} {if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if} {/if}
{if $voucherAllowed}
{if isset($errors_discount) && $errors_discount} {/if}
{*

{l s='Vouchers'}

*}

{if $displayVouchers}

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

{foreach from=$displayVouchers item=voucher} {if $voucher.name|substr:0:3 != 'SP-'} {$voucher.name} - {$voucher.description}
{/if} {/foreach}
{/if}
{/if} {if $economy > 0}

{l s='savings'} {displayPrice price=$economy} ({displayPrice price=$total_products_wt} {l s='instead of'} {displayPrice price=$strike_price})

{/if}
{l s='Shipping cost will be calculated on the third step'}
{$HOOK_SHOPPING_CART}
{* Define the style if it doesn't exist in the PrestaShop version*} {* Will be deleted for 1.5 version and more *} {if !isset($addresses_style)} {$addresses_style.company = 'address_company'} {$addresses_style.vat_number = 'address_company'} {$addresses_style.firstname = 'address_name'} {$addresses_style.lastname = 'address_name'} {$addresses_style.address1 = 'address_address1'} {$addresses_style.address2 = 'address_address2'} {$addresses_style.city = 'address_city'} {$addresses_style.country = 'address_country'} {$addresses_style.phone = 'address_phone'} {$addresses_style.phone_mobile = 'address_phone_mobile'} {$addresses_style.alias = 'address_title'} {/if} {* {if (($carrier->id AND !isset($virtualCart)) OR $delivery->id OR $invoice->id) AND !$opc}
{if !isset($formattedAddresses)} {if $delivery->id} {/if} {if $invoice->id} {/if} {else} {foreach from=$formattedAddresses item=address name=myLoop} {/foreach}

{/if} {if $carrier->id AND !isset($virtualCart)}

{l s='Carrier:'}

{if isset($carrierPicture)}{l s='Carrier'}{/if} {$carrier->name|escape:'htmlall':'UTF-8'}
{/if}
{/if}*}

{l s='Continue shopping'} {if !$opc}{l s='Next'}{/if}

{$HOOK_SHOPPING_CART_EXTRA}

{/if}