{* * 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='Order confirmation'}{/capture}

{l s='Order confirmation'}

{assign var='current_step' value='payment'} {include file="$tpl_dir./order-steps.tpl"} {include file="$tpl_dir./errors.tpl"} {$HOOK_ORDER_CONFIRMATION}
{$HOOK_PAYMENT_RETURN} {if isset($order->id) && $order->id} {if $is_guest}

{l s='Your order ID is:'} {$id_order_formatted} . {l s='Your order ID has been sent via email.'}

{l s='Follow my order'}

{else}

{l s='Order Status :'} {l s='Confirmed'}

{l s='Order Reference :'} {$order->reference}

{if $any_back_order} {if $shw_bo_msg}

*{l s='Some of your rooms are on back order. Please read the following message for rooms with status on backorder'}

-  {$back_ord_msg}

{/if} {/if}

{l s='Order Details -'}

{if isset($cart_htl_data)} {foreach from=$cart_htl_data key=data_k item=data_v} {foreach from=$data_v['date_diff'] key=rm_k item=rm_v} {if isset($orders_has_invoice) && $orders_has_invoice && $order->payment != 'Free order'} {/if} {* *} {/foreach} {/foreach} {/if} {if isset($cart_service_products)} {foreach from=$cart_service_products key=data_k item=data_v} {/foreach} {/if} {if isset($cart_htl_data)} {if $priceDisplay && $use_tax} {else} {/if} {/if} {* {if isset($cart_service_products) && $cart_service_products} {if $priceDisplay && $use_tax} {/if} {/if} *} {* {if $orderTotalInfo['total_services_te'] > 0} {if $priceDisplay && $use_tax} {/if} {/if} *} {if $order->total_wrapping > 0} {/if} {if $order->total_discounts > 0} {/if} {if $priceDisplay && $use_tax && $orderTotalInfo['total_convenience_fee_te']} {else if $orderTotalInfo['total_convenience_fee_ti']} {/if} {if $orderTotalInfo['total_paid'] > $orderTotalInfo['total_paid_real']} {/if}
{l s='Room Image'} {l s='Room Description'} {l s='Hotel Name'} {l s='Rooms'} {l s='Check-in Date'} {l s='Check-out Date'} {l s='Extra Services'} {l s='Total'}

{$data_v['name']}

{$data_v['hotel_name']}

{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}

{$rm_v['data_form']|date_format:"%d-%m-%Y"}

{$rm_v['data_to']|date_format:"%d-%m-%Y"}

{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']} {/if} {if $group_use_tax} {displayWtPriceWithCurrency price=($rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti']) currency=$currency} {else} {displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$currency} {/if} {if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']} {/if}

{if $group_use_tax} {displayWtPriceWithCurrency price=($rm_v['amount_tax_incl'] + $rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti'] + $rm_v['additional_services_price_auto_add_ti']) currency=$currency} {else} {displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te'] + $rm_v['additional_services_price_auto_add_te']) currency=$currency} {/if} {if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}

{/if}

{if isset($rm_v['is_backorder']) && $rm_v['is_backorder']} {l s='On Backorder'} {else} -- {/if}
{l s='Image'} {l s='Name'} {l s='Unit Price'} {l s='Quantity'} {l s='Total'}

{$data_v['product_name']}

{if $group_use_tax} {displayWtPriceWithCurrency price=$data_v['unit_price_tax_incl'] currency=$currency} {* {displayPrice price=$data_v['unit_price_tax_incl']|floatval|round:2} *} {else} {* {displayPrice price=$data_v['unit_price_tax_excl']|floatval|round:2} *} {displayWtPriceWithCurrency price=$data_v['unit_price_tax_excl'] currency=$currency} {/if}

{$data_v['product_quantity']}

{if $group_use_tax} {displayWtPriceWithCurrency price=$data_v['total_price_tax_incl'] currency=$currency} {else} {displayWtPriceWithCurrency price=$data_v['total_price_tax_excl'] currency=$currency} {/if}

{l s='Total Rooms Cost (tax excl.)'} {displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_te'] + $orderTotalInfo['total_services_te'] + $orderTotalInfo['total_auto_add_services_te'] + $orderTotalInfo['total_demands_price_te']) currency=$currency}
{l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} {displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_ti'] + $orderTotalInfo['total_services_ti'] + $orderTotalInfo['total_auto_add_services_ti'] + $orderTotalInfo['total_demands_price_ti']) currency=$currency}
{l s='Total service products cost (tax excl.)'} {displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_te'] currency=$currency}
{l s='Total service products cost'} {if $use_tax}{l s='(tax incl.)'}{/if} {displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_ti'] currency=$currency}
{l s='Total extra services cost (tax excl.)'} {displayWtPriceWithCurrency price=$orderTotalInfo['total_services_te'] currency=$currency}
{l s='Total extra services cost'} {if $use_tax}{l s='(tax incl.)'}{/if} {displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$currency convert=1}
{l s='Total gift wrapping cost'} {displayWtPriceWithCurrency price=($orderTotalInfo['total_wrapping'] * -1) currency=$currency}
{l s='Total Vouchers'} {if $priceDisplay && $use_tax} {displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$currency convert=1} {else} {displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$currency convert=1} {/if}
{l s='Total Convenience Fees (tax excl.)'} {displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_te']) currency=$currency}
{l s='Total Convenience Fees'} {if $use_tax}{l s='(tax incl.)'}{/if} {displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_ti']) currency=$currency}
{l s='Total Tax'} {displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$currency convert=1}
{l s='Final Booking Total'} {displayWtPriceWithCurrency price=$orderTotalInfo['total_paid'] currency=$currency}
{l s='Due Amount'} {displayWtPriceWithCurrency price=($orderTotalInfo['total_paid'] - $orderTotalInfo['total_paid_real']) currency=$currency}

{l s='An email has been sent with this information.'}
{l s='Your booking has been received successfully and we are looking forward to welcoming you.'}
{l s='If you have questions, comments or concerns, please contact our'} {l s='expert customer support team.'}

{l s='View your order history'}

{/if} {/if} {* Fancybox for extra demands*} {strip} {addJsDef historyUrl=$link->getPageLink("orderdetail", true)|escape:'quotes':'UTF-8'} {addJsDefL name=req_sent_msg}{l s='Request Sent..' js=1}{/addJsDefL} {addJsDefL name=wait_stage_msg}{l s='Waiting' js=1}{/addJsDefL} {addJsDefL name=pending_state_msg}{l s='Pending...' js=1}{/addJsDefL} {addJsDefL name=mail_sending_err}{l s='Some error occurred while sending mail to the customer' js=1}{/addJsDefL} {addJsDefL name=refund_request_sending_error}{l s='Some error occurred while processing request for order cancellation.' js=1}{/addJsDefL} {/strip}