{* * 2007-2017 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-2017 PrestaShop SA * @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} {*

{l s='Shopping-cart summary'} {if !isset($empty) && !$PS_CATALOG_MODE} {l s='Your shopping cart contains:'} {$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if} {/if}

*} {if isset($account_created)}

{l s='Your account has been created.'}

{/if} {assign var='current_step' value='summary'} {include file="$tpl_dir./order-steps.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}

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

{if isset($lastProductAdded) AND $lastProductAdded}
{l s='Last product added'}
{$lastProductAdded.name|escape:'html':'UTF-8'}

{$lastProductAdded.name|escape:'html':'UTF-8'}

{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes} {$lastProductAdded.attributes|escape:'html':'UTF-8'} {/if}
{/if} {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 isset($cart_htl_data) && $cart_htl_data}

{l s='rooms information'}

{foreach from=$cart_htl_data key=data_k item=data_v} {foreach from=$data_v['date_diff'] key=rm_k item=rm_v}

 {l s='Remove'}

{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}

{$data_v['name']}

{if isset($data_v['hotel_info']['location'])}

 {$data_v['hotel_info']['location']}

{/if}
{if isset($data_v['hotel_info']['room_features'])}
{foreach $data_v['hotel_info']['room_features'] as $feature} {$feature['name']} {/foreach}
{/if}

{l s='CHECK IN'}

{$rm_v['data_form']|date_format:"%d %b, %a"}

{l s='CHECK OUT'}

{$rm_v['data_to']|date_format:"%d %b, %a"}

{l s='OCCUPANCY'}

{if {$rm_v['adults']} <= 9}0{$rm_v['adults']}{else}{$rm_v['adults']}{/if} {if $rm_v['adults'] > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v['children']}, {if $rm_v['children'] <= 9}0{$rm_v['children']}{else}{$rm_v['children']}{/if} {if $rm_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}, {if {$rm_v['num_rm']} <= 9}0{/if}{$rm_v['num_rm']}{if $rm_v['num_rm'] > 1} {l s='Rooms'}{else} {l s='Room'}{/if}

{displayPrice price=($rm_v['amount'])} {if (($rm_v['amount'] - $rm_v['amount_without_auto_add']) > 0) && (in_array($data_v['id_product'], $discounted_products) || $PS_ROOM_PRICE_AUTO_ADD_BREAKDOWN)}

{/if} {if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])} + {/if}

{l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}

{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}

{displayPrice price=$rm_v['demand_price']}

{l s='Extra Services'}

{/if}

{displayPrice price=($rm_v['amount']+$rm_v['demand_price'])}

{l s='Total price for'} {$rm_v['num_days']} {l s='Night(s) stay'}{if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.'}{/if} {l s='all taxes.)'}{/if}


{/foreach} {/foreach} {/if} {if isset($cart_normal_data) && $cart_normal_data}

{l s='service product information'}

{foreach from=$cart_normal_data key=data_k item=product}

 {l s='Remove'} {*  {l s='Remove'} *}

{hook h='displayCartProductImageAfter' id_product=$product['id_product']}

{$product['name']}

{if isset($product['hotel_info']['location'])}

 {$product['hotel_info']['location']}

{/if}

{if $priceDisplay}{displayPrice price=($product['unit_price_tax_excl'])}{else}{displayPrice price=($product['unit_price_tax_incl'])}{/if}

{l s='Unit price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}

{if $product['quantity'] <= 9}0{$product['quantity']}{else}{$product['quantity']}{/if}

{l s='Total Qty'}

{if $priceDisplay}{displayPrice price=($product['total_price_tax_excl'])}{else}{displayPrice price=($product['total_price_tax_incl'])}{/if}

{l s='Total price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}


{/foreach} {/if} {* proceed only if no order restrict errors are there *} {if !$orderRestrictErr} {/if}
{if $show_option_allow_separate_package}

{/if} {* 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.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 !$advanced_payment_api && ((!empty($delivery_option) && (!isset($isVirtualCart) || !$isVirtualCart)) OR $delivery->id || $invoice->id) && !$opc}
{if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)} {if $delivery->id} {/if} {if $invoice->id}
  • {l s='Invoice address'} ({$invoice->alias})

  • {if $invoice->company}
  • {$invoice->company|escape:'html':'UTF-8'}
  • {/if}
  • {$invoice->firstname|escape:'html':'UTF-8'} {$invoice->lastname|escape:'html':'UTF-8'}
  • {$invoice->address1|escape:'html':'UTF-8'}
  • {if $invoice->address2}
  • {$invoice->address2|escape:'html':'UTF-8'}
  • {/if}
  • {$invoice->postcode|escape:'html':'UTF-8'} {$invoice->city|escape:'html':'UTF-8'}
  • {$invoice->country|escape:'html':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'html':'UTF-8'}){/if}
{/if} {else} {foreach from=$formattedAddresses key=k item=address} {/foreach} {/if}
{/if}
{$HOOK_SHOPPING_CART}
{*

{if !$opc} {l s='Proceed to checkout'} {/if} {l s='Continue shopping'}

*}
{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}
{strip} {addJsDef deliveryAddress=$cart->id_address_delivery|intval} {addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL} {addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL} {/strip} {/if} {* Fancybox for extra demands*}