Updated the block structure for the included files and the files including them

This commit is contained in:
vishalsingh.qlo325
2024-09-17 12:01:19 +05:30
parent ddc302e328
commit 8989394383
44 changed files with 3552 additions and 3485 deletions

View File

@@ -19,7 +19,9 @@
<div class="review-list">
{foreach $reviews as $review}
{include file='./review.tpl' review=$review}
{block name='review'}
{include file='./review.tpl' review=$review}
{/block}
{/foreach}
</div>

View File

@@ -20,10 +20,18 @@
{block name='hotel_reviews'}
<div id="hotel-reviews" class="tab-pane card {if isset($language_is_rtl) && $language_is_rtl} rtl {/if}">
{if is_array($reviews) && count($reviews)}
{include file='./_partials/review-summary.tpl'}
{include file='./_partials/media-list.tpl'}
{include file='./_partials/list-actions.tpl'}
{include file='./_partials/review-list.tpl'}
{block name='review_summary'}
{include file='./_partials/review-summary.tpl'}
{/block}
{block name='media_list'}
{include file='./_partials/media-list.tpl'}
{/block}
{block name='list_actions'}
{include file='./_partials/list-actions.tpl'}
{/block}
{block name='review_list'}
{include file='./_partials/review-list.tpl'}
{/block}
{else}
{l s='No reviews.' mod='qlohotelreview'}
{/if}

View File

@@ -24,7 +24,9 @@
<p>{l s='Search Rooms' mod='wkroomsearchblock'}</p>
<hr class="header-bottom-hr">
</div>
{include file="./searchForm.tpl"}
{block name='search_form'}
{include file="./searchForm.tpl"}
{/block}
</div>
{/if}
{/block}

View File

@@ -29,7 +29,9 @@
</div>
<div class="container">
<div class="header-rmsearch-inner-wrapper">
{block name='search_form'}
{include file="./searchForm.tpl"}
{/block}
</div>
</div>
</div>

View File

@@ -56,7 +56,9 @@
<p>{l s='Searched results for' mod='wkroomsearchblock'}</p>
</div>
{* search form *}
{include file="./searchForm.tpl"}
{block name='search_form'}
{include file="./searchForm.tpl"}
{/block}
<a href="#" class="close_room_serach_wrapper"><img src="{$module_dir}views/img/icon-close.svg"></a>
</div>
</div>

View File

@@ -17,168 +17,95 @@
* @license https://store.webkul.com/license.html
*}
{block name='search_form'}
<form method="POST" id="search_hotel_block_form" class="grid">
{block name='search_form_location'}
{if isset($location_enabled) && $location_enabled}
<div class="form-group area-{$column_widths['location']}">
<input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="{l s='Hotel Location' mod='wkroomsearchblock'}" {if isset($search_data)}value="{$search_data['location']|escape:'htmlall':'UTF-8'}"{/if}>
<input hidden="hidden" name="location_category_id" id="location_category_id" {if isset($search_data)}value="{$search_data['location_category_id']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="dropdown">
<ul class="location_search_results_ul dropdown-menu"></ul>
</div>
<form method="POST" id="search_hotel_block_form" class="grid">
{block name='search_form_location'}
{if isset($location_enabled) && $location_enabled}
<div class="form-group area-{$column_widths['location']}">
<input type="text" class="form-control header-rmsearch-input input-location" id="hotel_location" name="hotel_location" autocomplete="off" placeholder="{l s='Hotel Location' mod='wkroomsearchblock'}" {if isset($search_data)}value="{$search_data['location']|escape:'htmlall':'UTF-8'}"{/if}>
<input hidden="hidden" name="location_category_id" id="location_category_id" {if isset($search_data)}value="{$search_data['location_category_id']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="dropdown">
<ul class="location_search_results_ul dropdown-menu"></ul>
</div>
{/if}
{/block}
{block name='search_form_hotel'}
{if count($hotels_info) <= 1 && !$show_hotel_name}
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($hotels_info[0]['max_order_date'])}{$hotels_info[0]['max_order_date']|escape:'htmlall':'UTF-8'}{/if}">
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($hotels_info[0]['preparation_time'])}{$hotels_info[0]['preparation_time']|escape:'htmlall':'UTF-8'}{/if}">
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" value="{$hotels_info[0]['id_category']}">
<input type="hidden" id="id_hotel" name="id_hotel" value="{$hotels_info[0]['id']|escape:'htmlall':'UTF-8'}">
<input type="hidden" id="htl_name" class="form-control header-rmsearch-input" value="{$hotels_info[0]['hotel_name']}" readonly>
{else}
<div class="form-group area-{$column_widths['hotel']}">
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" {if isset($search_data)}value="{$search_data['htl_dtl']['id_category']|escape:'htmlall':'UTF-8'}"{/if}>
<input type="hidden" id="id_hotel" name="id_hotel" {if isset($search_data)}value="{$search_data['htl_dtl']['id']|escape:'htmlall':'UTF-8'}"{/if}>
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($max_order_date)}{$max_order_date|escape:'htmlall':'UTF-8'}{/if}">
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($preparation_time)}{$preparation_time|escape:'htmlall':'UTF-8'}{/if}">
</div>
{/if}
{/block}
{block name='search_form_hotel'}
{if count($hotels_info) <= 1 && !$show_hotel_name}
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($hotels_info[0]['max_order_date'])}{$hotels_info[0]['max_order_date']|escape:'htmlall':'UTF-8'}{/if}">
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($hotels_info[0]['preparation_time'])}{$hotels_info[0]['preparation_time']|escape:'htmlall':'UTF-8'}{/if}">
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" value="{$hotels_info[0]['id_category']}">
<input type="hidden" id="id_hotel" name="id_hotel" value="{$hotels_info[0]['id']|escape:'htmlall':'UTF-8'}">
<input type="hidden" id="htl_name" class="form-control header-rmsearch-input" value="{$hotels_info[0]['hotel_name']}" readonly>
{else}
<div class="form-group area-{$column_widths['hotel']}">
<input type="hidden" id="hotel_cat_id" name="hotel_cat_id" {if isset($search_data)}value="{$search_data['htl_dtl']['id_category']|escape:'htmlall':'UTF-8'}"{/if}>
<input type="hidden" id="id_hotel" name="id_hotel" {if isset($search_data)}value="{$search_data['htl_dtl']['id']|escape:'htmlall':'UTF-8'}"{/if}>
<input type="hidden" id="max_order_date" name="max_order_date" value="{if isset($max_order_date)}{$max_order_date|escape:'htmlall':'UTF-8'}{/if}">
<input type="hidden" id="preparation_time" name="preparation_time" value="{if isset($preparation_time)}{$preparation_time|escape:'htmlall':'UTF-8'}{/if}">
<div class="hotel-selector-wrap {if isset($language_is_rtl) && $language_is_rtl}rtl{/if}">
<select name="id_hotel" class="chosen header-rmsearch-input" data-placeholder="{l s='Select Hotel' mod='wkroomsearchblock'}" id="id_hotel_button">
<option value=""></option>
{foreach $hotels_info as $name_val}
<option class="search_result_li" value="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-id-hotel="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-hotel-cat-id="{$name_val['id_category']|escape:'htmlall':'UTF-8'}" data-max_order_date="{$name_val['max_order_date']}" data-preparation_time="{$name_val['preparation_time']|escape:'htmlall':'UTF-8'}" {if isset($search_data) && $name_val['id'] == $search_data['htl_dtl']['id']}selected{/if}>{$name_val['hotel_name']|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</div>
<div class="hotel-selector-wrap {if isset($language_is_rtl) && $language_is_rtl}rtl{/if}">
<select name="id_hotel" class="chosen header-rmsearch-input" data-placeholder="{l s='Select Hotel' mod='wkroomsearchblock'}" id="id_hotel_button">
<option value=""></option>
{foreach $hotels_info as $name_val}
<option class="search_result_li" value="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-id-hotel="{$name_val['id']|escape:'htmlall':'UTF-8'}" data-hotel-cat-id="{$name_val['id_category']|escape:'htmlall':'UTF-8'}" data-max_order_date="{$name_val['max_order_date']}" data-preparation_time="{$name_val['preparation_time']|escape:'htmlall':'UTF-8'}" {if isset($search_data) && $name_val['id'] == $search_data['htl_dtl']['id']}selected{/if}>{$name_val['hotel_name']|escape:'htmlall':'UTF-8'}</option>
{/foreach}
</select>
</div>
{/if}
{/block}
</div>
{/if}
{/block}
{block name='search_form_dates'}
{if isset($multiple_dates_input) && $multiple_dates_input}
<div class="grid area-{$column_widths['date']}" id="daterange_value">
<div class="form-group">
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_from" placeholder="{l s='Check-in' mod='wkroomsearchblock'}"><span>{l s='Check-in' mod='wkroomsearchblock'}</span></div>
</div>
<div class="form-group">
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_to" placeholder="{l s='Check-out' mod='wkroomsearchblock'}"><span>{l s='Check-out' mod='wkroomsearchblock'}</span></div>
</div>
</div>
{else}
<div class="form-group area-{$column_widths['date']}">
{block name='search_form_dates'}
{if isset($multiple_dates_input) && $multiple_dates_input}
<div class="grid area-{$column_widths['date']}" id="daterange_value">
<div class="form-group">
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="form-control header-rmsearch-input input-date" id="daterange_value" autocomplete="off" placeholder="{l s='Check-in - Check-out' mod='wkroomsearchblock'}" tabindex="-1"><span>{l s='Check-in' mod='wkroomsearchblock'} &nbsp;<i class="icon icon-minus"></i>&nbsp; {l s='Check-out' mod='wkroomsearchblock'}</span></div>
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_from" placeholder="{l s='Check-in' mod='wkroomsearchblock'}"><span>{l s='Check-in' mod='wkroomsearchblock'}</span></div>
</div>
{/if}
{/block}
<div class="form-group">
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="form-control header-rmsearch-input input-date" autocomplete="off" id="daterange_value_to" placeholder="{l s='Check-out' mod='wkroomsearchblock'}"><span>{l s='Check-out' mod='wkroomsearchblock'}</span></div>
</div>
</div>
{else}
<div class="form-group area-{$column_widths['date']}">
<input type="hidden" id="check_in_time" name="check_in_time" {if isset($search_data)}value="{$search_data['date_from']|escape:'htmlall':'UTF-8'}"{/if}>
<input type="hidden" id="check_out_time" name="check_out_time" {if isset($search_data)}value="{$search_data['date_to']|escape:'htmlall':'UTF-8'}"{/if}>
<div class="form-control header-rmsearch-input input-date" id="daterange_value" autocomplete="off" placeholder="{l s='Check-in - Check-out' mod='wkroomsearchblock'}" tabindex="-1"><span>{l s='Check-in' mod='wkroomsearchblock'} &nbsp;<i class="icon icon-minus"></i>&nbsp; {l s='Check-out' mod='wkroomsearchblock'}</span></div>
</div>
{/if}
{/block}
{block name='search_form_occupancy'}
{if isset($is_occupancy_wise_search) && $is_occupancy_wise_search}
<div class="form-group area-{$column_widths['occupancy']}">
<div class="dropdown">
<button class="form-control input-occupancy header-rmsearch-input {if isset($error) && $error == 1}error_border{/if}" type="button" data-toggle="dropdown" id="guest_occupancy">
<span class="pull-left">{if (isset($search_data['occupancy_adults']) && $search_data['occupancy_adults'])}{$search_data['occupancy_adults']} {if $search_data['occupancy_adults'] > 1}{l s='Adults' mod='wkroomsearchblock'}{else}{l s='Adult' mod='wkroomsearchblock'}{/if}, {if isset($search_data['occupancy_children']) && $search_data['occupancy_children']}{$search_data['occupancy_children']} {if $search_data['occupancy_children'] > 1}
{l s='Children' mod='wkroomsearchblock'}{else}{l s='Child' mod='wkroomsearchblock'}{/if}, {/if}{$search_data['occupancies']|count} {if $search_data['occupancies']|count > 1}{l s='Rooms' mod='wkroomsearchblock'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room' mod='wkroomsearchblock'}{/if}</span>
</button>
<div id="search_occupancy_wrapper" class="dropdown-menu">
<div id="occupancy_inner_wrapper">
{if isset($search_data['occupancies']) && $search_data['occupancies']}
{assign var=countRoom value=1}
{foreach from=$search_data['occupancies'] key=key item=$occupancy name=occupancyInfo}
<div class="occupancy-room-block">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room' mod='wkroomsearchblock'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove' mod='wkroomsearchblock'}</a>{/if}</div>
<div class="occupancy_info_block" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
<div class="row">
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
<div>
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
</div>
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
<label>{l s='Children' mod='wkroomsearchblock'}</label>
<div class="clearfix">
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
<p class="label-desc-txt">({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})</p>
</div>
</div>
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
<div class="row">
<div class="form-group children_age_info_block col-sm-12" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
<div class="children_ages">
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
{foreach $occupancy['child_ages'] as $childAge}
<div>
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1' mod='wkroomsearchblock'}</option>
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1' mod='wkroomsearchblock'}</option>
{for $age=1 to ($max_child_age-1)}
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
{/for}
</select>
</div>
{/foreach}
{/if}
</div>
</div>
</div>
</div>
<hr class="occupancy-info-separator">
</div>
{assign var=countRoom value=$countRoom+1}
{/foreach}
{else}
{block name='search_form_occupancy'}
{if isset($is_occupancy_wise_search) && $is_occupancy_wise_search}
<div class="form-group area-{$column_widths['occupancy']}">
<div class="dropdown">
<button class="form-control input-occupancy header-rmsearch-input {if isset($error) && $error == 1}error_border{/if}" type="button" data-toggle="dropdown" id="guest_occupancy">
<span class="pull-left">{if (isset($search_data['occupancy_adults']) && $search_data['occupancy_adults'])}{$search_data['occupancy_adults']} {if $search_data['occupancy_adults'] > 1}{l s='Adults' mod='wkroomsearchblock'}{else}{l s='Adult' mod='wkroomsearchblock'}{/if}, {if isset($search_data['occupancy_children']) && $search_data['occupancy_children']}{$search_data['occupancy_children']} {if $search_data['occupancy_children'] > 1}
{l s='Children' mod='wkroomsearchblock'}{else}{l s='Child' mod='wkroomsearchblock'}{/if}, {/if}{$search_data['occupancies']|count} {if $search_data['occupancies']|count > 1}{l s='Rooms' mod='wkroomsearchblock'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room' mod='wkroomsearchblock'}{/if}</span>
</button>
<div id="search_occupancy_wrapper" class="dropdown-menu">
<div id="occupancy_inner_wrapper">
{if isset($search_data['occupancies']) && $search_data['occupancies']}
{assign var=countRoom value=1}
{foreach from=$search_data['occupancies'] key=key item=$occupancy name=occupancyInfo}
<div class="occupancy-room-block">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1' mod='wkroomsearchblock'}</span></div>
<div class="occupancy_info_block" occ_block_index="0">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room' mod='wkroomsearchblock'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove' mod='wkroomsearchblock'}</a>{/if}</div>
<div class="occupancy_info_block" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
<div class="row">
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
<div>
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[0][adults]" value="1">
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>1</span>
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
@@ -186,20 +113,16 @@
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
<label>{l s='Children' mod='wkroomsearchblock'}</label>
<div class="clearfix">
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[0][children]" value="0">
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>0</span>
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
@@ -207,37 +130,112 @@
</div>
</div>
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
<div class="row">
<div class="form-group children_age_info_block col-sm-12">
<div class="form-group children_age_info_block col-sm-12" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
<div class="children_ages">
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
{foreach $occupancy['child_ages'] as $childAge}
<div>
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1' mod='wkroomsearchblock'}</option>
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1' mod='wkroomsearchblock'}</option>
{for $age=1 to ($max_child_age-1)}
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
{/for}
</select>
</div>
{/foreach}
{/if}
</div>
</div>
</div>
</div>
<hr class="occupancy-info-separator">
</div>
{/if}
</div>
<div class="occupancy_block_actions">
<span id="add_new_occupancy">
<a class="add_new_occupancy_btn" href="#"><i class="icon-plus"></i> <span>{l s='Add Room' mod='wkroomsearchblock'}</span></a>
</span>
<span>
<button class="submit_occupancy_btn btn btn-primary">{l s='Done' mod='wkroomsearchblock'}</button>
</span>
</div>
{assign var=countRoom value=$countRoom+1}
{/foreach}
{else}
<div class="occupancy-room-block">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1' mod='wkroomsearchblock'}</span></div>
<div class="occupancy_info_block" occ_block_index="0">
<div class="row">
<div class="form-group occupancy_count_block col-sm-5 col-xs-6">
<label>{l s='Adults' mod='wkroomsearchblock'}</label>
<div>
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[0][adults]" value="1">
<div class="occupancy_count pull-left">
<span>1</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
</a>
</div>
</div>
</div>
<div class="form-group occupancy_count_block col-sm-7 col-xs-6">
<label>{l s='Children' mod='wkroomsearchblock'}</label>
<div class="clearfix">
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[0][children]" value="0">
<div class="occupancy_count pull-left">
<span>0</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
</a>
</div>
</div>
<p class="label-desc-txt">({l s='Below' mod='wkroomsearchblock'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years' mod='wkroomsearchblock'})</p>
</div>
</div>
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
<div class="row">
<div class="form-group children_age_info_block col-sm-12">
<label>{l s='All Children' mod='wkroomsearchblock'}</label>
<div class="children_ages">
</div>
</div>
</div>
</div>
<hr class="occupancy-info-separator">
</div>
{/if}
</div>
<div class="occupancy_block_actions">
<span id="add_new_occupancy">
<a class="add_new_occupancy_btn" href="#"><i class="icon-plus"></i> <span>{l s='Add Room' mod='wkroomsearchblock'}</span></a>
</span>
<span>
<button class="submit_occupancy_btn btn btn-primary">{l s='Done' mod='wkroomsearchblock'}</button>
</span>
</div>
</div>
</div>
{/if}
{/block}
{block name='search_form_submit'}
<div class="form-group search_room_submit_block area-{$column_widths['search']}">
<button type="submit" class="btn btn btn-primary pull-right" name="search_room_submit" id="search_room_submit">
<span>{l s='Search Rooms' mod='wkroomsearchblock'}</span>
</button>
</div>
{/block}
</form>
{/block}
{/if}
{/block}
{block name='search_form_submit'}
<div class="form-group search_room_submit_block area-{$column_widths['search']}">
<button type="submit" class="btn btn btn-primary pull-right" name="search_room_submit" id="search_room_submit">
<span>{l s='Search Rooms' mod='wkroomsearchblock'}</span>
</button>
</div>
{/block}
</form>

View File

@@ -17,237 +17,235 @@
* @license LICENSE.txt
*}
{block name='booking_form'}
<div class="booking-form card">
<div class="booking_room_fields">
{block name='booking_form_content'}
<form id="booking-form" action="" method="post">
{block name='booking_form_hotel_location'}
{if isset($id_hotel) && $id_hotel}
<div class="form-group htl_location_block">
<label for="" class="control-label">{l s='Hotel Location'}</label>
<p>{$hotel_location|escape:'html':'UTF-8'}</p>
<div class="booking-form card">
<div class="booking_room_fields">
{block name='booking_form_content'}
<form id="booking-form" action="" method="post">
{block name='booking_form_hotel_location'}
{if isset($id_hotel) && $id_hotel}
<div class="form-group htl_location_block">
<label for="" class="control-label">{l s='Hotel Location'}</label>
<p>{$hotel_location|escape:'html':'UTF-8'}</p>
</div>
{/if}
{/block}
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
{* Block for booking products *}
{if $product->booking_product}
{if !$order_date_restrict}
<div class="row">
{block name='booking_form_dates'}
<div class="form-group col-sm-12">
<label class="control-label">{l s='Check In - Check Out'}</label>
<div class="form-control input-date" id="room_date_range" autocomplete="off" placeholder="{l s='Check-in - Check-out'}"><span>{l s='Check-in'} &nbsp;<i class="icon icon-minus"></i>&nbsp; {l s='Check-out'}</span></div>
<input type="hidden" class="input-date" name="room_check_in" id="room_check_in" value="{if isset($date_from)}{$date_from}{/if}" />
<input type="hidden" class="input-date" name="room_check_out" id="room_check_out" value="{if isset($date_to)}{$date_to}{/if}" />
</div>
{/block}
</div>
{/if}
{/block}
{if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
{* Block for booking products *}
{if $product->booking_product}
{if !$order_date_restrict}
<div class="row">
{block name='booking_form_dates'}
<div class="form-group col-sm-12">
<label class="control-label">{l s='Check In - Check Out'}</label>
<div class="form-control input-date" id="room_date_range" autocomplete="off" placeholder="{l s='Check-in - Check-out'}"><span>{l s='Check-in'} &nbsp;<i class="icon icon-minus"></i>&nbsp; {l s='Check-out'}</span></div>
<input type="hidden" class="input-date" name="room_check_in" id="room_check_in" value="{if isset($date_from)}{$date_from}{/if}" />
<input type="hidden" class="input-date" name="room_check_out" id="room_check_out" value="{if isset($date_to)}{$date_to}{/if}" />
{if $total_available_rooms > 0}
{block name='booking_form_quantity_wrapper'}
<div class="row">
<div class="form-group col-sm-12"{if !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
<label class="control-label">{l s='Guests'}</label>
{block name='occupancy_field'}
{include file="./occupancy_field.tpl"}
{/block}
{else}
<label class="control-label">{l s='No. of Rooms'}</label>
{block name='quantity_field'}
{include file="./quantity_field.tpl"}
{/block}
{/if}
</div>
{/block}
</div>
{if $total_available_rooms > 0}
{block name='booking_form_quantity_wrapper'}
<div class="row">
<div class="form-group col-sm-12"{if !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
<label class="control-label">{l s='Guests'}</label>
{block name='booking_form_occupancy'}
{include file="./occupancy_field.tpl"}
{/block}
{else}
<label class="control-label">{l s='No. of Rooms'}</label>
{block name='booking_form_quantity'}
{include file="./quantity_field.tpl"}
{/block}
{/if}
</div>
</div>
{/block}
{block name='booking_form_price_information'}
{if (isset($has_room_type_demands) && $has_room_type_demands) || (isset($service_products_exists) && $service_products_exists)}
<hr class="separator-hr-mg-10">
<div class="row price_desc_block">
<div class="col-sm-6">
<label class="control-label">{l s='Room Price'}</label>
<p>
<span class="total_price_block">{convertPrice price=$rooms_price|floatval}</span>
<span class="pull-right plus-sign">+</span>
</p>
</div>
<div class="col-sm-6">
<label class="control-label">{l s='Extra Services'}</label>
<p class="extra_demands_price_block">
{if isset($demands_price)}{convertPrice price=$demands_price}{else}{convertPrice price=0}{/if}
{if (isset($selected_demands) && $selected_demands) || (isset($selected_service_product) && $selected_service_product)}
<span class="services-info">
<img src="{$img_dir}icon/icon-info.svg" />
</span>
{/if}
</div>
{/block}
{block name='booking_form_price_information'}
{if (isset($has_room_type_demands) && $has_room_type_demands) || (isset($service_products_exists) && $service_products_exists)}
<hr class="separator-hr-mg-10">
<div class="row price_desc_block">
<div class="col-sm-6">
<label class="control-label">{l s='Room Price'}</label>
<p>
<span class="total_price_block">{convertPrice price=$rooms_price|floatval}</span>
<span class="pull-right plus-sign">+</span>
</p>
</div>
<div class="col-sm-6">
<label class="control-label">{l s='Extra Services'}</label>
<p class="extra_demands_price_block">
{if isset($demands_price)}{convertPrice price=$demands_price}{else}{convertPrice price=0}{/if}
{if (isset($selected_demands) && $selected_demands) || (isset($selected_service_product) && $selected_service_product)}
<div class="services-info-container" style="display: none;">
<div class="services-info-tooltip-cont">
{if isset($selected_service_product) && $selected_service_product}
<div class="extra-service-panel">
<p class="panel_title">{l s='Selected services'} <span>{l s='(Per room)'}</span></p>
<div class="services-list">
{foreach $selected_service_product as $product}
<div class="services-list-row">
<div>
{$product['name']}
{if $product['allow_multiple_quantity']}
<p>{l s='qty'}: {$product['quantity']}</p>
{/if}
</div>
<div class="text-right">
<p>{displayPrice price=$product['price']}</p>
<a class="btn btn-sm btn-default remove_roomtype_product" data-id-product="{$product['id_product']}"><i class="icon-trash"></i></a>
</div>
</div>
{/foreach}
</div>
</div>
{/if}
{if isset($selected_demands) && $selected_demands}
<div class="extra-service-panel">
<p class="panel_title">{l s='Selected facilities'} <span>{l s='(Per room)'}</span></p>
<div class="services-list">
{foreach $selected_demands as $product}
<div class="services-list-row">
<div>
{$product['name']}
{if isset($product['advance_option']) && $product['advance_option']}
<p>{l s='Option:'} {$product['advance_option']['name']}</p>
{/if}
</div>
<div class="text-right">
<p>{displayPrice price=$product['price']}</p>
<a class="btn btn-sm btn-default remove_roomtype_demand" data-id_global_demand="{$product['id_global_demand']}"><i class="icon-trash"></i></a>
</div>
</div>
{/foreach}
</div>
</div>
{/if}
<hr>
<span class="services-info">
<img src="{$img_dir}icon/icon-info.svg" />
</span>
{/if}
</p>
{if (isset($selected_demands) && $selected_demands) || (isset($selected_service_product) && $selected_service_product)}
<div class="services-info-container" style="display: none;">
<div class="services-info-tooltip-cont">
{if isset($selected_service_product) && $selected_service_product}
<div class="extra-service-panel">
<div class="summary-row">
<div>{l s='Total price per room'}</div>
<div><p class="service_price">{displayPrice price=$demands_price_per_room}</p></div>
<p class="panel_title">{l s='Selected services'} <span>{l s='(Per room)'}</span></p>
<div class="services-list">
{foreach $selected_service_product as $product}
<div class="services-list-row">
<div>
{$product['name']}
{if $product['allow_multiple_quantity']}
<p>{l s='qty'}: {$product['quantity']}</p>
{/if}
</div>
<div class="text-right">
<p>{displayPrice price=$product['price']}</p>
<a class="btn btn-sm btn-default remove_roomtype_product" data-id-product="{$product['id_product']}"><i class="icon-trash"></i></a>
</div>
</div>
{/foreach}
</div>
<div class="summary-row">
<div>{l s='Total price:'}</div>
<div><p class="service_price">{displayPrice price=$demands_price}</p></div>
</div>
{/if}
{if isset($selected_demands) && $selected_demands}
<div class="extra-service-panel">
<p class="panel_title">{l s='Selected facilities'} <span>{l s='(Per room)'}</span></p>
<div class="services-list">
{foreach $selected_demands as $product}
<div class="services-list-row">
<div>
{$product['name']}
{if isset($product['advance_option']) && $product['advance_option']}
<p>{l s='Option:'} {$product['advance_option']['name']}</p>
{/if}
</div>
<div class="text-right">
<p>{displayPrice price=$product['price']}</p>
<a class="btn btn-sm btn-default remove_roomtype_demand" data-id_global_demand="{$product['id_global_demand']}"><i class="icon-trash"></i></a>
</div>
</div>
{/foreach}
</div>
</div>
{/if}
<hr>
<div class="extra-service-panel">
<div class="summary-row">
<div>{l s='Total price per room'}</div>
<div><p class="service_price">{displayPrice price=$demands_price_per_room}</p></div>
</div>
<div class="summary-row">
<div>{l s='Total price:'}</div>
<div><p class="service_price">{displayPrice price=$demands_price}</p></div>
</div>
</div>
</div>
{/if}
</div>
</div>
<hr class="separator-hr-mg-10 form-group">
{/if}
{/block}
{block name='booking_form_actions'}
<div id="booking_action_block">
<div class="row">
{block name='booking_form_total_price'}
<div class="total_price_block col-xs-7 form-group">
<label class="control-label">{l s='Total'}</label>
<p>
{if $total_price && $total_price_without_discount > $total_price}
<span class="room_type_old_price">
{convertPrice price=$total_price_without_discount|floatval}
</span>
{/if}
{convertPrice price=$total_price|floatval}
</p>
</div>
{/block}
{block name='booking_form_available_quantity'}
{if $total_available_rooms <= $warning_count}
<div class="col-xs-5 form-group text-right num_quantity_alert">
<span class="num_searched_avail_rooms">
{$total_available_rooms|escape:'html':'UTF-8'}
</span>
{if $total_available_rooms > 1} {l s='rooms left!'} {else} {l s='room left!'} {/if}
</div>
{/if}
{/block}
</div>
<div>
{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE || $order_date_restrict}
{else}
<div id="additional_products" class="hidden">
{if isset($selected_service_product) && $selected_service_product}
{foreach $selected_service_product as $product}
<input type="hidded" id="service_product_{$product['id_product']}" name="service_product[{$product['id_product']}][]" class="service_product" data-id_product="{$product['id_product']}" value="{$product['quantity']}">
{/foreach}
{/if}
</div>
{block name='booking_form_book_now_button'}
<p id="add_to_cart" class="buttons_bottom_block no-print">
<button type="submit" name="Submit" class="exclusive book_now_submit">
<span>
{if isset($content_only) && $content_only && (isset($product->customization_required) && $product->customization_required)}{l s='Customize'}{else}{l s='Book Now'}{/if}
</span>
<span id="booking_action_loader"></span>
</button>
</p>
{/block}
{/if}
</div>
</div>
{/block}
{else}
<div class="sold_out_alert">
<span>{l s='All rooms sold out!'}</span>
</div>
{/if}
{/if}
{else}
{if $product->allow_multiple_quantity}
<div class="row">
<div class="form-group col-sm-6" id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
<label for="quantity_wanted">{l s='Quantity'}</label>
<div class="qty_sec_cont">
<div class="qty_input_cont row margin-lr-0">
<input autocomplete="off" type="text" min="1" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}">
</div>
<div class="qty_direction">
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
</a>
</div>
<hr class="separator-hr-mg-10 form-group">
{/if}
{/block}
{block name='booking_form_actions'}
<div id="booking_action_block">
<div class="row">
{block name='booking_form_total_price'}
<div class="total_price_block col-xs-7 form-group">
<label class="control-label">{l s='Total'}</label>
<p>
{if $total_price && $total_price_without_discount > $total_price}
<span class="room_type_old_price">
{convertPrice price=$total_price_without_discount|floatval}
</span>
{/if}
{convertPrice price=$total_price|floatval}
</p>
</div>
{/block}
{block name='booking_form_available_quantity'}
{if $total_available_rooms <= $warning_count}
<div class="col-xs-5 form-group text-right num_quantity_alert">
<span class="num_searched_avail_rooms">
{$total_available_rooms|escape:'html':'UTF-8'}
</span>
{if $total_available_rooms > 1} {l s='rooms left!'} {else} {l s='room left!'} {/if}
</div>
{/if}
{/block}
</div>
<div>
{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE || $order_date_restrict}
{else}
<div id="additional_products" class="hidden">
{if isset($selected_service_product) && $selected_service_product}
{foreach $selected_service_product as $product}
<input type="hidded" id="service_product_{$product['id_product']}" name="service_product[{$product['id_product']}][]" class="service_product" data-id_product="{$product['id_product']}" value="{$product['quantity']}">
{/foreach}
{/if}
</div>
{block name='booking_form_book_now_button'}
<p id="add_to_cart" class="buttons_bottom_block no-print">
<button type="submit" name="Submit" class="exclusive book_now_submit">
<span>
{if isset($content_only) && $content_only && (isset($product->customization_required) && $product->customization_required)}{l s='Customize'}{else}{l s='Book Now'}{/if}
</span>
<span id="booking_action_loader"></span>
</button>
</p>
{/block}
{/if}
</div>
<span class="clearfix"></span>
</div>
{/block}
{else}
<div class="sold_out_alert">
<span>{l s='All rooms sold out!'}</span>
</div>
{/if}
{/if}
{else}
{if $product->allow_multiple_quantity}
<div class="row">
<div class="total_price_block col-xs-7 form-group">
<label class="control-label">{l s='Price'}</label>
<p>
{convertPrice price=$productPrice|floatval}
</p>
<div class="form-group col-sm-6" id="quantity_wanted_p"{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
<label for="quantity_wanted">{l s='Quantity'}</label>
<div class="qty_sec_cont">
<div class="qty_input_cont row margin-lr-0">
<input autocomplete="off" type="text" min="1" name="qty" id="quantity_wanted" class="text" value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}">
</div>
<div class="qty_direction">
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default product_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
</a>
</div>
</div>
<span class="clearfix"></span>
</div>
</div>
{/if}
{/if}
{if $order_date_restrict}
<div class="order_restrict_alert">
<span>{l s='You can\'t book rooms after %s.' sprintf=[{dateFormat date=$max_order_date full=0}]}</span>
<div class="row">
<div class="total_price_block col-xs-7 form-group">
<label class="control-label">{l s='Price'}</label>
<p>
{convertPrice price=$productPrice|floatval}
</p>
</div>
</div>
{/if}
</form>
{/block}
</div>
{/if}
{if $order_date_restrict}
<div class="order_restrict_alert">
<span>{l s='You can\'t book rooms after %s.' sprintf=[{dateFormat date=$max_order_date full=0}]}</span>
</div>
{/if}
</form>
{/block}
</div>
{/block}
</div>

View File

@@ -17,124 +17,48 @@
* @license LICENSE.txt
*}
{block name='occupancy_field'}
<div class="form-group dropdown">
{block name='occupancy_field_button'}
<button class="form-control booking_guest_occupancy input-occupancy{if isset($error) && $error == 1} error_border{/if}" type="button">
<span class="">
{if isset($occupancies) && $occupancies}
{if (isset($occupancy_adults) && $occupancy_adults)}{$occupancy_adults} {if $occupancy_adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if isset($occupancy_children) && $occupancy_children}{$occupancy_children} {if $occupancy_children > 1} {l s='Children'}{else}{l s='Child'}{/if}, {/if}{$occupancies|count} {if $occupancies|count > 1}{l s='Rooms'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room'}{/if}
{else}
{l s='Select Occupancy'}
{/if}
</span>
</button>
{/block}
<div class="form-group dropdown">
{block name='occupancy_field_button'}
<button class="form-control booking_guest_occupancy input-occupancy{if isset($error) && $error == 1} error_border{/if}" type="button">
<span class="">
{if isset($occupancies) && $occupancies}
{if (isset($occupancy_adults) && $occupancy_adults)}{$occupancy_adults} {if $occupancy_adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}, {if isset($occupancy_children) && $occupancy_children}{$occupancy_children} {if $occupancy_children > 1} {l s='Children'}{else}{l s='Child'}{/if}, {/if}{$occupancies|count} {if $occupancies|count > 1}{l s='Rooms'}{else}{l s='Room'}{/if}{else}{l s='1 Adult, 1 Room'}{/if}
{else}
{l s='Select Occupancy'}
{/if}
</span>
</button>
{/block}
{block name='occupancy_field_content'}
<div class="dropdown-menu booking_occupancy_wrapper">
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)}{$total_available_rooms|escape:'html':'UTF-8'}{/if}">
<input type="hidden" class="max_adults" value="{$room_type_info['max_adults']|escape:'html':'UTF-8'}">
<input type="hidden" class="max_children" value="{$room_type_info['max_children']|escape:'html':'UTF-8'}">
<input type="hidden" class="max_guests" value="{$room_type_info['max_guests']|escape:'html':'UTF-8'}">
<input type="hidden" class="base_adult" value="{$room_type_info['adults']|escape:'html':'UTF-8'}">
<input type="hidden" class="base_children" value="{$room_type_info['children']|escape:'html':'UTF-8'}">
<div class="booking_occupancy_inner">
{if isset($occupancies) && $occupancies}
{assign var=countRoom value=1}
{foreach from=$occupancies key=key item=$occupancy name=occupancyInfo}
<div class="occupancy_info_block selected" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove'}</a>{/if}</div>
<div class="row">
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
<div class="row">
<label class="col-sm-12">{l s='Adults'}</label>
<div class="col-sm-12">
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
</div>
</div>
<div class="form-group col-sm-7 col-xs-6 occupancy_count_block">
<div class="row">
<label class="col-sm-12">{l s='Children'}</label>
<div class="col-sm-12 clearfix">
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" max="{}" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
<div class="col-sm-12">
<span class="label-desc-txt">({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'})</span>
</div>
</div>
</div>
</div>
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
<div class="form-group row children_age_info_block" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
<label class="col-sm-12">{l s='All Children'}</label>
<div class="col-sm-12">
<div class="children_ages">
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
{foreach $occupancy['child_ages'] as $childAge}
<div>
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1'}</option>
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1'}</option>
{for $age=1 to ($max_child_age-1)}
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
{/for}
</select>
</div>
{/foreach}
{/if}
</div>
</div>
</div>
<hr class="occupancy-info-separator">
</div>
{assign var=countRoom value=$countRoom+1}
{/foreach}
{else}
<div class="occupancy_info_block" occ_block_index="0">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1'}</span></div>
{block name='occupancy_field_content'}
<div class="dropdown-menu booking_occupancy_wrapper">
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)}{$total_available_rooms|escape:'html':'UTF-8'}{/if}">
<input type="hidden" class="max_adults" value="{$room_type_info['max_adults']|escape:'html':'UTF-8'}">
<input type="hidden" class="max_children" value="{$room_type_info['max_children']|escape:'html':'UTF-8'}">
<input type="hidden" class="max_guests" value="{$room_type_info['max_guests']|escape:'html':'UTF-8'}">
<input type="hidden" class="base_adult" value="{$room_type_info['adults']|escape:'html':'UTF-8'}">
<input type="hidden" class="base_children" value="{$room_type_info['children']|escape:'html':'UTF-8'}">
<div class="booking_occupancy_inner">
{if isset($occupancies) && $occupancies}
{assign var=countRoom value=1}
{foreach from=$occupancies key=key item=$occupancy name=occupancyInfo}
<div class="occupancy_info_block selected" occ_block_index="{$key|escape:'htmlall':'UTF-8'}">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room'} - {$countRoom|escape:'htmlall':'UTF-8'} </span>{if !$smarty.foreach.occupancyInfo.first}<a class="remove-room-link pull-right" href="#">{l s='Remove'}</a>{/if}</div>
<div class="row">
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
<div class="row">
<label class="col-sm-12">{l s='Adults'}</label>
<div class="col-sm-12">
<input type="hidden" class="num_occupancy num_adults" name="num_adults[]" value="{$room_type_info['adults']}">
<input type="hidden" class="num_occupancy num_adults room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][adults]" value="{$occupancy['adults']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>{$room_type_info['adults']}</span>
<span>{$occupancy['adults']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
@@ -144,20 +68,16 @@
<div class="row">
<label class="col-sm-12">{l s='Children'}</label>
<div class="col-sm-12 clearfix">
<input type="hidden" class="num_occupancy num_children" name="num_children[]" value="0">
<input type="hidden" class="num_occupancy num_children room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][children]" max="{}" value="{$occupancy['children']|escape:'htmlall':'UTF-8'}">
<div class="occupancy_count pull-left">
<span>0</span>
<span>{$occupancy['children']|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>
@@ -168,31 +88,109 @@
</div>
</div>
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
<div class="form-group row children_age_info_block">
<div class="form-group row children_age_info_block" {if isset($occupancy['child_ages']) && $occupancy['child_ages']}style="display:block;"{/if}>
<label class="col-sm-12">{l s='All Children'}</label>
<div class="col-sm-12">
<div class="children_ages">
{if isset($occupancy['child_ages']) && $occupancy['child_ages']}
{foreach $occupancy['child_ages'] as $childAge}
<div>
<select class="guest_child_age room_occupancies" name="occupancy[{$key|escape:'htmlall':'UTF-8'}][child_ages][]">
<option value="-1" {if $childAge == -1}selected{/if}>{l s='Select 1'}</option>
<option value="0" {if $childAge == 0}selected{/if}>{l s='Under 1'}</option>
{for $age=1 to ($max_child_age-1)}
<option value="{$age|escape:'htmlall':'UTF-8'}" {if $childAge == $age}selected{/if}>{$age|escape:'htmlall':'UTF-8'}</option>
{/for}
</select>
</div>
{/foreach}
{/if}
</div>
</div>
</div>
<hr class="occupancy-info-separator">
</div>
{/if}
</div>
{block name='occupancy_field_actions'}
<div class="occupancy_block_actions">
<span class="add_occupancy_block">
<a class="add_new_occupancy_btn{if isset($occupancies) && $occupancies && isset($total_available_rooms) && $total_available_rooms <= count($occupancies)} disabled{/if}" data-title-available="{l s='Click to add more rooms.'}" data-title-unavailable="{l s='No more rooms available.'}" href="#">
<i class="icon-plus"></i>
<span>{l s='Add Room'}</span>
</a>
</span>
<span>
<button type="submit" class="submit_occupancy_btn btn btn-primary">{l s='Done'}</button>
</span>
{assign var=countRoom value=$countRoom+1}
{/foreach}
{else}
<div class="occupancy_info_block" occ_block_index="0">
<div class="occupancy_info_head"><span class="room_num_wrapper">{l s='Room - 1'}</span></div>
<div class="row">
<div class="form-group col-sm-5 col-xs-6 occupancy_count_block">
<div class="row">
<label class="col-sm-12">{l s='Adults'}</label>
<div class="col-sm-12">
<input type="hidden" class="num_occupancy num_adults" name="num_adults[]" value="{$room_type_info['adults']}">
<div class="occupancy_count pull-left">
<span>{$room_type_info['adults']}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
</a>
</div>
</div>
</div>
</div>
<div class="form-group col-sm-7 col-xs-6 occupancy_count_block">
<div class="row">
<label class="col-sm-12">{l s='Children'}</label>
<div class="col-sm-12 clearfix">
<input type="hidden" class="num_occupancy num_children" name="num_children[]" value="0">
<div class="occupancy_count pull-left">
<span>0</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_up">
<span>
<i class="icon-plus"></i>
</span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default occupancy_quantity_down">
<span>
<i class="icon-minus"></i>
</span>
</a>
</div>
</div>
<div class="col-sm-12">
<span class="label-desc-txt">({l s='Below'} {$max_child_age|escape:'htmlall':'UTF-8'} {l s='years'})</span>
</div>
</div>
</div>
</div>
<p style="display:none;"><span class="text-danger occupancy-input-errors"></span></p>
<div class="form-group row children_age_info_block">
<label class="col-sm-12">{l s='All Children'}</label>
<div class="col-sm-12">
<div class="children_ages">
</div>
</div>
</div>
<hr class="occupancy-info-separator">
</div>
{/block}
{/if}
</div>
{/block}
</div>
{/block}
{block name='occupancy_field_actions'}
<div class="occupancy_block_actions">
<span class="add_occupancy_block">
<a class="add_new_occupancy_btn{if isset($occupancies) && $occupancies && isset($total_available_rooms) && $total_available_rooms <= count($occupancies)} disabled{/if}" data-title-available="{l s='Click to add more rooms.'}" data-title-unavailable="{l s='No more rooms available.'}" href="#">
<i class="icon-plus"></i>
<span>{l s='Add Room'}</span>
</a>
</span>
<span>
<button type="submit" class="submit_occupancy_btn btn btn-primary">{l s='Done'}</button>
</span>
</div>
{/block}
</div>
{/block}
</div>

View File

@@ -17,26 +17,24 @@
* @license LICENSE.txt
*}
{block name='order_message'}
<div class="message {if isset($message.id_employee) && $message.id_employee}management{else}customer{/if}">
<div class="profile">
<div class="row">
<div class="col-sm-6">
<strong>
{if $message.id_employee}
{$obj_hotel_branch_information->hotel_name|escape:'html':'UTF-8'}
{else}
{$message.cfirstname|escape:'html':'UTF-8'} {$message.clastname|escape:'html':'UTF-8'}
{/if}
</strong>
</div>
<div class="col-sm-6 text-right">
{dateFormat date=$message.date_add full=1}
</div>
<div class="message {if isset($message.id_employee) && $message.id_employee}management{else}customer{/if}">
<div class="profile">
<div class="row">
<div class="col-sm-6">
<strong>
{if $message.id_employee}
{$obj_hotel_branch_information->hotel_name|escape:'html':'UTF-8'}
{else}
{$message.cfirstname|escape:'html':'UTF-8'} {$message.clastname|escape:'html':'UTF-8'}
{/if}
</strong>
</div>
<div class="col-sm-6 text-right">
{dateFormat date=$message.date_add full=1}
</div>
</div>
<div class="message-content">
{$message.message|escape:'html':'UTF-8'|nl2br}
</div>
</div>
{/block}
<div class="message-content">
{$message.message|escape:'html':'UTF-8'|nl2br}
</div>
</div>

View File

@@ -17,157 +17,155 @@
* @license LICENSE.txt
*}
{block name='order_room_detail'}
<div class="booking-room-detail" data-id-product="{$data_v.id_product}" data-date-diff="{$rm_k}">
<div class="row">
{block name='order_room_detail_room_image'}
<div class="col-xs-3 col-sm-2">
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank">
<img class="img img-responsive img-room-type" src="{$data_v.cover_img|escape:'html':'UTF-8'}" />
</a>
</div>
{/block}
{block name='order_room_detail_room_detail'}
<div class="col-xs-9 col-sm-10 info-wrap">
<div class="row">
<div class="col-xs-12">
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank" class="room-type-name">
<h3>{$data_v.name|escape:'html':'UTF-8'}</h3>
</a>
<div class="booking-room-detail" data-id-product="{$data_v.id_product}" data-date-diff="{$rm_k}">
<div class="row">
{block name='order_room_detail_room_image'}
<div class="col-xs-3 col-sm-2">
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank">
<img class="img img-responsive img-room-type" src="{$data_v.cover_img|escape:'html':'UTF-8'}" />
</a>
</div>
{/block}
{block name='order_room_detail_room_detail'}
<div class="col-xs-9 col-sm-10 info-wrap">
<div class="row">
<div class="col-xs-12">
<a href="{$link->getProductLink($data_v.id_product)|escape:'html':'UTF-8'}" title="{$data_v.name|escape:'html':'UTF-8'}" target="_blank" class="room-type-name">
<h3>{$data_v.name|escape:'html':'UTF-8'}</h3>
</a>
{if $rm_v['count_refunded'] > 0 || $rm_v['count_cancelled'] > 0}
<div class="num-refunded-rooms">
{if $rm_v['count_cancelled'] > 0}
<span class="badge badge-danger">
{if $rm_v['count_cancelled'] > 1}
{$rm_v['count_cancelled']} {l s='Rooms Cancelled'}
{else}
{$rm_v['count_cancelled']} {l s='Room Cancelled'}
{/if}
</span>
{/if}
{if $rm_v['count_refunded'] > 0}
<span class="badge badge-danger">
{if $rm_v['count_refunded'] > 1}
{$rm_v['count_refunded']} {l s='Rooms Refunded'}
{else}
{$rm_v['count_refunded']} {l s='Room Refunded'}
{/if}
</span>
{/if}
{if $rm_v['count_refunded'] > 0 || $rm_v['count_cancelled'] > 0}
<div class="num-refunded-rooms">
{if $rm_v['count_cancelled'] > 0}
<span class="badge badge-danger">
{if $rm_v['count_cancelled'] > 1}
{$rm_v['count_cancelled']} {l s='Rooms Cancelled'}
{else}
{$rm_v['count_cancelled']} {l s='Room Cancelled'}
{/if}
</span>
{/if}
{if $rm_v['count_refunded'] > 0}
<span class="badge badge-danger">
{if $rm_v['count_refunded'] > 1}
{$rm_v['count_refunded']} {l s='Rooms Refunded'}
{else}
{$rm_v['count_refunded']} {l s='Room Refunded'}
{/if}
</span>
{/if}
</div>
{/if}
</div>
<div class="col-xs-12">
<div class="description-list">
<dl class="">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Check-in'}</dt>
<dd class="col-xs-7">{$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}</dd>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Check-out'}</dt>
<dd class="col-xs-7">{$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}</dd>
</div>
</div>
</div>
{/if}
</div>
<div class="col-xs-12">
<div class="description-list">
<dl class="">
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Check-in'}</dt>
<dd class="col-xs-7">{$rm_v.data_form|date_format:'D'}, {dateFormat date=$rm_v.data_form}</dd>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Check-out'}</dt>
<dd class="col-xs-7">{$rm_v.data_to|date_format:'D'}, {dateFormat date=$rm_v.data_to}</dd>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Rooms'}</dt>
<dd class="col-xs-7">{$rm_v.num_rm|string_format:'%02d'}</dd>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Rooms'}</dt>
<dd class="col-xs-7">{$rm_v.num_rm|string_format:'%02d'}</dd>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Guests'}</dt>
<dd class="col-xs-7">
{$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
</dd>
</div>
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Guests'}</dt>
<dd class="col-xs-7">
{$rm_v.adults|string_format:'%02d'} {if $rm_v.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $rm_v.children}, {$rm_v.children|string_format:'%02d'} {if $rm_v.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if}
</dd>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Extra Services'}</dt>
<dd class="col-xs-7">
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
<a data-date_from="{$rm_v.data_form}" data-date_to="{$rm_v.data_to}" data-id_product="{$data_v.id_product}" data-id_order="{$order->id}" data-action="{$link->getPageLink({$page_name})}" class="btn-view-extra-services" href="#rooms_type_extra_services_form">
{/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}
</a>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Extra Services'}</dt>
<dd class="col-xs-7">
{if (isset($rm_v.extra_demands) && $rm_v.extra_demands) || isset($rm_v.additional_services) && $rm_v.additional_services}
<a data-date_from="{$rm_v.data_form}" data-date_to="{$rm_v.data_to}" data-id_product="{$data_v.id_product}" data-id_order="{$order->id}" data-action="{$link->getPageLink({$page_name})}" class="btn-view-extra-services" href="#rooms_type_extra_services_form">
{/if}
</dd>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Total Price'}</dt>
<dd class="col-xs-7">
{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}
{displayWtPriceWithCurrency price=($rm_v.extra_demands_price_ti + $rm_v.additional_services_price_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}
{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}
<span class="order-price-info">
<img src="{$img_dir}icon/icon-info.svg" />
</span>
<div class="price-info-container" style="display: none;">
<div class="price-info-tooltip-cont">
<div class="list-row">
<div>
<p>{l s='Room(s) cost:'}</p>
</div>
<div class="text-right">
<p>
{if $group_use_tax}
{displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.additional_services_price_auto_add_ti) currency=$currency}
{else}
{displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.additional_services_price_auto_add_te) currency=$currency}
{/if}
</p>
</div>
</a>
{/if}
</dd>
</div>
</div>
<div class="col-xs-12 col-md-6">
<div class="row">
<dt class="col-xs-5">{l s='Total Price'}</dt>
<dd class="col-xs-7">
{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}
<span class="order-price-info">
<img src="{$img_dir}icon/icon-info.svg" />
</span>
<div class="price-info-container" style="display: none;">
<div class="price-info-tooltip-cont">
<div class="list-row">
<div>
<p>{l s='Room(s) cost:'}</p>
</div>
<div class="list-row">
<div>
<p>{l s='Service(s) cost:'}</p>
</div>
<div class="text-right">
<p>
{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}
</p>
</div>
<div class="text-right">
<p>
{if $group_use_tax}
{displayWtPriceWithCurrency price=($rm_v.amount_tax_incl + $rm_v.additional_services_price_auto_add_ti) currency=$currency}
{else}
{displayWtPriceWithCurrency price=($rm_v.amount_tax_excl + $rm_v.additional_services_price_auto_add_te) currency=$currency}
{/if}
</p>
</div>
</div>
<div class="list-row">
<div>
<p>{l s='Service(s) cost:'}</p>
</div>
<div class="text-right">
<p>
{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}
</p>
</div>
</div>
</div>
{/if}
</dd>
</div>
</div>
{/if}
</dd>
</div>
</div>
</dl>
</div>
</div>
</dl>
</div>
</div>
</div>
{/block}
</div>
</div>
{/block}
</div>
{/block}
</div>

View File

@@ -17,20 +17,18 @@
* @license LICENSE.txt
*}
{block name='quantity_field'}
<div class="rm_qty_cont form-group clearfix">
<input type="hidden" class="text-center form-control quantity_wanted" min="1" name="qty" value="{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}">
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)} {$total_available_rooms|escape:'html':'UTF-8'}{/if}">
<div class="qty_count pull-left">
<span>{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default quantity_up rm_quantity_up">
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default quantity_down rm_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
</div>
<div class="rm_qty_cont form-group clearfix">
<input type="hidden" class="text-center form-control quantity_wanted" min="1" name="qty" value="{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}">
<input type="hidden" class="max_avail_type_qty" value="{if isset($total_available_rooms)} {$total_available_rooms|escape:'html':'UTF-8'}{/if}">
<div class="qty_count pull-left">
<span>{if isset($quantity) && $quantity}{$quantity|escape:'html':'UTF-8'}{else}1{/if}</span>
</div>
{/block}
<div class="qty_direction pull-left">
<a href="#" data-field-qty="qty" class="btn btn-default quantity_up rm_quantity_up">
<span><i class="icon-plus"></i></span>
</a>
<a href="#" data-field-qty="qty" class="btn btn-default quantity_down rm_quantity_down">
<span><i class="icon-minus"></i></span>
</a>
</div>
</div>

View File

@@ -17,119 +17,121 @@
* @license LICENSE.txt
*}
{block name='room_type_list'}
{block name='displayRoomTypeListBefore'}
{hook h='displayRoomTypeListBefore'}
{/block}
{if isset($booking_data['stats']) && $booking_data['stats']['num_avail']}
{foreach from=$booking_data['rm_data'] key=room_k item=room_v}
{if $room_v['data']['available']|count}
<div class="col-sm-12 room_cont" data-id-product="{$room_v['id_product']|escape:'htmlall':'UTF-8'}">
<div class="row">
{block name='room_type_list_room_image'}
<div class="col-sm-4">
<a href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">
<img src="{$room_v['image']|escape:'htmlall':'UTF-8'}" class="img-responsive room-type-image">
{block name='displayRoomTypeListImageAfter'}
{hook h='displayRoomTypeListImageAfter' product=$room_v}
{/block}
</a>
</div>
{/block}
{block name='room_type_list_room_detail'}
<div class="col-sm-8 room_info_cont">
{block name='room_type_list_room_quantity'}
<div class="row">
<p class="rm_heading col-sm-12 col-md-7">{$room_v['name']|escape:'htmlall':'UTF-8'}</p>
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
<p class="rm_left col-sm-12 col-md-5" {if $room_v['room_left'] > $warning_num} style="display:none"{/if}>
{l s='Hurry!'} <span class="remain_rm_qty">{$room_v['room_left']|escape:'htmlall':'UTF-8'}</span> {l s='rooms left'}
</p>
{/if}
</div>
{block name='displayRoomTypeListBefore'}
{hook h='displayRoomTypeListBefore'}
{/block}
{if isset($booking_data['stats']) && $booking_data['stats']['num_avail']}
{foreach from=$booking_data['rm_data'] key=room_k item=room_v}
{if $room_v['data']['available']|count}
<div class="col-sm-12 room_cont" data-id-product="{$room_v['id_product']|escape:'htmlall':'UTF-8'}">
<div class="row">
{block name='room_type_list_room_image'}
<div class="col-sm-4">
<a href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">
<img src="{$room_v['image']|escape:'htmlall':'UTF-8'}" class="img-responsive room-type-image">
{block name='displayRoomTypeListImageAfter'}
{hook h='displayRoomTypeListImageAfter' product=$room_v}
{/block}
{block name='room_type_list_room_description'}
<div class="rm_desc">{$room_v['description_short']|truncate:190:"":true}&nbsp;<a class="view_more" href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">{l s='View More'}....</a></div>
{/block}
<div class="room_features_cont">
<div class="row">
{block name='room_type_list_room_features'}
<div class="col-sm-12 col-md-5 col-lg-6">
{if !empty($room_v['feature'])}
<p class="rm_amenities_cont">
{foreach from=$room_v['feature'] key=feat_k item=feat_v}
<img title="{$feat_v.name|escape:'htmlall':'UTF-8'}" src="{$link->getMediaLink("`$feat_img_dir`{$feat_v.value}")|escape:'htmlall':'UTF-8'}" class="rm_amen">
{/foreach}
</p>
{/if}
</div>
{/block}
{block name='room_type_list_room_max_guests_mobile'}
<div class="col-sm-12 hidden-md hidden-lg">
<p class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></p>
</div>
{/block}
{block name='room_type_list_room_price'}
<div class="col-sm-12 col-md-7 col-lg-6">
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
<p class="rm_price_cont">
{if $room_v['feature_price_diff'] >= 0}
<span class="rm_price_val {if $room_v['feature_price_diff']>0}room_type_old_price{/if}">
{displayPrice price = $room_v['price_without_reduction']|round:2|floatVal}
</span>
{/if}
{if $room_v['feature_price_diff']}
<span class="rm_price_val">
{displayPrice price = $room_v['feature_price']|round:2|floatVal}
</span>
{/if}
<span class="rm_price_txt">/{l s='Per Night'}</span>
</p>
{/if}
</div>
{/block}
</div>
<div class="row">
{block name='room_type_list_room_max_guests'}
<div class="col-sm-12 col-md-6 col-lg-4 visible-md visible-lg">
<div class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><br><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></div>
</div>
{/block}
<div class="col-sm-12 col-md-6 col-lg-8">
{block name='room_type_list_room_booking_fields'}
<div class="booking_room_fields">
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
<div class="booking_guest_occupancy_conatiner">
{include file="./occupancy_field.tpl" room_type_info=$room_v total_available_rooms=$room_v['room_left']}
</div>
{else}
<div>
<label>{l s='Qty:'}</label>
{include file="./quantity_field.tpl" total_available_rooms=$room_v['room_left']}
</div>
{/if}
{block name='room_type_list_room_book_now_button'}
<div>
<a cat_rm_check_in="{$booking_date_from|escape:'htmlall':'UTF-8'}" cat_rm_check_out="{$booking_date_to|escape:'htmlall':'UTF-8'}" href="" rm_product_id="{$room_v['id_product']}" cat_rm_book_nm_days="{$num_days|escape:'htmlall':'UTF-8'}" data-id-product-attribute="0" data-id-product="{$room_v['id_product']|intval}" class="btn btn-default button button-medium ajax_add_to_cart_button"><span>{l s='Book Now'}</span></a>
</div>
{/block}
{/if}
</div>
{/block}
</a>
</div>
{/block}
{block name='room_type_list_room_detail'}
<div class="col-sm-8 room_info_cont">
{block name='room_type_list_room_quantity'}
<div class="row">
<p class="rm_heading col-sm-12 col-md-7">{$room_v['name']|escape:'htmlall':'UTF-8'}</p>
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
<p class="rm_left col-sm-12 col-md-5" {if $room_v['room_left'] > $warning_num} style="display:none"{/if}>
{l s='Hurry!'} <span class="remain_rm_qty">{$room_v['room_left']|escape:'htmlall':'UTF-8'}</span> {l s='rooms left'}
</p>
{/if}
</div>
{/block}
{block name='room_type_list_room_description'}
<div class="rm_desc">{$room_v['description_short']|truncate:190:"":true}&nbsp;<a class="view_more" href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">{l s='View More'}....</a></div>
{/block}
<div class="room_features_cont">
<div class="row">
{block name='room_type_list_room_features'}
<div class="col-sm-12 col-md-5 col-lg-6">
{if !empty($room_v['feature'])}
<p class="rm_amenities_cont">
{foreach from=$room_v['feature'] key=feat_k item=feat_v}
<img title="{$feat_v.name|escape:'htmlall':'UTF-8'}" src="{$link->getMediaLink("`$feat_img_dir`{$feat_v.value}")|escape:'htmlall':'UTF-8'}" class="rm_amen">
{/foreach}
</p>
{/if}
</div>
{/block}
{block name='room_type_list_room_max_guests_mobile'}
<div class="col-sm-12 hidden-md hidden-lg">
<p class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></p>
</div>
{/block}
{block name='room_type_list_room_price'}
<div class="col-sm-12 col-md-7 col-lg-6">
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
<p class="rm_price_cont">
{if $room_v['feature_price_diff'] >= 0}
<span class="rm_price_val {if $room_v['feature_price_diff']>0}room_type_old_price{/if}">
{displayPrice price = $room_v['price_without_reduction']|round:2|floatVal}
</span>
{/if}
{if $room_v['feature_price_diff']}
<span class="rm_price_val">
{displayPrice price = $room_v['feature_price']|round:2|floatVal}
</span>
{/if}
<span class="rm_price_txt">/{l s='Per Night'}</span>
</p>
{/if}
</div>
{/block}
</div>
<div class="row">
{block name='room_type_list_room_max_guests'}
<div class="col-sm-12 col-md-6 col-lg-4 visible-md visible-lg">
<div class="capa_txt"><span>{$room_v['max_guests']|escape:'htmlall':'UTF-8'} {l s='Max guests:'}</span><br><span class="capa_data"> {$room_v['max_adults']|escape:'htmlall':'UTF-8'} {l s='Adults'}, {$room_v['max_children']|escape:'htmlall':'UTF-8'} {if $room_v['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if}</span></div>
</div>
{/block}
<div class="col-sm-12 col-md-6 col-lg-8">
{block name='room_type_list_room_booking_fields'}
<div class="booking_room_fields">
{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE && !$order_date_restrict}
{if isset($occupancy_required_for_booking) && $occupancy_required_for_booking}
<div class="booking_guest_occupancy_conatiner">
{block name='occupancy_field'}
{include file="./occupancy_field.tpl" room_type_info=$room_v total_available_rooms=$room_v['room_left']}
{/block}
</div>
{else}
<div>
<label>{l s='Qty:'}</label>
{block name='quantity_field'}
{include file="./quantity_field.tpl" total_available_rooms=$room_v['room_left']}
{/block}
</div>
{/if}
{block name='room_type_list_room_book_now_button'}
<div>
<a cat_rm_check_in="{$booking_date_from|escape:'htmlall':'UTF-8'}" cat_rm_check_out="{$booking_date_to|escape:'htmlall':'UTF-8'}" href="" rm_product_id="{$room_v['id_product']}" cat_rm_book_nm_days="{$num_days|escape:'htmlall':'UTF-8'}" data-id-product-attribute="0" data-id-product="{$room_v['id_product']|intval}" class="btn btn-default button button-medium ajax_add_to_cart_button"><span>{l s='Book Now'}</span></a>
</div>
{/block}
{/if}
</div>
{/block}
</div>
</div>
</div>
{/block}
</div>
</div>
{/block}
</div>
{/if}
{/foreach}
{else}
<div class="noRoomsAvailAlert">
<span>{l s='No room available for this hotel!'}</span>
</div>
{/if}
{/block}
</div>
{/if}
{/foreach}
{else}
<div class="noRoomsAvailAlert">
<span>{l s='No room available for this hotel!'}</span>
</div>
{/if}

View File

@@ -17,79 +17,77 @@
* @license LICENSE.txt
*}
{block name='service_products_list_row'}
{if isset($service_product) && $service_product}
<li class="row service-product-element">
<div class="col-xs-4 col-sm-3 col-md-2">
<a href="{$link->getImageLink($service_product.link_rewrite, $service_product.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$service_product['id_product']}" class="fancybox" title="{if !empty($service_product.legend)}{$service_product.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}">
<img class="img-responsive service-product-img" src="{$link->getImageLink($service_product.link_rewrite, $service_product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($service_product.legend)}{$service_product.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($service_product.legend)}{$service_product.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}">
</a>
{foreach $service_product.images as $image}
{if $image['cover'] == 0}
<a href="{$link->getImageLink($service_product.link_rewrite, $image.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$service_product['id_product']}" class="fancybox hidden" title="{if !empty($image.legend)}{$image.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}">
</a>
{/if}
{/foreach}
</div>
<div class="col-xs-8 col-sm-9 col-md-10">
<div class="row">
{block name='service_product_name'}
<div class="col-sm-12 clearfix service-product-block">
<span class="service-product-name">{$service_product['name']}</span>
{if isset($service_product) && $service_product}
<li class="row service-product-element">
<div class="col-xs-4 col-sm-3 col-md-2">
<a href="{$link->getImageLink($service_product.link_rewrite, $service_product.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$service_product['id_product']}" class="fancybox" title="{if !empty($service_product.legend)}{$service_product.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}">
<img class="img-responsive service-product-img" src="{$link->getImageLink($service_product.link_rewrite, $service_product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($service_product.legend)}{$service_product.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($service_product.legend)}{$service_product.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}">
</a>
{foreach $service_product.images as $image}
{if $image['cover'] == 0}
<a href="{$link->getImageLink($service_product.link_rewrite, $image.id_image, 'large_default')|escape:'html':'UTF-8'}" rel="htl-images{$service_product['id_product']}" class="fancybox hidden" title="{if !empty($image.legend)}{$image.legend|escape:'html':'UTF-8'}{else}{$service_product.name|escape:'html':'UTF-8'}{/if}">
</a>
{/if}
{/foreach}
</div>
<div class="col-xs-8 col-sm-9 col-md-10">
<div class="row">
{block name='service_product_name'}
<div class="col-sm-12 clearfix service-product-block">
<span class="service-product-name">{$service_product['name']}</span>
</div>
{/block}
{block name='service_product_description'}
{if $service_product['description_short']}
<div class="col-sm-12 clearfix service-product-short-desc service-product-block">
{$service_product['description_short']}
</div>
{/block}
{block name='service_product_description'}
{if $service_product['description_short']}
<div class="col-sm-12 clearfix service-product-short-desc service-product-block">
{$service_product['description_short']}
{/if}
{/block}
<div class="col-sm-12 service_product_action_block">
{block name='service_products_actions_right'}
{if !$PS_CATALOG_MODE && !$order_date_restrict && ($service_product.show_price && !isset($restricted_country_mode))}
<div class="service-product-price">
{block name='service_product_price'}
{if !$priceDisplay}{convertPrice price=$service_product.price_tax_incl}{else}{convertPrice price=$service_product.price_tax_exc}{/if}{if $service_product.price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}<span class="price-label">{l s='/Night'}</span>{/if}
{/block}
{if $service_product.allow_multiple_quantity && $service_product.available_for_order && $service_product.max_quantity > 0}
<div class="service-max-quantity-info">
{l s='Maximum'} {$service_product.max_quantity} {l s='quantity can be added'}.
</div>
{/if}
</div>
{/if}
{/block}
<div class="col-sm-12 service_product_action_block">
{block name='service_products_actions_right'}
{if !$PS_CATALOG_MODE && !$order_date_restrict && ($service_product.show_price && !isset($restricted_country_mode))}
<div class="service-product-price">
{block name='service_product_price'}
{if !$priceDisplay}{convertPrice price=$service_product.price_tax_incl}{else}{convertPrice price=$service_product.price_tax_exc}{/if}{if $service_product.price_calculation_method == Product::PRICE_CALCULATION_METHOD_PER_DAY}<span class="price-label">{l s='/Night'}</span>{/if}
{/block}
{if $service_product.allow_multiple_quantity && $service_product.available_for_order && $service_product.max_quantity > 0}
<div class="service-max-quantity-info">
{l s='Maximum'} {$service_product.max_quantity} {l s='quantity can be added'}.
{block name='service_products_actions_left'}
{if ($service_product.show_price && !isset($restricted_country_mode))}
{if $service_product.available_for_order && !$PS_CATALOG_MODE && !$order_date_restrict && !((isset($restricted_country_mode) && $restricted_country_mode))}
<div class="service-product-actions">
{if $service_product.allow_multiple_quantity && $service_product.available_for_order}
<div class="qty_container">
<input type="hidden" class="service_product_qty" id="service_product_qty_{$service_product.id_product}" name="service_product_qty_{$service_product.id_product}" data-id-product="{$service_product.id_product}" data-max_quantity="{$service_product.max_quantity}" value="{if isset($service_product.quantity_added) && $service_product.quantity_added}{$service_product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}">
<div class="qty_count pull-left">
<span>{if isset($service_product.quantity_added) && $service_product.quantity_added}{$service_product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" class="btn btn-default quantity_up service_product_qty_up"><span><i class="icon-plus"></i></span></a>
<a href="#" class="btn btn-default quantity_down service_product_qty_down"><span><i class="icon-minus"></i></span></a>
</div>
</div>
{/if}
<button class="btn btn-service-product {if isset($service_product.selected) && $service_product.selected} btn-danger remove_roomtype_product{else} btn-success add_roomtype_product{/if} select_room_service select_room_service_{$service_product.id_product} pull-right" data-id-product="{$service_product.id_product}">{if isset($service_product.selected) && $service_product.selected}{l s='Remove'}{else}{l s='Select'}{/if}</button>
</div>
{/if}
{/block}
{block name='service_products_actions_left'}
{if ($service_product.show_price && !isset($restricted_country_mode))}
{if $service_product.available_for_order && !$PS_CATALOG_MODE && !$order_date_restrict && !((isset($restricted_country_mode) && $restricted_country_mode))}
<div class="service-product-actions">
{if $service_product.allow_multiple_quantity && $service_product.available_for_order}
<div class="qty_container">
<input type="hidden" class="service_product_qty" id="service_product_qty_{$service_product.id_product}" name="service_product_qty_{$service_product.id_product}" data-id-product="{$service_product.id_product}" data-max_quantity="{$service_product.max_quantity}" value="{if isset($service_product.quantity_added) && $service_product.quantity_added}{$service_product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}">
<div class="qty_count pull-left">
<span>{if isset($service_product.quantity_added) && $service_product.quantity_added}{$service_product.quantity_added|escape:'html':'UTF-8'}{else}1{/if}</span>
</div>
<div class="qty_direction pull-left">
<a href="#" class="btn btn-default quantity_up service_product_qty_up"><span><i class="icon-plus"></i></span></a>
<a href="#" class="btn btn-default quantity_down service_product_qty_down"><span><i class="icon-minus"></i></span></a>
</div>
</div>
{/if}
<button class="btn btn-service-product {if isset($service_product.selected) && $service_product.selected} btn-danger remove_roomtype_product{else} btn-success add_roomtype_product{/if} select_room_service select_room_service_{$service_product.id_product} pull-right" data-id-product="{$service_product.id_product}">{if isset($service_product.selected) && $service_product.selected}{l s='Remove'}{else}{l s='Select'}{/if}</button>
</div>
{/if}
{/if}
{/block}
</div>
{/if}
{/block}
</div>
{if !isset($product->id)}{assign var=id_product value=0}{else}{assign var=id_product value=$product->id}{/if}
{block name='displayServiceProductListRowBottom'}
{hook h='displayServiceProductListRowBottom' id_product=$id_product id_service_product=$service_product['id_product']}
{/block}
</div>
</li>
{/if}
{/block}
{if !isset($product->id)}{assign var=id_product value=0}{else}{assign var=id_product value=$product->id}{/if}
{block name='displayServiceProductListRowBottom'}
{hook h='displayServiceProductListRowBottom' id_product=$id_product id_service_product=$service_product['id_product']}
{/block}
</div>
</li>
{/if}

View File

@@ -17,11 +17,11 @@
* @license LICENSE.txt
*}
{block name='service_products_list'}
{foreach $service_products as $service_product}
{if !($service_product@first && isset($init) && $init == true)}
<hr>
{/if}
{foreach $service_products as $service_product}
{if !($service_product@first && isset($init) && $init == true)}
<hr>
{/if}
{block name='service_products_list_row'}
{include file="{$tpl_dir}_partials/service-products-list-row.tpl" service_product=$service_product product=$product}
{/foreach}
{/block}
{/block}
{/foreach}

View File

@@ -17,49 +17,51 @@
* @license LICENSE.txt
*}
{block name='service_products'}
{if isset($service_products_exists) && $service_products_exists}
{block name='service_products_tabs'}
<ul class="nav nav-tabs product_description_tabs">
{if !$PS_SERVICE_PRODUCT_CATEGORY_FILTER}
<li class="active"><a href="#all_products" class="idTabHrefShort" data-toggle="tab">{l s='Services'}</a></li>
{else}
{foreach $service_products_by_category as $category}
<li {if $category@iteration == 1}class="active"{/if}><a class="idTabHrefShort" href="#category_{$category['id_category']}" data-toggle="tab">{$category['name']}</a></li>
{/foreach}
{/if}
</ul>
{/block}
{block name='service_products_tabs_content'}
<div class="card">
<div class="row">
<div class="col-sm-12 tab-content">
{if $PS_SERVICE_PRODUCT_CATEGORY_FILTER}
{foreach $service_products_by_category as $service_product_category}
<div class="tab-pane {if $service_product_category@iteration == 1}active{/if}" id="category_{$service_product_category['id_category']}">
<ul class="product-list">
{if isset($service_products_exists) && $service_products_exists}
{block name='service_products_tabs'}
<ul class="nav nav-tabs product_description_tabs">
{if !$PS_SERVICE_PRODUCT_CATEGORY_FILTER}
<li class="active"><a href="#all_products" class="idTabHrefShort" data-toggle="tab">{l s='Services'}</a></li>
{else}
{foreach $service_products_by_category as $category}
<li {if $category@iteration == 1}class="active"{/if}><a class="idTabHrefShort" href="#category_{$category['id_category']}" data-toggle="tab">{$category['name']}</a></li>
{/foreach}
{/if}
</ul>
{/block}
{block name='service_products_tabs_content'}
<div class="card">
<div class="row">
<div class="col-sm-12 tab-content">
{if $PS_SERVICE_PRODUCT_CATEGORY_FILTER}
{foreach $service_products_by_category as $service_product_category}
<div class="tab-pane {if $service_product_category@iteration == 1}active{/if}" id="category_{$service_product_category['id_category']}">
<ul class="product-list">
{block name='service_products_list'}
{include file="{$tpl_dir}_partials/service-products-list.tpl" service_products=$service_product_category['products'] group=$service_product_category['id_category'] init=true product=$product}
</ul>
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $service_product_category['num_products']}
<div class="show_more_btn_container">
<button class="btn btn-default get-service-products" data-id_category="{$service_product_category['id_category']}" data-page="2" data-num_total="{$service_product_category['num_products']}">{l s='Show More'}</button>
</div>
{/if}
</div>
{/foreach}
{else}
<ul class="product-list">
{/block}
</ul>
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $service_product_category['num_products']}
<div class="show_more_btn_container">
<button class="btn btn-default get-service-products" data-id_category="{$service_product_category['id_category']}" data-page="2" data-num_total="{$service_product_category['num_products']}">{l s='Show More'}</button>
</div>
{/if}
</div>
{/foreach}
{else}
<ul class="product-list">
{block name='service_products_list'}
{include file="{$tpl_dir}_partials/service-products-list.tpl" service_products=$service_products group='all' init=true product=$product}
</ul>
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $num_total_service_products}
<div class="show_more_btn_container">
<button class="btn btn-default get-service-products" data-page="2" data-num_total="{$num_total_service_products}">{l s='Show More'}</button>
</div>
{/if}
{/block}
</ul>
{if RoomTypeServiceProduct::WK_NUM_RESULTS < $num_total_service_products}
<div class="show_more_btn_container">
<button class="btn btn-default get-service-products" data-page="2" data-num_total="{$num_total_service_products}">{l s='Show More'}</button>
</div>
{/if}
</div>
{/if}
</div>
</div>
{/block}
{/if}
{/block}
</div>
{/block}
{/if}

View File

@@ -56,7 +56,9 @@
{l s='To add an address, please fill out the form below.'}
{/if}
</p>
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
<p class="required"><sup>*</sup>{l s='Required field'}</p>
{block name='address_form'}
<form action="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" method="post" class="std" id="add_address">

View File

@@ -33,8 +33,10 @@
{block name='authentication_heading'}
<h1 class="page-heading">{if !isset($email_create)}{l s='Authentication'}{else}{l s='Create an account'}{/if}</h1>
{/block}
{if isset($back) && preg_match("/^http/", $back)}{assign var='current_step' value='login'}{include file="$tpl_dir./order-steps.tpl"}{/if}
{include file="$tpl_dir./errors.tpl"}
{if isset($back) && preg_match("/^http/", $back)}{assign var='current_step' value='login'}{block name='order_steps'}{include file="$tpl_dir./order-steps.tpl"}{/block}{/if}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{assign var='stateExist' value=false}
{assign var="postCodeExist" value=false}
{assign var="dniExist" value=false}

View File

@@ -48,7 +48,9 @@
{/block}
<input type="hidden" id="max_order_date" name="max_order_date" value="{$max_order_date}">
<div class="row margin-lr-0" id="category_data_cont">
{include file="./_partials/room_type_list.tpl"}
{block name='room_type_list'}
{include file="./_partials/room_type_list.tpl"}
{/block}
</div>
</div>
</div>

View File

@@ -27,7 +27,9 @@
{if isset($smarty.get.confirm)}
<p class="alert alert-success">{l s='Your message has been successfully sent to our team.'}</p>
{/if}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
<div class="margin-top-50 htl-contact-page">
<div class="row">
<p class="contact-header col-sm-offset-2 col-sm-8">{l s='Contact Us'}</p>

View File

@@ -23,18 +23,16 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='errors'}
{if isset($errors) && $errors}
<div class="alert alert-danger">
<p>{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}</p>
<ol>
{foreach from=$errors key=k item=error}
<li>{$error}</li>
{/foreach}
</ol>
{if isset($smarty.server.HTTP_REFERER) && !strstr($request_uri, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $smarty.server.HTTP_REFERER) != $request_uri}
<p class="lnk"><a class="alert-link" href="{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}" title="{l s='Back'}">&laquo; {l s='Back'}</a></p>
{/if}
</div>
{/if}
{/block}
{if isset($errors) && $errors}
<div class="alert alert-danger">
<p>{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}</p>
<ol>
{foreach from=$errors key=k item=error}
<li>{$error}</li>
{/foreach}
</ol>
{if isset($smarty.server.HTTP_REFERER) && !strstr($request_uri, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $smarty.server.HTTP_REFERER) != $request_uri}
<p class="lnk"><a class="alert-link" href="{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}" title="{l s='Back'}">&laquo; {l s='Back'}</a></p>
{/if}
</div>
{/if}

View File

@@ -51,6 +51,8 @@
{/block}
</div><!-- #page -->
{/if}
{include file="$tpl_dir./global.tpl"}
{block name='global'}
{include file="$tpl_dir./global.tpl"}
{/block}
</body>
</html>

View File

@@ -23,64 +23,62 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='global'}
{strip}
{addJsDef isMobile=$mobile_device}
{addJsDef baseDir=$content_dir}
{addJsDef baseUri=$base_uri}
{addJsDef static_token=$static_token}
{addJsDef token=$token|htmlentities:$smarty.const.ENT_QUOTES}
{addJsDef priceDisplayPrecision=$priceDisplayPrecision*$currency->decimals}
{addJsDef priceDisplayMethod=$priceDisplay}
{addJsDef roundMode=$roundMode}
{addJsDef currency=$currency}
{addJsDef currencyRate=$currencyRate|floatval}
{addJsDef currencySign=$currency->sign|html_entity_decode:2:"UTF-8"}
{addJsDef currencyFormat=$currency->format|intval}
{addJsDef currencyBlank=$currency->blank|intval}
{addJsDef isLogged=$is_logged|intval}
{addJsDef isGuest=$is_guest|intval}
{addJsDef page_name=$page_name|escape:'html':'UTF-8'}
{addJsDef contentOnly=$content_only|boolval}
{if isset($cookie->id_lang)}
{addJsDef id_lang=$cookie->id_lang|intval}
{/if}
{addJsDef lang_iso=$lang_iso}
{addJsDef language_is_rtl=$language_is_rtl|boolval}
{addJsDefL name=FancyboxI18nClose}{l s='Close'}{/addJsDefL}
{addJsDefL name=FancyboxI18nNext}{l s='Next'}{/addJsDefL}
{addJsDefL name=FancyboxI18nPrev}{l s='Previous'}{/addJsDefL}
{addJsDefL name=RangePickerCheckin}{l s='Check-in'}{/addJsDefL}
{addJsDefL name=RangePickerCheckout}{l s='Check-out'}{/addJsDefL}
{addJsDef usingSecureMode=Tools::usingSecureMode()|boolval}
{addJsDef ajaxsearch=Configuration::get('PS_SEARCH_AJAX')|boolval}
{addJsDef instantsearch=Configuration::get('PS_INSTANT_SEARCH')|boolval}
{addJsDef quickView=$quick_view|boolval}
{addJsDef displayList=Configuration::get('PS_GRID_PRODUCT')|boolval}
{addJsDef highDPI=Configuration::get('PS_HIGHT_DPI')|boolval}
{* occupancy text *}
{addJsDef is_occupancy_wise_search=$is_occupancy_wise_search|boolval}
{addJsDef occupancy_required_for_booking=$occupancy_required_for_booking|boolval}
{addJsDef max_child_age=$max_child_age}
{addJsDef max_child_in_room=$max_child_in_room}
{strip}
{addJsDef isMobile=$mobile_device}
{addJsDef baseDir=$content_dir}
{addJsDef baseUri=$base_uri}
{addJsDef static_token=$static_token}
{addJsDef token=$token|htmlentities:$smarty.const.ENT_QUOTES}
{addJsDef priceDisplayPrecision=$priceDisplayPrecision*$currency->decimals}
{addJsDef priceDisplayMethod=$priceDisplay}
{addJsDef roundMode=$roundMode}
{addJsDef currency=$currency}
{addJsDef currencyRate=$currencyRate|floatval}
{addJsDef currencySign=$currency->sign|html_entity_decode:2:"UTF-8"}
{addJsDef currencyFormat=$currency->format|intval}
{addJsDef currencyBlank=$currency->blank|intval}
{addJsDef isLogged=$is_logged|intval}
{addJsDef isGuest=$is_guest|intval}
{addJsDef page_name=$page_name|escape:'html':'UTF-8'}
{addJsDef contentOnly=$content_only|boolval}
{if isset($cookie->id_lang)}
{addJsDef id_lang=$cookie->id_lang|intval}
{/if}
{addJsDef lang_iso=$lang_iso}
{addJsDef language_is_rtl=$language_is_rtl|boolval}
{addJsDefL name=FancyboxI18nClose}{l s='Close'}{/addJsDefL}
{addJsDefL name=FancyboxI18nNext}{l s='Next'}{/addJsDefL}
{addJsDefL name=FancyboxI18nPrev}{l s='Previous'}{/addJsDefL}
{addJsDefL name=RangePickerCheckin}{l s='Check-in'}{/addJsDefL}
{addJsDefL name=RangePickerCheckout}{l s='Check-out'}{/addJsDefL}
{addJsDef usingSecureMode=Tools::usingSecureMode()|boolval}
{addJsDef ajaxsearch=Configuration::get('PS_SEARCH_AJAX')|boolval}
{addJsDef instantsearch=Configuration::get('PS_INSTANT_SEARCH')|boolval}
{addJsDef quickView=$quick_view|boolval}
{addJsDef displayList=Configuration::get('PS_GRID_PRODUCT')|boolval}
{addJsDef highDPI=Configuration::get('PS_HIGHT_DPI')|boolval}
{* occupancy text *}
{addJsDef is_occupancy_wise_search=$is_occupancy_wise_search|boolval}
{addJsDef occupancy_required_for_booking=$occupancy_required_for_booking|boolval}
{addJsDef max_child_age=$max_child_age}
{addJsDef max_child_in_room=$max_child_in_room}
{addJsDefL name='max_occupancy_reached_txt'}{l s='Maximum room occupancy reached' js=1}{/addJsDefL}
{addJsDefL name='max_adults_txt'}{l s='Maximum adult occupancy reached' js=1}{/addJsDefL}
{addJsDefL name='max_children_txt'}{l s='Maximum children occupancy reached' js=1}{/addJsDefL}
{addJsDefL name='no_children_allowed_txt'}{l s='Only adults can be accommodated' js=1}{/addJsDefL}
{addJsDefL name='select_occupancy_txt'}{l s='Select Occupancy' js=1}{/addJsDefL}
{addJsDefL name='select_age_txt'}{l s='Select age' js=1}{/addJsDefL}
{addJsDefL name='under_1_age'}{l s='Under 1' js=1}{/addJsDefL}
{addJsDefL name='room_txt'}{l s='Room' js=1}{/addJsDefL}
{addJsDefL name='rooms_txt'}{l s='Rooms' js=1}{/addJsDefL}
{addJsDefL name='remove_txt'}{l s='Remove' js=1}{/addJsDefL}
{addJsDefL name='adult_txt'}{l s='Adult' js=1}{/addJsDefL}
{addJsDefL name='adults_txt'}{l s='Adults' js=1}{/addJsDefL}
{addJsDefL name='child_txt'}{l s='Child' js=1}{/addJsDefL}
{addJsDefL name='children_txt'}{l s='Children' js=1}{/addJsDefL}
{addJsDefL name='below_txt'}{l s='Below' js=1}{/addJsDefL}
{addJsDefL name='years_txt'}{l s='years' js=1}{/addJsDefL}
{addJsDefL name='all_children_txt'}{l s='All Children' js=1}{/addJsDefL}
{addJsDefL name='invalid_occupancy_txt'}{l s='Invalid occupancy(adults/children) found.' js=1}{/addJsDefL}
{/strip}
{/block}
{addJsDefL name='max_occupancy_reached_txt'}{l s='Maximum room occupancy reached' js=1}{/addJsDefL}
{addJsDefL name='max_adults_txt'}{l s='Maximum adult occupancy reached' js=1}{/addJsDefL}
{addJsDefL name='max_children_txt'}{l s='Maximum children occupancy reached' js=1}{/addJsDefL}
{addJsDefL name='no_children_allowed_txt'}{l s='Only adults can be accommodated' js=1}{/addJsDefL}
{addJsDefL name='select_occupancy_txt'}{l s='Select Occupancy' js=1}{/addJsDefL}
{addJsDefL name='select_age_txt'}{l s='Select age' js=1}{/addJsDefL}
{addJsDefL name='under_1_age'}{l s='Under 1' js=1}{/addJsDefL}
{addJsDefL name='room_txt'}{l s='Room' js=1}{/addJsDefL}
{addJsDefL name='rooms_txt'}{l s='Rooms' js=1}{/addJsDefL}
{addJsDefL name='remove_txt'}{l s='Remove' js=1}{/addJsDefL}
{addJsDefL name='adult_txt'}{l s='Adult' js=1}{/addJsDefL}
{addJsDefL name='adults_txt'}{l s='Adults' js=1}{/addJsDefL}
{addJsDefL name='child_txt'}{l s='Child' js=1}{/addJsDefL}
{addJsDefL name='children_txt'}{l s='Children' js=1}{/addJsDefL}
{addJsDefL name='below_txt'}{l s='Below' js=1}{/addJsDefL}
{addJsDefL name='years_txt'}{l s='years' js=1}{/addJsDefL}
{addJsDefL name='all_children_txt'}{l s='All Children' js=1}{/addJsDefL}
{addJsDefL name='invalid_occupancy_txt'}{l s='Invalid occupancy(adults/children) found.' js=1}{/addJsDefL}
{/strip}

View File

@@ -73,7 +73,9 @@
<div id="block-history">
<div id="block-order-detail" class="std">
{include file="./order-detail.tpl"}
{block name='order_detail_wrapper'}
{include file="./order-detail.tpl"}
{/block}
</div>
</div>
{/foreach}
@@ -90,8 +92,9 @@
</div>
<div class="card-body">
<form method="post" action="{$action|escape:'html':'UTF-8'}#guestToCustomer" class="std">
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
<p class="card-subtitle">
{l s='Transform your guest account into a customer account and enjoy:'}
</p>
@@ -122,7 +125,9 @@
</div>
</div>
{else}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{if isset($show_login_link) && $show_login_link}
<p><img src="{$img_dir}icon/userinfo.gif" alt="{l s='Information'}" class="icon" /><a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">{l s='Click here to log in to your customer account.'}</a><br /><br /></p>
{/if}

View File

@@ -138,7 +138,9 @@
<div class="columns-container">
<div id="columns" class="container">
{if $show_breadcrump}
{include file="$tpl_dir./breadcrumb.tpl"}
{block name='breadcrumb'}
{include file="$tpl_dir./breadcrumb.tpl"}
{/block}
{/if}
<div id="slider_row" class="row">
<div id="top_column" class="center_column col-xs-12 col-sm-12">{hook h="displayTopColumn"}</div>

View File

@@ -31,130 +31,132 @@
<span class="navigation-pipe">{$navigationPipe}</span>
<span class="navigation_page">{l s='Bookings'}</span>
{/capture}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{block name='history_heading'}
<h1 class="page-heading bottom-indent">{l s='Bookings'}</h1>
{/block}
<p class="info-title">{l s='Here are the orders you\'ve placed since your account was created.'}</p>
{if $slowValidation}
<p class="alert alert-warning">{l s='If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'}</p>
{/if}
<div class="block-center" id="block-history">
{if $orders && count($orders)}
{block name='bookings_list'}
<table id="order-list" class="table table-bordered footab">
<thead>
<tr>
<th class="first_item" data-sort-ignore="true">{l s='Order reference'}</th>
<th class="item">{l s='Date'}</th>
<th data-hide="phone" class="item">{l s='Total price'}</th>
{if isset($adv_active)}
<th data-hide="phone" class="item">{l s='Due Price'}</th>
{/if}
<th data-sort-ignore="true" data-hide="phone,tablet" class="item">{l s='Payment'}</th>
<th class="item">{l s='Status'}</th>
{if $slowValidation}
<p class="alert alert-warning">{l s='If you have just placed an order, it may take a few minutes for it to be validated. Please refresh this page if your order is missing.'}</p>
{/if}
<div class="block-center" id="block-history">
{if $orders && count($orders)}
{block name='bookings_list'}
<table id="order-list" class="table table-bordered footab">
<thead>
<tr>
<th class="first_item" data-sort-ignore="true">{l s='Order reference'}</th>
<th class="item">{l s='Date'}</th>
<th data-hide="phone" class="item">{l s='Total price'}</th>
{if isset($adv_active)}
<th data-hide="phone" class="item">{l s='Due Price'}</th>
{/if}
<th data-sort-ignore="true" data-hide="phone,tablet" class="item">{l s='Payment'}</th>
<th class="item">{l s='Status'}</th>
<th data-sort-ignore="true" data-hide="phone,tablet" class="item">{l s='Invoice'}</th>
<th data-sort-ignore="true" data-hide="phone,tablet" class="last_item">&nbsp;</th>
{block name='displayHistoryTableHeading'}
{hook h='displayHistoryTableHeading'}
{/block}
</tr>
</thead>
<tbody>
{foreach from=$orders item=order name=myLoop}
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
{block name='booking_reference'}
<td class="history_link bold">
{* By webkul- no downloadable products *}
{* {if isset($order.invoice) && $order.invoice && isset($order.virtual) && $order.virtual}
<img class="icon" src="{$img_dir}icon/download_product.gif" alt="{l s='Products to download'}" title="{l s='Products to download'}" />
{/if} *}
<a class="color-myaccount" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">
{Order::getUniqReferenceOf($order.id_order)}
</a>
</td>
{/block}
{block name='booking_date'}
<td data-value="{$order.date_add|regex_replace:"/[\-\:\ ]/":""}" class="history_date bold">
{dateFormat date=$order.date_add full=0}
</td>
{/block}
{block name='booking_total_price'}
<td class="history_price" data-value="{$order.total_paid}">
<span class="price">
{displayPrice price=$order.total_paid currency=$order.id_currency no_utf8=false convert=false}
</span>
</td>
{/block}
{block name='booking_due_price'}
{if isset($adv_active)}
<td class="history_price" data-value="{$order.due_amount}">
<span class="price">
{displayPrice price=$order.due_amount currency=$order.id_currency no_utf8=false convert=false}
</span>
</td>
{/if}
{/block}
{block name='booking_method'}
<td class="history_method">{$order.payment|escape:'html':'UTF-8'}</td>
{/block}
{block name='booking_state'}
<td {if isset($order.order_state)} data-value="{$order.id_order_state}"{/if} class="history_state">
{if isset($order.order_state)}
<span class="label{if isset($order.order_state_color) && Tools::getBrightness($order.order_state_color) > 128} dark{/if}"{if isset($order.order_state_color) && $order.order_state_color} style="background-color:{$order.order_state_color|escape:'html':'UTF-8'}; border-color:{$order.order_state_color|escape:'html':'UTF-8'};"{/if}>
{if $order.current_state|in_array:$overbooking_order_states}
{l s='Order Not Confirmed'}
{else}
{$order.order_state|escape:'html':'UTF-8'}
{/if}
</span>
{/if}
</td>
{/block}
{block name='booking_invoice'}
<td class="history_invoice">
{if (isset($order.invoice) && $order.invoice && isset($order.invoice_number) && $order.invoice_number) && isset($invoiceAllowed) && $invoiceAllowed == true}
<a class="link-button" href="{$link->getPageLink('pdf-invoice', true, NULL, "id_order={$order.id_order}")|escape:'html':'UTF-8'}" title="{l s='Invoice'}" target="_blank">
<i class="icon-file-text large"></i>{l s='PDF'}
</a>
{else}
-
{/if}
</td>
{/block}
{block name='booking_detail'}
<td class="history_detail">
<a class="btn btn-default button button-small" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">
<span>
{l s='Details'}<i class="icon-chevron-right right"></i>
</span>
</a>
<!-- {if isset($opc) && $opc}
<a class="link-button" href="{$link->getPageLink('order-opc', true, NULL, "submitReorder&id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}" title="{l s='Reorder'}">
{else}
<a class="link-button" href="{$link->getPageLink('order', true, NULL, "submitReorder&id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}" title="{l s='Reorder'}">
{/if}
{if isset($reorderingAllowed) && $reorderingAllowed}
<i class="icon-refresh"></i>{l s='Reorder'}
{/if}
</a> --><!-- by webkul not to show reorder tab -->
</td>
{/block}
{block name='displayHistoryTableRow'}
{hook h='displayHistoryTableRow' id_order=$order.id_order}
<th data-sort-ignore="true" data-hide="phone,tablet" class="item">{l s='Invoice'}</th>
<th data-sort-ignore="true" data-hide="phone,tablet" class="last_item">&nbsp;</th>
{block name='displayHistoryTableHeading'}
{hook h='displayHistoryTableHeading'}
{/block}
</tr>
{/foreach}
</tbody>
</table>
{/block}
<div id="block-order-detail" class="unvisible">&nbsp;</div>
{else}
<p class="alert alert-warning">{l s='You have not placed any orders.'}</p>
{/if}
</div>
</thead>
<tbody>
{foreach from=$orders item=order name=myLoop}
<tr class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if} {if $smarty.foreach.myLoop.index % 2}alternate_item{/if}">
{block name='booking_reference'}
<td class="history_link bold">
{* By webkul- no downloadable products *}
{* {if isset($order.invoice) && $order.invoice && isset($order.virtual) && $order.virtual}
<img class="icon" src="{$img_dir}icon/download_product.gif" alt="{l s='Products to download'}" title="{l s='Products to download'}" />
{/if} *}
<a class="color-myaccount" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">
{Order::getUniqReferenceOf($order.id_order)}
</a>
</td>
{/block}
{block name='booking_date'}
<td data-value="{$order.date_add|regex_replace:"/[\-\:\ ]/":""}" class="history_date bold">
{dateFormat date=$order.date_add full=0}
</td>
{/block}
{block name='booking_total_price'}
<td class="history_price" data-value="{$order.total_paid}">
<span class="price">
{displayPrice price=$order.total_paid currency=$order.id_currency no_utf8=false convert=false}
</span>
</td>
{/block}
{block name='booking_due_price'}
{if isset($adv_active)}
<td class="history_price" data-value="{$order.due_amount}">
<span class="price">
{displayPrice price=$order.due_amount currency=$order.id_currency no_utf8=false convert=false}
</span>
</td>
{/if}
{/block}
{block name='booking_method'}
<td class="history_method">{$order.payment|escape:'html':'UTF-8'}</td>
{/block}
{block name='booking_state'}
<td {if isset($order.order_state)} data-value="{$order.id_order_state}"{/if} class="history_state">
{if isset($order.order_state)}
<span class="label{if isset($order.order_state_color) && Tools::getBrightness($order.order_state_color) > 128} dark{/if}"{if isset($order.order_state_color) && $order.order_state_color} style="background-color:{$order.order_state_color|escape:'html':'UTF-8'}; border-color:{$order.order_state_color|escape:'html':'UTF-8'};"{/if}>
{if $order.current_state|in_array:$overbooking_order_states}
{l s='Order Not Confirmed'}
{else}
{$order.order_state|escape:'html':'UTF-8'}
{/if}
</span>
{/if}
</td>
{/block}
{block name='booking_invoice'}
<td class="history_invoice">
{if (isset($order.invoice) && $order.invoice && isset($order.invoice_number) && $order.invoice_number) && isset($invoiceAllowed) && $invoiceAllowed == true}
<a class="link-button" href="{$link->getPageLink('pdf-invoice', true, NULL, "id_order={$order.id_order}")|escape:'html':'UTF-8'}" title="{l s='Invoice'}" target="_blank">
<i class="icon-file-text large"></i>{l s='PDF'}
</a>
{else}
-
{/if}
</td>
{/block}
{block name='booking_detail'}
<td class="history_detail">
<a class="btn btn-default button button-small" href="{$link->getPageLink('order-detail', true, NULL, "id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}">
<span>
{l s='Details'}<i class="icon-chevron-right right"></i>
</span>
</a>
<!-- {if isset($opc) && $opc}
<a class="link-button" href="{$link->getPageLink('order-opc', true, NULL, "submitReorder&id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}" title="{l s='Reorder'}">
{else}
<a class="link-button" href="{$link->getPageLink('order', true, NULL, "submitReorder&id_order={$order.id_order|intval}")|escape:'html':'UTF-8'}" title="{l s='Reorder'}">
{/if}
{if isset($reorderingAllowed) && $reorderingAllowed}
<i class="icon-refresh"></i>{l s='Reorder'}
{/if}
</a> --><!-- by webkul not to show reorder tab -->
</td>
{/block}
{block name='displayHistoryTableRow'}
{hook h='displayHistoryTableRow' id_order=$order.id_order}
{/block}
</tr>
{/foreach}
</tbody>
</table>
{/block}
<div id="block-order-detail" class="unvisible">&nbsp;</div>
{else}
<p class="alert alert-warning">{l s='You have not placed any orders.'}</p>
{/if}
</div>
{block name='history_footer_links'}
<ul class="footer_links clearfix">
<li>

View File

@@ -41,7 +41,9 @@
{l s='Personal information'}
</h1>
{/block}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{if isset($confirmation) && $confirmation}
<p class="alert alert-success">

View File

@@ -30,10 +30,13 @@
{/block}
{assign var='current_step' value='payment'}
{include file="$tpl_dir./order-steps.tpl"}
{include file="$tpl_dir./errors.tpl"}
{block name='order_steps'}
{include file="$tpl_dir./order-steps.tpl"}
{/block}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{block name='displayOrderConfirmation'}
{$HOOK_ORDER_CONFIRMATION}
{/block}

View File

@@ -48,7 +48,9 @@
</h1>
{/block}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{if isset($order) && $order}
{block name='order_detail_subheading'}
@@ -230,7 +232,9 @@
<div class="rooms-list">
{foreach from=$cart_htl_data key=data_k item=data_v}
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
{include file='./_partials/order-room-detail.tpl'}
{block name='order_room_detail'}
{include file='./_partials/order-room-detail.tpl'}
{/block}
{/foreach}
{/foreach}
@@ -484,7 +488,9 @@
<div class="card-body">
<div class="messages-list card-text">
{foreach from=$messages item=message}
{include file='./_partials/order-message.tpl'}
{block name='order_message'}
{include file='./_partials/order-message.tpl'}
{/block}
{/foreach}
</div>
</div>
@@ -1018,5 +1024,4 @@
{addJsDefL name=cancel_booking_txt}{l s='Cancel Bookings' js=1}{/addJsDefL}
{/strip}
{/block}
{/block}

View File

@@ -1,51 +1,49 @@
{block name='order_opc_advanced_payment_option'}
{if isset($advance_payment_active)}
<div class="opc_advance_payment_block">
<p class="block-small-header">{l s='PAYMENT TYPES'}</p>
<div class="row adv_payment_type_form">
{block name='order_opc_advanced_payment_option_form'}
<form method="POST" action="{$link->getPageLink('order-opc')|escape:'html':'UTF-8'}" id="advanced-payment">
<div class="col-sm-12 col-xs-12">
<label>
<input type="radio" value="1" name="payment_type" class="payment_type" {if !isset($is_advance_payment)}checked="checked"{/if}>
<span>{l s='Full Payment'}</span>
</label>
</div>
<div class="col-sm-12 col-xs-12">
<label>
<input type="radio" value="2" name="payment_type" class="payment_type" {if isset($is_advance_payment)}checked="checked"{/if}>
<span>{l s='Partial Payment'}</span>
</label>
{if isset($advance_payment_active)}
<div class="opc_advance_payment_block">
<p class="block-small-header">{l s='PAYMENT TYPES'}</p>
<div class="row adv_payment_type_form">
{block name='order_opc_advanced_payment_option_form'}
<form method="POST" action="{$link->getPageLink('order-opc')|escape:'html':'UTF-8'}" id="advanced-payment">
<div class="col-sm-12 col-xs-12">
<label>
<input type="radio" value="1" name="payment_type" class="payment_type" {if !isset($is_advance_payment)}checked="checked"{/if}>
<span>{l s='Full Payment'}</span>
</label>
</div>
<div class="col-sm-12 col-xs-12">
<label>
<input type="radio" value="2" name="payment_type" class="payment_type" {if isset($is_advance_payment)}checked="checked"{/if}>
<span>{l s='Partial Payment'}</span>
</label>
<div class="row" id="partial_data">
<div class="row" id="partial_data">
<div class="row margin-lr-0">
<div class="col-xs-12 partial_subcont">
<span class="partial_txt">{l s='Advance Payment Amount'} - </span>
<span class="partial_min_cost">{displayPrice price=$advPaymentAmount}</span>
</div>
</div>
{if isset($is_advance_payment)}
<div class="row margin-lr-0">
<div class="col-xs-12 partial_subcont">
<span class="partial_txt">{l s='Advance Payment Amount'} - </span>
<span class="partial_min_cost">{displayPrice price=$advPaymentAmount}</span>
<span class="partial_txt">{l s='Due Amount'} - </span>
<span class="partial_min_cost">{displayPrice price=$dueAmount}</span>
</div>
</div>
{if isset($is_advance_payment)}
<div class="row margin-lr-0">
<div class="col-xs-12 partial_subcont">
<span class="partial_txt">{l s='Due Amount'} - </span>
<span class="partial_min_cost">{displayPrice price=$dueAmount}</span>
</div>
</div>
{/if}
</div>
{/if}
</div>
<div class="col-sm-12 col-xs-12 margin-top-10">
{block name='order_opc_advanced_payment_option_submit'}
<button class="opc-button-small opc-btn-primary" name="submitAdvPayment" type="submit">
<span>{l s='OK'}</span>
</button>
{/block}
</div>
</form>
{/block}
</div>
</div>
<div class="col-sm-12 col-xs-12 margin-top-10">
{block name='order_opc_advanced_payment_option_submit'}
<button class="opc-button-small opc-btn-primary" name="submitAdvPayment" type="submit">
<span>{l s='OK'}</span>
</button>
{/block}
</div>
</form>
{/block}
</div>
{/if}
{/block}
</div>
{/if}

View File

@@ -37,12 +37,16 @@
{else}
{if $productNumber}
<!-- Payment -->
{include file="$tpl_dir./order-payment-advanced.tpl"}
{block name='order_payment_advanced'}
{include file="$tpl_dir./order-payment-advanced.tpl"}
{/block}
<!-- END Payment -->
{else}
{capture name=path}{l s='Your shopping cart'}{/capture}
<h2 class="page-heading">{l s='Your shopping cart'}</h2>
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
{/if}
{block name='order_opc_advanced_js_vars'}

View File

@@ -17,317 +17,314 @@
* @license LICENSE.txt
*}
{block name='order_opc_edit_guest_info'}
<div id="opc_new_account" class="opc-main-block">
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
{block name='order_opc_edit_guest_info_login_form'}
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
<fieldset>
<div id="login_form_content" style="display:none;">
<!-- Error return block -->
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<p class="form-group">
<label for="login_email">{l s='Email address'}</label>
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
</p>
<p class="form-group">
<label for="login_passwd">{l s='Password'}</label>
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
</p>
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
<div style="clear:both"></div>
{block name='order_opc_edit_guest_info_login_submit'}
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
</p>
{/block}
</div>
</fieldset>
</form>
{/block}
{block name='order_opc_edit_guest_info_new_account_form'}
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<div id="opc_account_form" class="unvisible">
{block name='displayCustomerAccountFormTop'}
{$HOOK_CREATE_ACCOUNT_TOP}
{/block}
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully.'}
</div>
<div id="opc_new_account" class="opc-main-block">
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
{block name='order_opc_edit_guest_info_login_form'}
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
<fieldset>
<div id="login_form_content" style="display:none;">
<!-- Error return block -->
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<!-- Account -->
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<p class="required"><sup>*</sup>{l s='Required field'}</p>
<p class="form-group">
<label for="login_email">{l s='Email address'}</label>
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
</p>
<p class="form-group">
<label for="login_passwd">{l s='Password'}</label>
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
</p>
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
<div style="clear:both"></div>
{block name='order_opc_edit_guest_info_login_submit'}
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
</p>
{/block}
</div>
</fieldset>
</form>
{/block}
{block name='order_opc_edit_guest_info_new_account_form'}
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<div id="opc_account_form" class="unvisible">
{block name='displayCustomerAccountFormTop'}
{$HOOK_CREATE_ACCOUNT_TOP}
{/block}
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully.'}
</div>
<!-- Error return block -->
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<!-- Account -->
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<p class="required"><sup>*</sup>{l s='Required field'}</p>
<div class="row">
<div class="required clearfix gender-line col-sm-2">
<label>{l s='Social title'}</label>
<select name="id_gender" id="id_gender">
{foreach from=$genders key=k item=gender}
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
{/foreach}
</select>
</div>
<div class="required form-group col-sm-5">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</div>
<div class="required form-group col-sm-5">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</div>
</div>
<div class="row">
<div class="required text form-group col-sm-6">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
</div>
</div>
<div class="row">
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="phone">{l s='Phone Number'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="transform-to-customer-block">
<p class="strikethrough"><span>{l s='OR'}</span></p>
<p class="text-secondary">{l s='Create a customer account using above details.'}</p>
<div class="row">
<div class="required password form-group col-sm-12">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
<span class="form_info">{l s='(five characters min.)'}</span>
</div>
</div>
</div>
</div>
</div>
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
<div class="row">
<div class="select form-group date-select col-sm-12">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select id="days" name="days">
<option value="">-</option>
{foreach from=$days item=day}
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="months" name="months">
<option value="">-</option>
{foreach from=$months key=k item=month}
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="years" name="years">
<option value="">-</option>
{foreach from=$years item=year}
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
{l s='Sign up for our newsletter!'}</label>
{if array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
{l s='Receive special offers from our partners!'}</label>
{if array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
{$stateExist = false}
{$postCodeExist = false}
{$dniExist = false}
<div class="row">
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "firstname"}
<div class="required text form-group col-sm-6">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required text form-group col-sm-6">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required text form-group col-sm-6">
<label for="address1">{l s='Address'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
</div>
{elseif $field_name eq "city"}
<div class="required text form-group col-sm-6">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode text form-group col-sm-6">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{elseif $field_name eq "company"}
<div class="text form-group col-sm-6">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
</div>
{elseif $field_name eq "vat_number"}
<div id="vat_number_block" style="display:none;">
<div class="form-group col-sm-6">
<label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control" name="vat_number" id="vat_number" value="{if isset($guestInformations) && isset($guestInformations.vat_number) && $guestInformations.vat_number}{$guestInformations.vat_number}{/if}" />
</div>
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required select form-group col-sm-6">
<label for="id_country">{l s='Country'} <sup>*</sup></label>
<select name="id_country" id="id_country">
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state form-group col-sm-6" style="display:none;">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state">
<option value="">-</option>
</select>
</div>
{/if}
<div class="row">
<div class="required clearfix gender-line col-sm-2">
<label>{l s='Social title'}</label>
<select name="id_gender" id="id_gender">
{foreach from=$genders key=k item=gender}
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
{/foreach}
{if !$postCodeExist}
<div class="required postcode form-group col-sm-6 unvisible">
</select>
</div>
<div class="required form-group col-sm-5">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</div>
<div class="required form-group col-sm-5">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</div>
</div>
<div class="row">
<div class="required text form-group col-sm-6">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
</div>
</div>
<div class="row">
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="phone">{l s='Phone Number'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="transform-to-customer-block">
<p class="strikethrough"><span>{l s='OR'}</span></p>
<p class="text-secondary">{l s='Create a customer account using above details.'}</p>
<div class="row">
<div class="required password form-group col-sm-12">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
<span class="form_info">{l s='(five characters min.)'}</span>
</div>
</div>
</div>
</div>
</div>
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
<div class="row">
<div class="select form-group date-select col-sm-12">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select id="days" name="days">
<option value="">-</option>
{foreach from=$days item=day}
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="months" name="months">
<option value="">-</option>
{foreach from=$months key=k item=month}
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="years" name="years">
<option value="">-</option>
{foreach from=$years item=year}
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
{l s='Sign up for our newsletter!'}</label>
{if array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
{l s='Receive special offers from our partners!'}</label>
{if array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
{$stateExist = false}
{$postCodeExist = false}
{$dniExist = false}
<div class="row">
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "firstname"}
<div class="required text form-group col-sm-6">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required text form-group col-sm-6">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required text form-group col-sm-6">
<label for="address1">{l s='Address'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
</div>
{elseif $field_name eq "city"}
<div class="required text form-group col-sm-6">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode text form-group col-sm-6">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state form-group col-sm-6 unvisible">
{elseif $field_name eq "company"}
<div class="text form-group col-sm-6">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
</div>
{elseif $field_name eq "vat_number"}
<div id="vat_number_block" style="display:none;">
<div class="form-group col-sm-6">
<label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control" name="vat_number" id="vat_number" value="{if isset($guestInformations) && isset($guestInformations.vat_number) && $guestInformations.vat_number}{$guestInformations.vat_number}{/if}" />
</div>
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required select form-group col-sm-6">
<label for="id_country">{l s='Country'} <sup>*</sup></label>
<select name="id_country" id="id_country">
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state form-group col-sm-6" style="display:none;">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/foreach}
{if !$postCodeExist}
<div class="required postcode form-group col-sm-6 unvisible">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state form-group col-sm-6 unvisible">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param col-sm-6">
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
</div>
<div class="form-group is_customer_param col-sm-6">
<label for="other">{l s='Additional information'}</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
</div>
</div>
<div class="row">
<div class="col-sm-12">
{if isset($one_phone_at_least) && $one_phone_at_least}
{assign var="atLeastOneExists" value=true}
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
{/if}
<div class="form-group is_customer_param col-sm-6">
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
</div>
<div class="form-group is_customer_param col-sm-6">
<label for="other">{l s='Additional information'}</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
</div>
</div>
<div class="row">
<div class="col-sm-12">
{if isset($one_phone_at_least) && $one_phone_at_least}
{assign var="atLeastOneExists" value=true}
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
{/if}
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
<p class="required opc-required">
<sup>*</sup>{l s='Required field'}
</p>
</div>
<p class="required opc-required">
<sup>*</sup>{l s='Required field'}
</p>
</div>
{/if}
{block name='displayCustomerAccountForm'}
{$HOOK_CREATE_ACCOUNT_FORM}
{/block}
{block name='order_opc_edit_guest_info_account_submit'}
<div class="submit opc-add-save clearfix">
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
</div>
{/block}
<!-- END Account -->
</div>
</form>
{/block}
</div>
{block name='order_opc_edit_guest_info_js_vars'}
{strip}
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
{addJsDef idSelectedState=$guestInformations.id_state|intval}
{else}
{addJsDef idSelectedState=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
{else}
{addJsDef idSelectedStateInvoice=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
{else}
{addJsDef idSelectedCountry=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
{else}
{addJsDef idSelectedCountryInvoice=false}
{/if}
{/strip}
</div>
{/if}
{block name='displayCustomerAccountForm'}
{$HOOK_CREATE_ACCOUNT_FORM}
{/block}
{block name='order_opc_edit_guest_info_account_submit'}
<div class="submit opc-add-save clearfix">
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
</div>
{/block}
<!-- END Account -->
</div>
</form>
{/block}
</div>
{block name='order_opc_edit_guest_info_js_vars'}
{strip}
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
{addJsDef idSelectedState=$guestInformations.id_state|intval}
{else}
{addJsDef idSelectedState=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
{else}
{addJsDef idSelectedStateInvoice=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
{else}
{addJsDef idSelectedCountry=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
{else}
{addJsDef idSelectedCountryInvoice=false}
{/if}
{/strip}
{/block}

View File

@@ -1,424 +1,422 @@
{block name='order_opc_new_account_advanced'}
<div id="opc_new_account" class="opc-main-block">
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
<h2>{l s='Account'}</h2>
{block name='order_opc_new_account_advanced_login_form'}
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">
<fieldset>
<h3 class="page-subheading">{l s='Already registered?'}</h3>
<p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">&raquo; {l s='Click here'}</a></p>
<div id="login_form_content" style="display:none;">
<!-- Error return block -->
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<p class="form-group">
<label for="login_email">{l s='Email address'}</label>
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
<div id="opc_new_account" class="opc-main-block">
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
<h2>{l s='Account'}</h2>
{block name='order_opc_new_account_advanced_login_form'}
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">
<fieldset>
<h3 class="page-subheading">{l s='Already registered?'}</h3>
<p><a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock">&raquo; {l s='Click here'}</a></p>
<div id="login_form_content" style="display:none;">
<!-- Error return block -->
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<p class="form-group">
<label for="login_email">{l s='Email address'}</label>
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
</p>
<p class="form-group">
<label for="login_passwd">{l s='Password'}</label>
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
</p>
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a>
{block name='order_opc_new_account_advanced_login_submit'}
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
<button type="submit" id="SubmitLogin" name="SubmitLogin" data-adv-api="1" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
</p>
<p class="form-group">
<label for="login_passwd">{l s='Password'}</label>
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
</p>
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password">{l s='Forgot your password?'}</a>
{block name='order_opc_new_account_advanced_login_submit'}
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
<button type="submit" id="SubmitLogin" name="SubmitLogin" data-adv-api="1" class="button btn btn-default button-medium"><span><i class="icon-lock left"></i>{l s='Sign in'}</span></button>
{/block}
</div>
</fieldset>
</form>
{/block}
{block name='order_opc_new_account_advanced_new_account_form'}
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<fieldset>
<div class="box">
<h3 id="new_account_title" class="page-subheading">{l s='New Customer'}</h3>
<div id="opc_account_choice" class="row">
<div class="col-xs-12 col-md-6">
<p class="title_block">{l s='Instant Checkout'}</p>
<p class="opc-button">
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
</p>
{/block}
</div>
<div class="col-xs-12 col-md-6">
<p class="title_block">{l s='Create your account today and enjoy:'}</p>
<ul class="bullet">
<li>- {l s='Personalized and secure access'}</li>
<li>- {l s='A fast and easy check out process'}</li>
<li>- {l s='Separate billing and shipping addresses'}</li>
</ul>
<p class="opc-button">
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button>
</p>
</div>
</div>
</fieldset>
</form>
{/block}
{block name='order_opc_new_account_advanced_new_account_form'}
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<fieldset>
<div class="box">
<h3 id="new_account_title" class="page-subheading">{l s='New Customer'}</h3>
<div id="opc_account_choice" class="row">
<div class="col-xs-12 col-md-6">
<p class="title_block">{l s='Instant Checkout'}</p>
<p class="opc-button">
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
</p>
</div>
<div class="col-xs-12 col-md-6">
<p class="title_block">{l s='Create your account today and enjoy:'}</p>
<ul class="bullet">
<li>- {l s='Personalized and secure access'}</li>
<li>- {l s='A fast and easy check out process'}</li>
<li>- {l s='Separate billing and shipping addresses'}</li>
</ul>
<p class="opc-button">
<button type="submit" class="btn btn-default button button-medium exclusive" id="opc_createAccount"><span><i class="icon-user left"></i>{l s='Create an account'}</span></button>
</p>
<div id="opc_account_form" class="unvisible">
{block name='displayCustomerAccountFormTop'}
{$HOOK_CREATE_ACCOUNT_TOP}
{/block}
<!-- Error return block -->
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<!-- Account -->
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<div class="required text form-group">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
</div>
<div class="required password is_customer_param form-group">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
<span class="form_info">{l s='(five characters min.)'}</span>
</div>
<div class="required clearfix gender-line">
<label>{l s='Social title'}</label>
{foreach from=$genders key=k item=gender}
<div class="radio-inline">
<label for="id_gender{$gender->id_gender}" class="top">
<input type="radio" name="id_gender" id="id_gender{$gender->id_gender}" value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} checked="checked"{/if} />
{$gender->name}</label></div>
{/foreach}
</div>
<div class="required form-group">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</div>
<div class="required form-group">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</div>
<div class="select form-group date-select">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select id="days" name="days" class="form-control">
<option value="">-</option>
{foreach from=$days item=day}
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
{*
{l s='January'}
{l s='February'}
{l s='March'}
{l s='April'}
{l s='May'}
{l s='June'}
{l s='July'}
{l s='August'}
{l s='September'}
{l s='October'}
{l s='November'}
{l s='December'}
*}
</div>
<div class="col-xs-4">
<select id="months" name="months" class="form-control">
<option value="">-</option>
{foreach from=$months key=k item=month}
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="years" name="years" class="form-control">
<option value="">-</option>
{foreach from=$years item=year}
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
<div id="opc_account_form" class="unvisible">
{block name='displayCustomerAccountFormTop'}
{$HOOK_CREATE_ACCOUNT_TOP}
{/block}
<!-- Error return block -->
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<!-- Account -->
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<div class="required text form-group">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
</div>
<div class="required password is_customer_param form-group">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
<span class="form_info">{l s='(five characters min.)'}</span>
</div>
<div class="required clearfix gender-line">
<label>{l s='Social title'}</label>
{foreach from=$genders key=k item=gender}
<div class="radio-inline">
<label for="id_gender{$gender->id_gender}" class="top">
<input type="radio" name="id_gender" id="id_gender{$gender->id_gender}" value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} checked="checked"{/if} />
{$gender->name}</label></div>
{/foreach}
</div>
<div class="required form-group">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</div>
<div class="required form-group">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</div>
<div class="select form-group date-select">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select id="days" name="days" class="form-control">
<option value="">-</option>
{foreach from=$days item=day}
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
{*
{l s='January'}
{l s='February'}
{l s='March'}
{l s='April'}
{l s='May'}
{l s='June'}
{l s='July'}
{l s='August'}
{l s='September'}
{l s='October'}
{l s='November'}
{l s='December'}
*}
</div>
<div class="col-xs-4">
<select id="months" name="months" class="form-control">
<option value="">-</option>
{foreach from=$months key=k item=month}
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="years" name="years" class="form-control">
<option value="">-</option>
{foreach from=$years item=year}
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
{l s='Sign up for our newsletter!'}</label>
{if array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
{l s='Receive special offers from our partners!'}</label>
{if array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
<h3 class="page-subheading top-indent">{l s='Delivery address'}</h3>
{$stateExist = false}
{$postCodeExist = false}
{$dniExist = false}
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "company"}
<div class="text form-group">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required dni form-group">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "firstname"}
<div class="required text form-group">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required text form-group">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required text form-group">
<label for="address1">{l s='Address'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group">
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode text form-group">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{elseif $field_name eq "city"}
<div class="required text form-group">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required select form-group">
<label for="id_country">{l s='Country'} <sup>*</sup></label>
<select name="id_country" id="id_country" class="form-control">
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state form-group" style="display:none;">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</div>
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
{l s='Sign up for our newsletter!'}</label>
{if array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
{/foreach}
{if !$postCodeExist}
<div class="required postcode form-group unvisible">
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
{l s='Receive special offers from our partners!'}</label>
{if array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
<h3 class="page-subheading top-indent">{l s='Delivery address'}</h3>
{$stateExist = false}
{$postCodeExist = false}
{$dniExist = false}
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "company"}
<div class="text form-group">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required dni form-group">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "firstname"}
<div class="required text form-group">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required text form-group">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required text form-group">
<label for="address1">{l s='Address'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group">
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode text form-group">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state form-group unvisible">
{elseif $field_name eq "city"}
<div class="required text form-group">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required select form-group">
<label for="id_country">{l s='Country'} <sup>*</sup></label>
<select name="id_country" id="id_country" class="form-control">
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state form-group" style="display:none;">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required dni form-group">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param">
<label for="other">{l s='Additional information'}</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
{/foreach}
{if !$postCodeExist}
<div class="required postcode form-group unvisible">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{if isset($one_phone_at_least) && $one_phone_at_least}
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
{/if}
<div class="form-group is_customer_param">
<label for="phone">{l s='Home phone'}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
{/if}
{if !$stateExist}
<div class="required id_state form-group unvisible">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
{/if}
{if !$dniExist}
<div class="required dni form-group">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
{/if}
<div class="form-group is_customer_param">
<label for="other">{l s='Additional information'}</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
</div>
{if isset($one_phone_at_least) && $one_phone_at_least}
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
{/if}
<div class="form-group is_customer_param">
<label for="phone">{l s='Home phone'}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
</div>
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
<div class="checkbox">
<label for="invoice_address">
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
{l s='Please use another address for invoice'}</label>
</div>
<div class="checkbox">
<label for="invoice_address">
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
{l s='Please use another address for invoice'}</label>
</div>
<div id="opc_invoice_address" class="is_customer_param">
{assign var=stateExist value=false}
{assign var=postCodeExist value=false}
{assign var='dniExist' value=false}
<h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>
{foreach from=$inv_all_fields item=field_name}
{if $field_name eq "company"}
<div class="form-group">
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required form-group dni_invoice">
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "firstname"}
<div class="required form-group">
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required form-group">
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required form-group">
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode_invoice form-group">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
</div>
{elseif $field_name eq "city"}
<div class="required form-group">
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required form-group">
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
<option value="">-</option>
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state_invoice form-group" style="display:none;">
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
{/if}
{/foreach}
{if !$postCodeExist}
<div class="required postcode_invoice form-group unvisible">
<div id="opc_invoice_address" class="is_customer_param">
{assign var=stateExist value=false}
{assign var=postCodeExist value=false}
{assign var='dniExist' value=false}
<h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>
{foreach from=$inv_all_fields item=field_name}
{if $field_name eq "company"}
<div class="form-group">
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required form-group dni_invoice">
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "firstname"}
<div class="required form-group">
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required form-group">
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required form-group">
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode_invoice form-group">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state_invoice form-group unvisible">
{elseif $field_name eq "city"}
<div class="required form-group">
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required form-group">
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
<option value="">-</option>
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state_invoice form-group" style="display:none;">
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required form-group dni_invoice">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param">
<label for="other_invoice">{l s='Additional information'}</label>
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
{/foreach}
{if !$postCodeExist}
<div class="required postcode_invoice form-group unvisible">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
</div>
{if isset($one_phone_at_least) && $one_phone_at_least}
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
{/if}
<div class="form-group is_customer_param">
<label for="phone_invoice">{l s='Home phone'}</label>
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
{/if}
{if !$stateExist}
<div class="required id_state_invoice form-group unvisible">
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
{/if}
{if !$dniExist}
<div class="required form-group dni_invoice">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
{/if}
<div class="form-group is_customer_param">
<label for="other_invoice">{l s='Additional information'}</label>
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
</div>
{block name='displayCustomerAccountForm'}
{$HOOK_CREATE_ACCOUNT_FORM}
{/block}
{block name='order_opc_new_account_advanced_account_submit'}
<div class="submit opc-add-save clearfix">
<p class="required opc-required pull-right">
<sup>*</sup>{l s='Required field'}
</p>
<button type="submit" name="submitAccount" id="submitAccount" data-adv-api="1" class="btn btn-default button button-medium"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
</div>
{/block}
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully'}
{if isset($one_phone_at_least) && $one_phone_at_least}
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
{/if}
<div class="form-group is_customer_param">
<label for="phone_invoice">{l s='Home phone'}</label>
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
</div>
<!-- END Account -->
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
</div>
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
</div>
{block name='displayCustomerAccountForm'}
{$HOOK_CREATE_ACCOUNT_FORM}
{/block}
{block name='order_opc_new_account_advanced_account_submit'}
<div class="submit opc-add-save clearfix">
<p class="required opc-required pull-right">
<sup>*</sup>{l s='Required field'}
</p>
<button type="submit" name="submitAccount" id="submitAccount" data-adv-api="1" class="btn btn-default button button-medium"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
</div>
{/block}
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully'}
</div>
<!-- END Account -->
</div>
</fieldset>
</form>
{/block}
</div>
{block name='order_opc_new_account_advanced_js_vars'}
{strip}
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
{addJsDef idSelectedState=$guestInformations.id_state|intval}
{else}
{addJsDef idSelectedState=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
{else}
{addJsDef idSelectedStateInvoice=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
{else}
{addJsDef idSelectedCountry=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
{else}
{addJsDef idSelectedCountryInvoice=false}
{/if}
{if isset($countries)}
{addJsDef countries=$countries}
{/if}
{/strip}
</div>
</fieldset>
</form>
{/block}
</div>
{block name='order_opc_new_account_advanced_js_vars'}
{strip}
{if isset($guestInformations) && isset($guestInformations.id_state) && $guestInformations.id_state}
{addJsDef idSelectedState=$guestInformations.id_state|intval}
{else}
{addJsDef idSelectedState=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_state_invoice) && $guestInformations.id_state_invoice}
{addJsDef idSelectedStateInvoice=$guestInformations.id_state_invoice|intval}
{else}
{addJsDef idSelectedStateInvoice=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country}
{addJsDef idSelectedCountry=$guestInformations.id_country|intval}
{else}
{addJsDef idSelectedCountry=false}
{/if}
{if isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice}
{addJsDef idSelectedCountryInvoice=$guestInformations.id_country_invoice|intval}
{else}
{addJsDef idSelectedCountryInvoice=false}
{/if}
{if isset($countries)}
{addJsDef countries=$countries}
{/if}
{/strip}
{/block}

View File

@@ -1,421 +1,419 @@
{block name='order_opc_new_account'}
<div id="opc_new_account" class="opc-main-block">
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
{block name='order_opc_new_account_login_form'}
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
<fieldset>
<div class="already_registered_block">
<p>
{l s='Already have an account?'} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock"> {l s='Login now'}</a> {l s='to make checkout process faster and time saving.'}
<div id="opc_new_account" class="opc-main-block">
<div id="opc_new_account-overlay" class="opc-overlay" style="display: none;"></div>
{block name='order_opc_new_account_login_form'}
<form action="{$link->getPageLink('authentication', true, NULL, "back=order-opc")|escape:'html':'UTF-8'}" method="post" id="login_form">
<fieldset>
<div class="already_registered_block">
<p>
{l s='Already have an account?'} <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" id="openLoginFormBlock"> {l s='Login now'}</a> {l s='to make checkout process faster and time saving.'}
</p>
<p>{l s='Or'}</p>
</div>
<div id="login_form_content" style="display:none;">
<p class="text-secondary"><a href="#" id="idAccountChoice"> {l s='Return'}</a> {l s='to other checkout options.'}</p>
<!-- Error return block -->
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<div class="row">
<div class="form-group col-sm-6">
<label for="login_email">{l s='Email address'}</label>
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<label for="login_passwd">{l s='Password'}</label>
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
</div>
</div>
{block name='displayLoginFormFieldsAfter'}
{hook h='displayLoginFormFieldsAfter'}
{/block}
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
<div style="clear:both"></div>
{block name='order_opc_new_account_login_submit'}
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span>{l s='Sign in'}</span></button>
</p>
<p>{l s='Or'}</p>
</div>
<div id="login_form_content" style="display:none;">
<p class="text-secondary"><a href="#" id="idAccountChoice"> {l s='Return'}</a> {l s='to other checkout options.'}</p>
<!-- Error return block -->
<div id="opc_login_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<div class="row">
<div class="form-group col-sm-6">
<label for="login_email">{l s='Email address'}</label>
<input type="email" class="form-control validate" id="login_email" name="email" data-validate="isEmail" />
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<label for="login_passwd">{l s='Password'}</label>
<input class="form-control validate" type="password" id="login_passwd" name="login_passwd" data-validate="isPasswd" />
</div>
</div>
{block name='displayLoginFormFieldsAfter'}
{hook h='displayLoginFormFieldsAfter'}
{/block}
<a href="{$link->getPageLink('password', true)|escape:'html':'UTF-8'}" class="lost_password pull-right">{l s='Forgot your password?'}</a>
<div style="clear:both"></div>
{block name='order_opc_new_account_login_submit'}
<p class="submit">
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium pull-right"><span>{l s='Sign in'}</span></button>
</p>
{/block}
{block name='displayLoginFormBottom'}
{hook h='displayLoginFormBottom'}
{/block}
</div>
</fieldset>
</form>
{/block}
{block name='order_opc_new_account_new_account_form'}
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<div id="opc_account_choice" class="row">
<div class="col-xs-12">
<div class="opc-button">
<span>
<button type="submit" class="opc-button-small opc-btn-primary" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
</span>
<span>
<button type="submit" class="opc-button-small opc-btn-default" id="opc_createAccount"><span>{l s='Create an account'}</span></button>
</span>
</div>
{/block}
{block name='displayLoginFormBottom'}
{hook h='displayLoginFormBottom'}
{/block}
</div>
</fieldset>
</form>
{/block}
{block name='order_opc_new_account_new_account_form'}
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std" autocomplete="on" autofill="on">
<div id="opc_account_choice" class="row">
<div class="col-xs-12">
<div class="opc-button">
<span>
<button type="submit" class="opc-button-small opc-btn-primary" id="opc_guestCheckout"><span>{l s='Guest checkout'}</span></button>
</span>
<span>
<button type="submit" class="opc-button-small opc-btn-default" id="opc_createAccount"><span>{l s='Create an account'}</span></button>
</span>
</div>
</div>
<div id="opc_account_form" class="unvisible">
{block name='displayCustomerAccountFormTop'}
{$HOOK_CREATE_ACCOUNT_TOP}
{/block}
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully.'}
</div>
<!-- Error return block -->
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<div style="display: none; margin-top: 15px;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully.'}
</div>
<!-- Account -->
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<p class="required"><sup>*</sup>{l s='Required field'}</p>
</div>
<div id="opc_account_form" class="unvisible">
{block name='displayCustomerAccountFormTop'}
{$HOOK_CREATE_ACCOUNT_TOP}
{/block}
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully.'}
</div>
<!-- Error return block -->
<div id="opc_account_errors" class="alert alert-danger" style="display:none;"></div>
<!-- END Error return block -->
<div style="display: none; margin-top: 15px;" id="opc_account_saved" class="alert alert-success">
{l s='Account information saved successfully.'}
</div>
<!-- Account -->
<input type="hidden" id="is_new_customer" name="is_new_customer" value="0" />
<input type="hidden" id="opc_id_customer" name="opc_id_customer" value="{if isset($guestInformations) && isset($guestInformations.id_customer) && $guestInformations.id_customer}{$guestInformations.id_customer}{else}0{/if}" />
<input type="hidden" id="opc_id_address_delivery" name="opc_id_address_delivery" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<input type="hidden" id="opc_id_address_invoice" name="opc_id_address_invoice" value="{if isset($guestInformations) && isset($guestInformations.id_address_delivery) && $guestInformations.id_address_delivery}{$guestInformations.id_address_delivery}{else}0{/if}" />
<p class="required"><sup>*</sup>{l s='Required field'}</p>
<div class="row">
<div class="required clearfix gender-line col-sm-2">
<label>{l s='Social title'}</label>
<select name="id_gender" id="id_gender">
{foreach from=$genders key=k item=gender}
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
{/foreach}
</select>
</div>
<div class="required form-group col-sm-5">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</div>
<div class="required form-group col-sm-5">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</div>
<div class="row">
<div class="required clearfix gender-line col-sm-2">
<label>{l s='Social title'}</label>
<select name="id_gender" id="id_gender">
{foreach from=$genders key=k item=gender}
<option value="{$gender->id_gender}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id_gender || (isset($guestInformations) && $guestInformations.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
{/foreach}
</select>
</div>
<div class="required form-group col-sm-5">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="customer_firstname" name="customer_firstname" onblur="$('#firstname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_firstname) && $guestInformations.customer_firstname}{$guestInformations.customer_firstname}{/if}" />
</div>
<div class="required form-group col-sm-5">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="customer_lastname" name="customer_lastname" onblur="$('#lastname').val($(this).val());" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.customer_lastname) && $guestInformations.customer_lastname}{$guestInformations.customer_lastname}{/if}" />
</div>
</div>
<div class="row">
<div class="required text form-group col-sm-6">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
</div>
<div class="row">
<div class="required text form-group col-sm-6">
<label for="email">{l s='Email'} <sup>*</sup></label>
<input type="email" class="text form-control validate" id="email" name="email" data-validate="isEmail" value="{if isset($guestInformations) && isset($guestInformations.email) && $guestInformations.email}{$guestInformations.email}{/if}" />
</div>
<div class="row">
<div class="required password is_customer_param form-group col-sm-6">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
<span class="form_info">{l s='(five characters min.)'}</span>
</div>
</div>
<div class="row">
<div class="required password is_customer_param form-group col-sm-6">
<label for="passwd">{l s='Password'} <sup>*</sup></label>
<input type="password" class="text form-control validate" name="passwd" id="passwd" data-validate="isPasswd" />
<span class="form_info">{l s='(five characters min.)'}</span>
</div>
<div class="row">
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="customer_phone">{l s='Phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="customer_phone" id="customer_phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" onblur="$('#phone').val($(this).val());"/>
</div>
</div>
<div class="row">
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="customer_phone">{l s='Phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="customer_phone" id="customer_phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" onblur="$('#phone').val($(this).val());"/>
</div>
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
{if isset($birthday) && $birthday}
<div class="row">
<div class="select form-group date-select col-sm-12">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select id="days" name="days">
<option value="">-</option>
{foreach from=$days item=day}
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="months" name="months">
<option value="">-</option>
{foreach from=$months key=k item=month}
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
{/foreach}
</select>
</div>
<div class="col-xs-4">
<select id="years" name="years">
<option value="">-</option>
{foreach from=$years item=year}
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
{/if}
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
{l s='Sign up for our newsletter!'}</label>
{if array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
{l s='Receive special offers from our partners!'}</label>
{if array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
{$stateExist = false}
{$postCodeExist = false}
{$dniExist = false}
</div>
{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
{if isset($birthday) && $birthday}
<div class="row">
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "firstname"}
<div class="required text form-group col-sm-6">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required text form-group col-sm-6">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required text form-group col-sm-6">
<label for="address1">{l s='Address'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
</div>
{elseif $field_name eq "city"}
<div class="required text form-group col-sm-6">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode text form-group col-sm-6">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{elseif $field_name eq "company"}
<div class="text form-group col-sm-6">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required select form-group col-sm-6">
<label for="id_country">{l s='Country'} <sup>*</sup></label>
<select name="id_country" id="id_country">
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
<div class="select form-group date-select col-sm-12">
<label>{l s='Date of Birth'}</label>
<div class="row">
<div class="col-xs-4">
<select id="days" name="days">
<option value="">-</option>
{foreach from=$days item=day}
<option value="{$day|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_day) && ($guestInformations.sl_day == $day)} selected="selected"{/if}>{$day|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state form-group col-sm-6" style="display:none;">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state">
<div class="col-xs-4">
<select id="months" name="months">
<option value="">-</option>
{foreach from=$months key=k item=month}
<option value="{$k|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_month) && ($guestInformations.sl_month == $k)} selected="selected"{/if}>{l s=$month}&nbsp;</option>
{/foreach}
</select>
</div>
{/if}
{/foreach}
{if !$postCodeExist}
<div class="required postcode form-group col-sm-6 unvisible">
<div class="col-xs-4">
<select id="years" name="years">
<option value="">-</option>
{foreach from=$years item=year}
<option value="{$year|escape:'html':'UTF-8'}" {if isset($guestInformations) && isset($guestInformations.sl_year) && ($guestInformations.sl_year == $year)} selected="selected"{/if}>{$year|escape:'html':'UTF-8'}&nbsp;&nbsp;</option>
{/foreach}
</select>
</div>
</div>
</div>
</div>
{/if}
{if isset($newsletter) && $newsletter}
<div class="checkbox">
<label for="newsletter">
<input type="checkbox" name="newsletter" id="newsletter" value="1"{if isset($guestInformations) && isset($guestInformations.newsletter) && $guestInformations.newsletter} checked="checked"{/if} autocomplete="off"/>
{l s='Sign up for our newsletter!'}</label>
{if array_key_exists('newsletter', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
{if isset($optin) && $optin}
<div class="checkbox">
<label for="optin">
<input type="checkbox" name="optin" id="optin" value="1"{if isset($guestInformations) && isset($guestInformations.optin) && $guestInformations.optin} checked="checked"{/if} autocomplete="off"/>
{l s='Receive special offers from our partners!'}</label>
{if array_key_exists('optin', $field_required)}
<sup> *</sup>
{/if}
</div>
{/if}
<p class="block-small-header margin-top-20 margin-btm-10">{l s='RESIDENTIAL ADDRESS'}</p>
{$stateExist = false}
{$postCodeExist = false}
{$dniExist = false}
<div class="row">
{foreach from=$dlv_all_fields item=field_name}
{if $field_name eq "firstname"}
<div class="required text form-group col-sm-6">
<label for="firstname">{l s='First name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="firstname" name="firstname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname) && $guestInformations.firstname}{$guestInformations.firstname}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required text form-group col-sm-6">
<label for="lastname">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="text form-control validate" id="lastname" name="lastname" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname) && $guestInformations.lastname}{$guestInformations.lastname}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required text form-group col-sm-6">
<label for="address1">{l s='Address'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="address1" id="address1" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1) && isset($guestInformations) && isset($guestInformations.address1) && $guestInformations.address1}{$guestInformations.address1}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="text{if !in_array($field_name, $required_fields)} is_customer_param{/if} form-group col-sm-6">
<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" name="address2" id="address2" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2) && isset($guestInformations) && isset($guestInformations.address2) && $guestInformations.address2}{$guestInformations.address2}{/if}" />
</div>
{elseif $field_name eq "city"}
<div class="required text form-group col-sm-6">
<label for="city">{l s='City'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="city" id="city" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city) && $guestInformations.city}{$guestInformations.city}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode text form-group col-sm-6">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state form-group col-sm-6 unvisible">
{elseif $field_name eq "company"}
<div class="text form-group col-sm-6">
<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company" name="company" data-validate="isGenericName" value="{if isset($guestInformations) && isset($guestInformations.company) && $guestInformations.company}{$guestInformations.company}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required select form-group col-sm-6">
<label for="id_country">{l s='Country'} <sup>*</sup></label>
<select name="id_country" id="id_country">
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country) && $guestInformations.id_country == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state form-group col-sm-6" style="display:none;">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param col-sm-6">
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
</div>
<div class="form-group is_customer_param col-sm-6">
<label for="other">{l s='Additional information'}</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
</div>
</div>
<div class="row">
<div class="col-sm-12">
{if isset($one_phone_at_least) && $one_phone_at_least}
{assign var="atLeastOneExists" value=true}
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
{/if}
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
{* <div class="checkbox">
<label for="invoice_address">
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
{l s='Please use another address for invoice'}</label>
</div> *}
<p class="required opc-required">
<sup>*</sup>{l s='Required field'}
</p>
</div>
</div>
{/if}
{* <div id="opc_invoice_address" class="is_customer_param">
{assign var=stateExist value=false}
{assign var=postCodeExist value=false}
{assign var='dniExist' value=false}
<h3 class="page-subheading top-indent">{l s='Additional address'}</h3>
{foreach from=$inv_all_fields item=field_name}
{if $field_name eq "company"}
<div class="form-group">
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required form-group dni_invoice">
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "firstname"}
<div class="required form-group">
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required form-group">
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required form-group">
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode_invoice form-group">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
</div>
{elseif $field_name eq "city"}
<div class="required form-group">
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required form-group">
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
<option value="">-</option>
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state_invoice form-group" style="display:none;">
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
{/if}
{/foreach}
{if !$postCodeExist}
<div class="required postcode_invoice form-group unvisible">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
<div class="required postcode form-group col-sm-6 unvisible">
<label for="postcode">{l s='Zip/Postal code'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode) && $guestInformations.postcode}{$guestInformations.postcode}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state_invoice form-group unvisible">
<div class="required id_state form-group col-sm-6 unvisible">
<label for="id_state">{l s='State'} <sup>*</sup></label>
<select name="id_state" id="id_state">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required dni form-group col-sm-6">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param col-sm-6">
<label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" />
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group col-sm-6">
<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label>
<input type="text" class="text form-control validate" name="phone_mobile" id="phone_mobile" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile) && $guestInformations.phone_mobile}{$guestInformations.phone_mobile}{/if}" />
</div>
<div class="form-group is_customer_param col-sm-6">
<label for="other">{l s='Additional information'}</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="7"></textarea>
</div>
</div>
<div class="row">
<div class="col-sm-12">
{if isset($one_phone_at_least) && $one_phone_at_least}
{assign var="atLeastOneExists" value=true}
<p class="inline-infos required">** {l s='You must register at least one phone number.'}</p>
{/if}
<input type="hidden" name="alias" id="alias" value="{l s='My address'}"/>
{* <div class="checkbox">
<label for="invoice_address">
<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($guestInformations) && isset($guestInformations.invoice_address) && $guestInformations.invoice_address)} checked="checked"{/if} autocomplete="off"/>
{l s='Please use another address for invoice'}</label>
</div> *}
<p class="required opc-required">
<sup>*</sup>{l s='Required field'}
</p>
</div>
</div>
{/if}
{* <div id="opc_invoice_address" class="is_customer_param">
{assign var=stateExist value=false}
{assign var=postCodeExist value=false}
{assign var='dniExist' value=false}
<h3 class="page-subheading top-indent">{l s='Additional address'}</h3>
{foreach from=$inv_all_fields item=field_name}
{if $field_name eq "company"}
<div class="form-group">
<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="text form-control validate" id="company_invoice" name="company_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.company_invoice) && $guestInformations.company_invoice}{$guestInformations.company_invoice}{/if}" />
</div>
{elseif $field_name eq "dni"}
{assign var='dniExist' value=true}
<div class="required form-group dni_invoice">
<label for="dni_invoice">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{elseif $field_name eq "firstname"}
<div class="required form-group">
<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="firstname_invoice" name="firstname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.firstname_invoice) && $guestInformations.firstname_invoice}{$guestInformations.firstname_invoice}{/if}" />
</div>
{elseif $field_name eq "lastname"}
<div class="required form-group">
<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
<input type="text" class="form-control validate" id="lastname_invoice" name="lastname_invoice" data-validate="isName" value="{if isset($guestInformations) && isset($guestInformations.lastname_invoice) && $guestInformations.lastname_invoice}{$guestInformations.lastname_invoice}{/if}" />
</div>
{elseif $field_name eq "address1"}
<div class="required form-group">
<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="address1_invoice" id="address1_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address1_invoice) && isset($guestInformations) && isset($guestInformations.address1_invoice) && $guestInformations.address1_invoice}{$guestInformations.address1_invoice}{/if}" />
</div>
{elseif $field_name eq "address2"}
<div class="form-group{if !in_array($field_name, $required_fields)} is_customer_param{/if}">
<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
<input type="text" class="form-control address" name="address2_invoice" id="address2_invoice" data-validate="isAddress" value="{if isset($guestInformations) && isset($guestInformations.address2_invoice) && isset($guestInformations) && isset($guestInformations.address2_invoice) && $guestInformations.address2_invoice}{$guestInformations.address2_invoice}{/if}" />
</div>
{elseif $field_name eq "postcode"}
{$postCodeExist = true}
<div class="required postcode_invoice form-group">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
</div>
{elseif $field_name eq "city"}
<div class="required form-group">
<label for="city_invoice">{l s='City'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="city_invoice" id="city_invoice" data-validate="isCityName" value="{if isset($guestInformations) && isset($guestInformations.city_invoice) && $guestInformations.city_invoice}{$guestInformations.city_invoice}{/if}" />
</div>
{elseif $field_name eq "country" || $field_name eq "Country:name"}
<div class="required form-group">
<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
<option value="">-</option>
{foreach from=$countries item=v}
<option value="{$v.id_country}"{if (isset($guestInformations) && isset($guestInformations.id_country_invoice) && $guestInformations.id_country_invoice == $v.id_country) || (!isset($guestInformations) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
{/foreach}
</select>
</div>
{elseif $field_name eq "state" || $field_name eq 'State:name'}
{$stateExist = true}
<div class="required id_state_invoice form-group" style="display:none;">
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required form-group dni_invoice">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param">
<label for="other_invoice">{l s='Additional information'}</label>
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
</div>
{if isset($one_phone_at_least) && $one_phone_at_least}
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
{/if}
{/foreach}
{if !$postCodeExist}
<div class="required postcode_invoice form-group unvisible">
<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
<input type="text" class="form-control validate" name="postcode_invoice" id="postcode_invoice" data-validate="isPostCode" value="{if isset($guestInformations) && isset($guestInformations.postcode_invoice) && $guestInformations.postcode_invoice}{$guestInformations.postcode_invoice}{/if}"/>
</div>
{/if}
{if !$stateExist}
<div class="required id_state_invoice form-group unvisible">
<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
{/if}
{if !$dniExist}
<div class="required form-group dni_invoice">
<label for="dni">{l s='Identification number'} <sup>*</sup></label>
<input type="text" class="text form-control validate" name="dni_invoice" id="dni_invoice" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni_invoice) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" />
<span class="form_info">{l s='DNI / NIF / NIE'}</span>
</div>
{/if}
<div class="form-group is_customer_param">
<label for="phone_invoice">{l s='Home phone'}</label>
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
<label for="other_invoice">{l s='Additional information'}</label>
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
</div>
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
</div> *}
{block name='displayCustomerAccountForm'}
{$HOOK_CREATE_ACCOUNT_FORM}
{/block}
{block name='order_opc_new_account_submit'}
<div class="submit opc-add-save clearfix">
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
</div>
{/block}
<!-- END Account -->
</div>
</form>
{/block}
</div>
{strip}
{if isset($countries)}
{addJsDef countries=$countries}
{/if}
{/strip}
{/block}
{if isset($one_phone_at_least) && $one_phone_at_least}
<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
{/if}
<div class="form-group is_customer_param">
<label for="phone_invoice">{l s='Home phone'}</label>
<input type="text" class="form-control validate" name="phone_invoice" id="phone_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_invoice) && $guestInformations.phone_invoice}{$guestInformations.phone_invoice}{/if}" />
</div>
<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
<input type="text" class="form-control validate" name="phone_mobile_invoice" id="phone_mobile_invoice" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone_mobile_invoice) && $guestInformations.phone_mobile_invoice}{$guestInformations.phone_mobile_invoice}{/if}" />
</div>
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
</div> *}
{block name='displayCustomerAccountForm'}
{$HOOK_CREATE_ACCOUNT_FORM}
{/block}
{block name='order_opc_new_account_submit'}
<div class="submit opc-add-save clearfix">
<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium pull-right"><span>{l s='Save'}<i class="icon-chevron-right right"></i></span></button>
</div>
{/block}
<!-- END Account -->
</div>
</form>
{/block}
</div>
{strip}
{if isset($countries)}
{addJsDef countries=$countries}
{/if}
{/strip}

View File

@@ -36,7 +36,9 @@
<div class="row">
{if $PS_CATALOG_MODE}
{capture name=path}{l s='Your booking cart'}{/capture}
<h2 class="page-heading">{l s='Your booking cart'}</h2>
{block name='order_opc_heading'}
<h2 class="page-heading">{l s='Your booking cart'}</h2>
{/block}
<p class="alert alert-warning">{l s='The hotel is currently not accepting any bookings.'}</p>
{else}
@@ -44,7 +46,9 @@
{block name='order_opc_left_column'}
<div class="col-md-8">
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{* Accordian for all blocks *}
<div class="accordion" id="oprder-opc-accordion">
@@ -67,7 +71,9 @@
<div id="collapse-shopping-cart" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="shopping-cart-head" data-parent="#oprder-opc-accordion">
<div class="card-body">
{* This tpl includes room type lists in the orders *}
{include file="$tpl_dir./shopping-cart.tpl"}
{block name='shopping_cart'}
{include file="$tpl_dir./shopping-cart.tpl"}
{/block}
</div>
</div>
{/if}
@@ -185,12 +191,16 @@
{/if}
{else}
<!-- Create account / Guest account / Login block -->
{include file="$tpl_dir./order-opc-new-account.tpl"}
{block name='order_opc_new_account'}
{include file="$tpl_dir./order-opc-new-account.tpl"}
{/block}
{/if}
</div>
{if $is_logged || $isGuest}
<div class="card-body hidden" id="order-opc-edit-guest-info">
{include file="./order-opc-edit-guest-info.tpl"}
{block name='order_opc_edit_guest_info'}
{include file="./order-opc-edit-guest-info.tpl"}
{/block}
</div>
{/if}
</div>
@@ -218,7 +228,9 @@
<div id="collapse-order-payment" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="order-payment-head" data-parent="#oprder-opc-accordion">
<div class="card-body">
<!-- Payment -->
{include file="$tpl_dir./order-payment.tpl"}
{block name='order_payment'}
{include file="$tpl_dir./order-payment.tpl"}
{/block}
<!-- END Payment -->
</div>
</div>
@@ -416,8 +428,12 @@
{/block}
{else}
{capture name=path}{l s='Your booking cart'}{/capture}
<h2 class="page-heading">{l s='Your booking cart'}</h2>
{include file="$tpl_dir./errors.tpl"}
{block name='order_opc_heading'}
<h2 class="page-heading">{l s='Your booking cart'}</h2>
{/block}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
<p class="alert alert-warning">{l s='You have not added any room to your cart yet.'}</p>
{/if}

View File

@@ -23,128 +23,134 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='order_payment_advanced'}
{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 !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}
{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}
{break}
{/if}
{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}
{break}
{/if}
{/foreach}
{/foreach}
{addJsDefL name=txtProduct}{l s='Product' js=1}{/addJsDefL}
{addJsDefL name=txtProducts}{l s='Products' js=1}{/addJsDefL}
{capture name=path}{l s='Your shopping cart'}{/capture}
{addJsDefL name=txtProduct}{l s='Product' js=1}{/addJsDefL}
{addJsDefL name=txtProducts}{l s='Products' js=1}{/addJsDefL}
{capture name=path}{l s='Your shopping cart'}{/capture}
{if $productNumber == 0}
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
{elseif $PS_CATALOG_MODE}
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
{else}
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
<h2>{l s='Payment Options'}</h2>
<!-- HOOK_ADVANCED_PAYMENT -->
{block name='advancedPaymentOptions'}
<div id="HOOK_ADVANCED_PAYMENT">
<div class="row">
<!-- Should get a collection of "PaymentOption" object -->
{assign var='adv_payment_empty' value=true}
{foreach from=$HOOK_ADVANCED_PAYMENT item=pay_option key=key}
{if $pay_option}
{assign var='adv_payment_empty' value=false}
{/if}
{/foreach}
{if $HOOK_ADVANCED_PAYMENT && !$adv_payment_empty}
{foreach $HOOK_ADVANCED_PAYMENT as $advanced_payment_opt_list}
{foreach $advanced_payment_opt_list as $paymentOption}
<div class="col-xs-12 col-md-6">
<p class="payment_module pointer-box">
<a class="payment_module_adv">
<img class="payment_option_logo" src="{$paymentOption->getLogo()}"/>
<span class="payment_option_cta">
{$paymentOption->getCallToActionText()}
</span>
<span class="pull-right payment_option_selected">
<i class="icon-check"></i>
</span>
</a>
</p>
<div class="payment_option_form">
{if $paymentOption->getForm()}
{$paymentOption->getForm()}
{else}
<form method="{if $paymentOption->getMethod()}{$paymentOption->getMethod()}{else}POST{/if}" action="{$paymentOption->getAction()}">
{if $paymentOption->getInputs()}
{foreach from=$paymentOption->getInputs() item=value key=name}
<input type="hidden" name="{$name}" value="{$value}">
{/foreach}
{/if}
</form>
{/if}
</div>
</div>
{/foreach}
{/foreach}
</div>
{else}
<div class="col-xs-12 col-md-12">
<p class="alert alert-warning ">{l s='Unable to find any available payment option for your cart. Please contact us if the problem persists'}</p>
</div>
{if $productNumber == 0}
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
{elseif $PS_CATALOG_MODE}
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
{else}
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
<h2>{l s='Payment Options'}</h2>
<!-- HOOK_ADVANCED_PAYMENT -->
{block name='advancedPaymentOptions'}
<div id="HOOK_ADVANCED_PAYMENT">
<div class="row">
<!-- Should get a collection of "PaymentOption" object -->
{assign var='adv_payment_empty' value=true}
{foreach from=$HOOK_ADVANCED_PAYMENT item=pay_option key=key}
{if $pay_option}
{assign var='adv_payment_empty' value=false}
{/if}
</div>
{/block}
<!-- end HOOK_ADVANCED_PAYMENT -->
{/foreach}
{if $HOOK_ADVANCED_PAYMENT && !$adv_payment_empty}
{foreach $HOOK_ADVANCED_PAYMENT as $advanced_payment_opt_list}
{foreach $advanced_payment_opt_list as $paymentOption}
<div class="col-xs-12 col-md-6">
<p class="payment_module pointer-box">
<a class="payment_module_adv">
<img class="payment_option_logo" src="{$paymentOption->getLogo()}"/>
<span class="payment_option_cta">
{$paymentOption->getCallToActionText()}
</span>
<span class="pull-right payment_option_selected">
<i class="icon-check"></i>
</span>
</a>
{if $opc}
<!-- Carrier -->
{include file="$tpl_dir./order-carrier-advanced.tpl"}
<!-- END Carrier -->
{/if}
{if $is_logged AND !$is_guest}
{include file="$tpl_dir./order-address-advanced.tpl"}
{elseif $opc}
<!-- Create account / Guest account / Login block -->
{include file="$tpl_dir./order-opc-new-account-advanced.tpl"}
<!-- END Create account / Guest account / Login block -->
{/if}
{block name='order_payment_advanced_terms_and_conditions'}
<!-- TNC -->
{if $conditions AND $cms_id}
{if $override_tos_display }
{$override_tos_display}
{else}
<div class="row">
<div class="col-xs-12 col-md-12">
<h2>{l s='Terms and Conditions'}</h2>
<div class="box">
<p class="checkbox">
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
<label for="cgv">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
<a href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow">{l s='(Read the Terms of Service)'}</a>
</p>
</p>
<div class="payment_option_form">
{if $paymentOption->getForm()}
{$paymentOption->getForm()}
{else}
<form method="{if $paymentOption->getMethod()}{$paymentOption->getMethod()}{else}POST{/if}" action="{$paymentOption->getAction()}">
{if $paymentOption->getInputs()}
{foreach from=$paymentOption->getInputs() item=value key=name}
<input type="hidden" name="{$name}" value="{$value}">
{/foreach}
{/if}
</form>
{/if}
</div>
</div>
</div>
{/if}
{/foreach}
{/foreach}
</div>
{else}
<div class="col-xs-12 col-md-12">
<p class="alert alert-warning ">{l s='Unable to find any available payment option for your cart. Please contact us if the problem persists'}</p>
</div>
{/if}
<!-- end TNC -->
{/block}
</div>
{/block}
<!-- end HOOK_ADVANCED_PAYMENT -->
{include file="$tpl_dir./shopping-cart-advanced.tpl"}
{if $opc}
<!-- Carrier -->
{block name='order_carrier_advanced'}
{include file="$tpl_dir./order-carrier-advanced.tpl"}
{/block}
<!-- END Carrier -->
{/if}
{/block}
{if $is_logged AND !$is_guest}
{block name='order_address_advanced'}
{include file="$tpl_dir./order-address-advanced.tpl"}
{/block}
{elseif $opc}
<!-- Create account / Guest account / Login block -->
{block name='order_opc_new_account_advanced'}
{include file="$tpl_dir./order-opc-new-account-advanced.tpl"}
{/block}
<!-- END Create account / Guest account / Login block -->
{/if}
{block name='order_payment_advanced_terms_and_conditions'}
<!-- TNC -->
{if $conditions AND $cms_id}
{if $override_tos_display }
{$override_tos_display}
{else}
<div class="row">
<div class="col-xs-12 col-md-12">
<h2>{l s='Terms and Conditions'}</h2>
<div class="box">
<p class="checkbox">
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
<label for="cgv">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
<a href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow">{l s='(Read the Terms of Service)'}</a>
</p>
</div>
</div>
</div>
{/if}
{/if}
<!-- end TNC -->
{/block}
{block name='shopping_cart_advanced'}
{include file="$tpl_dir./shopping-cart-advanced.tpl"}
{/block}
{/if}

View File

@@ -23,324 +23,328 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='order_payment_classic'}
<div class="paiement_block">
<div class="paiement_block">
{block name='order_opc_advanced_payment_option'}
{include file="$tpl_dir./order-opc-advanced-payment-option.tpl"}
{/block}
{block name='order_payment_classic_terms_and_conditions'}
<div id="tc_cont">
<p class="checkbox">
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
<label for="cgv" id="tc_txt">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
<a id="tc_link" href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow" >{l s='(Read the Terms of Service)'}</a>
</p>
</div>
{/block}
<p class="block-small-header">{l s='PAYMENT RESOURCE'}</p>
{block name='displayPaymentTop'}
<div id="HOOK_TOP_PAYMENT">{$HOOK_TOP_PAYMENT}</div>
{/block}
{if $HOOK_PAYMENT}
{if !$opc}
{block name='order_payment_classic_cart_summary'}
<div id="order-detail-content" class="table_block table-responsive">
<table id="cart_summary" class="table table-bordered">
<thead>
<tr>
<th class="cart_product first_item">{l s='Product'}</th>
<th class="cart_description item">{l s='Description'}</th>
{if $PS_STOCK_MANAGEMENT}
<th class="cart_availability item text-center">{l s='Availability'}</th>
{/if}
<th class="cart_unit item text-right">{l s='Unit price'}</th>
<th class="cart_quantity item text-center">{l s='Qty'}</th>
<th class="cart_total last_item text-right">{l s='Total'}</th>
</tr>
</thead>
<tfoot>
{if $use_taxes}
{if $priceDisplay}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{else}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
</tr>
{/if}
{else}
{block name='order_payment_classic_terms_and_conditions'}
<div id="tc_cont">
<p class="checkbox">
<input type="checkbox" name="cgv" id="cgv" value="1" {if $checkedTOS}checked="checked"{/if} />
<label for="cgv" id="tc_txt">{l s='I agree to the terms of service and will adhere to them unconditionally.'}</label>
<a id="tc_link" href="{$link_conditions|escape:'html':'UTF-8'}" class="iframe" rel="nofollow" >{l s='(Read the Terms of Service)'}</a>
</p>
</div>
{/block}
<p class="block-small-header">{l s='PAYMENT RESOURCE'}</p>
{block name='displayPaymentTop'}
<div id="HOOK_TOP_PAYMENT">{$HOOK_TOP_PAYMENT}</div>
{/block}
{if $HOOK_PAYMENT}
{if !$opc}
{block name='order_payment_classic_cart_summary'}
<div id="order-detail-content" class="table_block table-responsive">
<table id="cart_summary" class="table table-bordered">
<thead>
<tr>
<th class="cart_product first_item">{l s='Product'}</th>
<th class="cart_description item">{l s='Description'}</th>
{if $PS_STOCK_MANAGEMENT}
<th class="cart_availability item text-center">{l s='Availability'}</th>
{/if}
<th class="cart_unit item text-right">{l s='Unit price'}</th>
<th class="cart_quantity item text-center">{l s='Qty'}</th>
<th class="cart_total last_item text-right">{l s='Total'}</th>
</tr>
</thead>
<tfoot>
{if $use_taxes}
{if $priceDisplay}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{l s='Total products'}</td>
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{/if}
<tr class="cart_total_voucher" {if $total_wrapping == 0}style="display:none"{/if}>
<td colspan="4" class="text-right">
{if $use_taxes}
{if $priceDisplay}
{if $display_tax_label}{l s='Total gift wrapping (tax excl.):'}{else}{l s='Total gift wrapping cost:'}{/if}
{else}
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift wrapping cost:'}{/if}
{/if}
{else}
{l s='Total gift wrapping cost:'}
{/if}
</td>
<td colspan="2" class="price-discount price" id="total_wrapping">
{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}
</td>
</tr>
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship}
<tr class="cart_total_delivery">
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td>
</tr>
{else}
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
</tr>
{/if}
{else}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{l s='Total products'}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{/if}
<tr class="cart_total_voucher" {if $total_wrapping == 0}style="display:none"{/if}>
<td colspan="4" class="text-right">
{if $use_taxes}
{if $priceDisplay}
<tr class="cart_total_delivery" {if $shippingCost <= 0} style="display:none"{/if}>
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$shippingCostTaxExc}</td>
</tr>
{if $display_tax_label}{l s='Total gift wrapping (tax excl.):'}{else}{l s='Total gift wrapping cost:'}{/if}
{else}
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCost}</td>
</tr>
{if $display_tax_label}{l s='Total gift wrapping (tax incl.)'}{else}{l s='Total gift wrapping cost:'}{/if}
{/if}
{else}
{l s='Total gift wrapping cost:'}
{/if}
</td>
<td colspan="2" class="price-discount price" id="total_wrapping">
{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}
</td>
</tr>
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart) && $free_ship}
<tr class="cart_total_delivery">
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td>
</tr>
{else}
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
{if $priceDisplay}
<tr class="cart_total_delivery" {if $shippingCost <= 0} style="display:none"{/if}>
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$shippingCostTaxExc}</td>
</tr>
{else}
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCostTaxExc}</td>
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCost}</td>
</tr>
{/if}
{else}
<tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none"{/if}>
<td colspan="4" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$shippingCostTaxExc}</td>
</tr>
{/if}
<tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}>
<td colspan="4" class="text-right">
{if $use_taxes}
{if $priceDisplay}
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax excl.)'}{else}{l s='Total vouchers'}{/if}
{else}
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax incl.)'}{else}{l s='Total vouchers'}{/if}
{/if}
{/if}
<tr class="cart_total_voucher" {if $total_discounts == 0}style="display:none"{/if}>
<td colspan="4" class="text-right">
{if $use_taxes}
{if $priceDisplay}
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax excl.)'}{else}{l s='Total vouchers'}{/if}
{else}
{l s='Total vouchers'}
{if $display_tax_label && $show_taxes}{l s='Total vouchers (tax incl.)'}{else}{l s='Total vouchers'}{/if}
{/if}
</td>
<td colspan="2" class="price-discount price" id="total_discount">
{if $use_taxes}
{if $priceDisplay}
{displayPrice price=$total_discounts_tax_exc*-1}
{else}
{displayPrice price=$total_discounts*-1}
{/if}
{else}
{else}
{l s='Total vouchers'}
{/if}
</td>
<td colspan="2" class="price-discount price" id="total_discount">
{if $use_taxes}
{if $priceDisplay}
{displayPrice price=$total_discounts_tax_exc*-1}
{else}
{displayPrice price=$total_discounts*-1}
{/if}
{else}
{displayPrice price=$total_discounts_tax_exc*-1}
{/if}
</td>
</tr>
{if $use_taxes}
{if $total_tax != 0 && $show_taxes}
{if $priceDisplay != 0}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
</tr>
{/if}
<tr class="cart_total_tax">
<td colspan="4" class="text-right">{l s='Tax'}</td>
<td colspan="2" class="price" id="total_tax" >{displayPrice price=$total_tax}</td>
</tr>
{/if}
<tr class="cart_total_price">
<td colspan="4" class="total_price_container text-right"><span>{l s='Total'}</span></td>
<td colspan="2" class="price" id="total_price_container">
<span id="total_price" data-selenium-total-price="{$total_price}">{displayPrice price=$total_price}</span>
</td>
</tr>
{if $use_taxes}
{if $total_tax != 0 && $show_taxes}
{if $priceDisplay != 0}
<tr class="cart_total_price">
<td colspan="4" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
</tr>
{/if}
<tr class="cart_total_tax">
<td colspan="4" class="text-right">{l s='Tax'}</td>
<td colspan="2" class="price" id="total_tax" >{displayPrice price=$total_tax}</td>
</tr>
{/if}
<tr class="cart_total_price">
<td colspan="4" class="total_price_container text-right"><span>{l s='Total'}</span></td>
<td colspan="2" class="price" id="total_price_container">
<span id="total_price" data-selenium-total-price="{$total_price}">{displayPrice price=$total_price}</span>
</td>
</tr>
{else}
<tr class="cart_total_price">
{if $voucherAllowed}
<td colspan="2" id="cart_voucher" class="cart_voucher">
<div id="cart_voucher" class="table_block">
{if isset($errors_discount) && $errors_discount}
<ul class="alert alert-danger">
{foreach from=$errors_discount key=k item=error}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" id="discount_name" class="form-control" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='ok'}</span></button>
{if $displayVouchers}
<p id="title" class="title_offers">{l s='Take advantage of our offers:'}</p>
<div id="display_cart_vouchers">
{foreach from=$displayVouchers item=voucher}
<span onclick="$('#discount_name').val('{$voucher.name}');return false;" class="voucher_name">{$voucher.name}</span> - {$voucher.description} <br />
{/foreach}
</div>
{/if}
</fieldset>
</form>
{/if}
</div>
</td>
{/if}
<td colspan="{if !$voucherAllowed}4{else}2{/if}" class="text-right total_price_container">
<span>{l s='Total'}</span>
</td>
<td colspan="2" class="price total_price_container" id="total_price_container">
<span id="total_price" data-selenium-total-price="{$total_price_without_tax}">{displayPrice price=$total_price_without_tax}</span>
</td>
</tr>
{/if}
</tfoot>
<tbody>
{foreach from=$products item=product name=productLoop}
{assign var='productId' value=$product.id_product}
{assign var='productAttributeId' value=$product.id_product_attribute}
{assign var='quantityDisplayed' value=0}
{assign var='cannotModify' value=1}
{assign var='odd' value=$product@iteration%2}
{assign var='noDeleteButton' value=1}
{* 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[$product.id_address_delivery] key='id_customization' item='customization'}
<tr id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}" class="alternate_item cart_item">
<td colspan="4">
{foreach from=$customization.datas key='type' item='datas'}
{if $type == $CUSTOMIZE_FILE}
<div class="customizationUploaded">
<ul class="customizationUploaded">
{foreach from=$datas item='picture'}
<li>
<img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" />
</li>
{else}
<tr class="cart_total_price">
{if $voucherAllowed}
<td colspan="2" id="cart_voucher" class="cart_voucher">
<div id="cart_voucher" class="table_block">
{if isset($errors_discount) && $errors_discount}
<ul class="alert alert-danger">
{foreach from=$errors_discount key=k item=error}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ul>
{/if}
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" id="discount_name" class="form-control" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='ok'}</span></button>
{if $displayVouchers}
<p id="title" class="title_offers">{l s='Take advantage of our offers:'}</p>
<div id="display_cart_vouchers">
{foreach from=$displayVouchers item=voucher}
<span onclick="$('#discount_name').val('{$voucher.name}');return false;" class="voucher_name">{$voucher.name}</span> - {$voucher.description} <br />
{/foreach}
</ul>
</div>
{elseif $type == $CUSTOMIZE_TEXTFIELD}
<ul class="typedText">
{foreach from=$datas item='textField' name='typedText'}
</div>
{/if}
</fieldset>
</form>
{/if}
</div>
</td>
{/if}
<td colspan="{if !$voucherAllowed}4{else}2{/if}" class="text-right total_price_container">
<span>{l s='Total'}</span>
</td>
<td colspan="2" class="price total_price_container" id="total_price_container">
<span id="total_price" data-selenium-total-price="{$total_price_without_tax}">{displayPrice price=$total_price_without_tax}</span>
</td>
</tr>
{/if}
</tfoot>
<tbody>
{foreach from=$products item=product name=productLoop}
{assign var='productId' value=$product.id_product}
{assign var='productAttributeId' value=$product.id_product_attribute}
{assign var='quantityDisplayed' value=0}
{assign var='cannotModify' value=1}
{assign var='odd' value=$product@iteration%2}
{assign var='noDeleteButton' value=1}
{* Display the product line *}
{block name='shopping_cart_product_line'}
{include file="$tpl_dir./shopping-cart-product-line.tpl"}
{/block}
{* Then the customized datas ones*}
{if isset($customizedDatas.$productId.$productAttributeId)}
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization'}
<tr id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}" class="alternate_item cart_item">
<td colspan="4">
{foreach from=$customization.datas key='type' item='datas'}
{if $type == $CUSTOMIZE_FILE}
<div class="customizationUploaded">
<ul class="customizationUploaded">
{foreach from=$datas item='picture'}
<li>
{if $textField.name}
{l s='%s:' sprintf=$textField.name}
{else}
{l s='Text #%s:' sprintf=$smarty.foreach.typedText.index+1}
{/if}
{$textField.value}
<img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" />
</li>
{/foreach}
</ul>
{/if}
{/foreach}
</td>
<td class="cart_quantity text-center">
{$customization.quantity}
</td>
<td class="cart_total"></td>
</tr>
{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}
{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 *}
</div>
{elseif $type == $CUSTOMIZE_TEXTFIELD}
<ul class="typedText">
{foreach from=$datas item='textField' name='typedText'}
<li>
{if $textField.name}
{l s='%s:' sprintf=$textField.name}
{else}
{l s='Text #%s:' sprintf=$smarty.foreach.typedText.index+1}
{/if}
{$textField.value}
</li>
{/foreach}
</ul>
{/if}
{/foreach}
</td>
<td class="cart_quantity text-center">
{$customization.quantity}
</td>
<td class="cart_total"></td>
</tr>
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
{/foreach}
{* If it exists also some uncustomized products *}
{if $product.quantity-$quantityDisplayed > 0}{block name='shopping_cart_product_line'}{include file="$tpl_dir./shopping-cart-product-line.tpl"}{/block}{/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 *}
{block name='shopping_cart_product_line'}
{include file="./shopping-cart-product-line.tpl" productLast=$product@last productFirst=$product@first}
{/block}
{/foreach}
</tbody>
{if count($discounts)}
<tbody>
{foreach from=$discounts item=discount name=discountLoop}
{if (float)$discount.value_real == 0}
{continue}
{/if}
<tr class="cart_discount {if $smarty.foreach.discountLoop.last}last_item{elseif $smarty.foreach.discountLoop.first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
<td class="cart_discount_price">
<span class="price-discount">
{if $discount.value_real > 0}
{if !$priceDisplay}
{displayPrice price=$discount.value_real*-1}
{else}
{displayPrice price=$discount.value_tax_exc*-1}
{/if}
{/if}
</span>
</td>
<td class="cart_discount_delete">1</td>
<td class="cart_discount_price">
<span class="price-discount">
{if $discount.value_real > 0}
{if !$priceDisplay}
{displayPrice price=$discount.value_real*-1}
{else}
{displayPrice price=$discount.value_tax_exc*-1}
{/if}
{/if}
</span>
</td>
</tr>
{/foreach}
</tbody>
{if count($discounts)}
<tbody>
{foreach from=$discounts item=discount name=discountLoop}
{if (float)$discount.value_real == 0}
{continue}
{/if}
<tr class="cart_discount {if $smarty.foreach.discountLoop.last}last_item{elseif $smarty.foreach.discountLoop.first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
<td class="cart_discount_price">
<span class="price-discount">
{if $discount.value_real > 0}
{if !$priceDisplay}
{displayPrice price=$discount.value_real*-1}
{else}
{displayPrice price=$discount.value_tax_exc*-1}
{/if}
{/if}
</span>
</td>
<td class="cart_discount_delete">1</td>
<td class="cart_discount_price">
<span class="price-discount">
{if $discount.value_real > 0}
{if !$priceDisplay}
{displayPrice price=$discount.value_real*-1}
{else}
{displayPrice price=$discount.value_tax_exc*-1}
{/if}
{/if}
</span>
</td>
</tr>
{/foreach}
</tbody>
{/if}
</table>
</div> <!-- end order-detail-content -->
{/block}
{/if}
{if $opc}
<div id="opc_payment_methods-content">
{/if}
{block name='displayPayment'}
<div id="HOOK_PAYMENT">
{$HOOK_PAYMENT}
</div>
{/if}
</table>
</div> <!-- end order-detail-content -->
{/block}
{if $opc}
</div> <!-- end opc_payment_methods-content -->
{/if}
{else}
<p class="alert alert-warning">{l s='No payment modules have been installed.'}</p>
{/if}
{if !$opc}
<p class="cart_navigation clearfix">
<a href="{$link->getPageLink('order', true, NULL, "step=2")|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
<i class="icon-chevron-left"></i>
{l s='Continue shopping'}
</a>
</p>
{else}
</div> <!-- end opc_payment_methods -->
{if $opc}
<div id="opc_payment_methods-content">
{/if}
{block name='displayPayment'}
<div id="HOOK_PAYMENT">
{$HOOK_PAYMENT}
</div>
{/block}
{if $opc}
</div> <!-- end opc_payment_methods-content -->
{/if}
{else}
<p class="alert alert-warning">{l s='No payment modules have been installed.'}</p>
{/if}
</div> <!-- end HOOK_TOP_PAYMENT -->
{/block}
{if !$opc}
<p class="cart_navigation clearfix">
<a href="{$link->getPageLink('order', true, NULL, "step=2")|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
<i class="icon-chevron-left"></i>
{l s='Continue shopping'}
</a>
</p>
{else}
</div> <!-- end opc_payment_methods -->
{/if}
</div> <!-- end HOOK_TOP_PAYMENT -->

View File

@@ -23,31 +23,37 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='order_payment'}
{if !$opc}
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
{capture name=path}{l s='Your payment method'}{/capture}
<h1 class="page-heading">{l s='Please choose your payment method'}
{if !isset($empty) && !$PS_CATALOG_MODE}
<span class="heading-counter">{l s='Your shopping cart contains:'}
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
</span>
{/if}
</h1>
{/if}
{if !$opc}
{addJsDefL name=txtProduct}{l s='product' js=1}{/addJsDefL}
{addJsDefL name=txtProducts}{l s='products' js=1}{/addJsDefL}
{capture name=path}{l s='Your payment method'}{/capture}
<h1 class="page-heading">{l s='Please choose your payment method'}
{if !isset($empty) && !$PS_CATALOG_MODE}
<span class="heading-counter">{l s='Your shopping cart contains:'}
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
</span>
{/if}
</h1>
{/if}
{if !$opc}
{assign var='current_step' value='payment'}
{if !$opc}
{assign var='current_step' value='payment'}
{block name='order_steps'}
{include file="$tpl_dir./order-steps.tpl"}
{/block}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{else}
<div id="opc_payment_methods" class="opc-main-block">
<div id="opc_payment_methods-overlay" class="opc-overlay" style="display: none;"></div>
{/if}
{if $advanced_payment_api}
{/block}
{else}
<div id="opc_payment_methods" class="opc-main-block">
<div id="opc_payment_methods-overlay" class="opc-overlay" style="display: none;"></div>
{/if}
{if $advanced_payment_api}
{block name='order_payment_advanced'}
{include file="$tpl_dir./order-payment-advanced.tpl"}
{else}
{/block}
{else}
{block name='order_payment_classic'}
{include file = "$tpl_dir./order-payment-classic.tpl"}
{/if}
{/block}
{/block}
{/if}

View File

@@ -42,7 +42,9 @@
</span>
{/capture}
{include file="./errors.tpl"}
{block name='errors'}
{include file="./errors.tpl"}
{/block}
<div class="panel card">
{block name='order_return_heading'}
<h1 class="page-heading bottom-indent">

View File

@@ -33,7 +33,9 @@
{l s='Credit slips you have received after canceled orders'}.
</p>
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{if isset($smarty.get.confirmation) && $smarty.get.confirmation}
<p class="alert alert-success">

View File

@@ -23,59 +23,57 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='order_steps'}
{* Assign a value to 'current_step' to display current style *}
{capture name="url_back"}
{if isset($back) && $back}back={$back}{/if}
{/capture}
{* Assign a value to 'current_step' to display current style *}
{capture name="url_back"}
{if isset($back) && $back}back={$back}{/if}
{/capture}
{if !isset($multi_shipping)}
{assign var='multi_shipping' value='0'}
{/if}
{if !isset($multi_shipping)}
{assign var='multi_shipping' value='0'}
{/if}
{if !$opc && ((!isset($back) || empty($back)) || (isset($back) && preg_match("/[&?]step=/", $back)))}
<!-- Steps -->
<ul class="step clearfix" id="order_step">
<li class="{if $current_step=='summary'}step_current {elseif $current_step=='login'}step_done_last step_done{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}step_done{else}step_todo{/if}{/if} first">
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}
<a href="{$link->getPageLink('order', true)}">
<em>01.</em> {l s='Summary'}
</a>
{else}
<span><em>01.</em> {l s='Summary'}</span>
{/if}
</li>
<li class="{if $current_step=='login'}step_current{elseif $current_step=='address'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}step_done{else}step_todo{/if}{/if} second">
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
<em>02.</em> {l s='Sign in'}
</a>
{else}
<span><em>02.</em> {l s='Sign in'}</span>
{/if}
</li>
<li class="{if $current_step=='address'}step_current{elseif $current_step=='shipping'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if} third">
{if $current_step=='payment' || $current_step=='shipping'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
<em>03.</em> {l s='Address'}
</a>
{else}
<span><em>03.</em> {l s='Address'}</span>
{/if}
</li>
<li class="{if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done step_done_last{else}step_todo{/if}{/if} four">
{if $current_step=='payment'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
<em>04.</em> {l s='Shipping'}
</a>
{else}
<span><em>04.</em> {l s='Shipping'}</span>
{/if}
</li>
<li id="step_end" class="{if $current_step=='payment'}step_current{else}step_todo{/if} last">
<span><em>05.</em> {l s='Payment'}</span>
</li>
</ul>
<!-- /Steps -->
{/if}
{/block}
{if !$opc && ((!isset($back) || empty($back)) || (isset($back) && preg_match("/[&?]step=/", $back)))}
<!-- Steps -->
<ul class="step clearfix" id="order_step">
<li class="{if $current_step=='summary'}step_current {elseif $current_step=='login'}step_done_last step_done{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}step_done{else}step_todo{/if}{/if} first">
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address' || $current_step=='login'}
<a href="{$link->getPageLink('order', true)}">
<em>01.</em> {l s='Summary'}
</a>
{else}
<span><em>01.</em> {l s='Summary'}</span>
{/if}
</li>
<li class="{if $current_step=='login'}step_current{elseif $current_step=='address'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}step_done{else}step_todo{/if}{/if} second">
{if $current_step=='payment' || $current_step=='shipping' || $current_step=='address'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
<em>02.</em> {l s='Sign in'}
</a>
{else}
<span><em>02.</em> {l s='Sign in'}</span>
{/if}
</li>
<li class="{if $current_step=='address'}step_current{elseif $current_step=='shipping'}step_done step_done_last{else}{if $current_step=='payment' || $current_step=='shipping'}step_done{else}step_todo{/if}{/if} third">
{if $current_step=='payment' || $current_step=='shipping'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=1{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
<em>03.</em> {l s='Address'}
</a>
{else}
<span><em>03.</em> {l s='Address'}</span>
{/if}
</li>
<li class="{if $current_step=='shipping'}step_current{else}{if $current_step=='payment'}step_done step_done_last{else}step_todo{/if}{/if} four">
{if $current_step=='payment'}
<a href="{$link->getPageLink('order', true, NULL, "{$smarty.capture.url_back}&step=2{if $multi_shipping}&multi-shipping={$multi_shipping}{/if}")|escape:'html':'UTF-8'}">
<em>04.</em> {l s='Shipping'}
</a>
{else}
<span><em>04.</em> {l s='Shipping'}</span>
{/if}
</li>
<li id="step_end" class="{if $current_step=='payment'}step_current{else}step_todo{/if} last">
<span><em>05.</em> {l s='Payment'}</span>
</li>
</ul>
<!-- /Steps -->
{/if}

View File

@@ -30,7 +30,9 @@
<h1 class="page-subheading">{l s='Forgot your password?'}</h1>
{/block}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{if isset($confirmation) && $confirmation == 1}
<p class="alert alert-success">{l s='Your password has been successfully reset and a confirmation has been sent to your email address:'} {if isset($customer_email)}{$customer_email|escape:'html':'UTF-8'|stripslashes}{/if}</p>

View File

@@ -24,7 +24,9 @@
*}
{block name='product'}
{include file="$tpl_dir./errors.tpl"}
{block name='errors'}
{include file="$tpl_dir./errors.tpl"}
{/block}
{if $errors|@count == 0}
{if !isset($priceDisplayPrecision)}
{assign var='priceDisplayPrecision' value=2}
@@ -196,13 +198,13 @@
{/block}
</div>
{block name='service_products'}
<div id="service_products_cont">
{if isset($service_products_exists) && $service_products_exists}
<div id="service_products_cont">
{if isset($service_products_exists) && $service_products_exists}
{block name='service_products'}
{include file="{$tpl_dir}_partials/service-products.tpl"}
{/if}
</div>
{/block}
{/block}
{/if}
</div>
<div class="product_info_containter">
<!-- tab hook is added here -->
@@ -426,7 +428,9 @@
</p>
{/block}
{include file='./_partials/booking-form.tpl'}
{block name='booking_form'}
{include file='./_partials/booking-form.tpl'}
{/block}
{block name='product_demands'}
{* extra room type demands *}
@@ -559,7 +563,9 @@
{if isset($packItems) && $packItems|@count > 0}
<section id="blockpack">
<h3 class="page-product-heading">{l s='Pack content'}</h3>
{include file="$tpl_dir./product-list.tpl" products=$packItems}
{block name='product_list'}
{include file="$tpl_dir./product-list.tpl" products=$packItems}
{/block}
</section>
{/if}
<!-- tab hook is shifted to left column -->

View File

@@ -23,124 +23,70 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='shopping_cart_advanced'}
<h2>{l s='Cart Summary'}</h2>
{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 *}
{block name='displayBeforeShoppingCartBlock'}
{hook h="displayBeforeShoppingCartBlock"}
{/block}
{block name='shopping_cart_detail'}
<div id="order-detail-content" class="table_block table-responsive">
<table id="cart_summary" class="table table-bordered {if $PS_STOCK_MANAGEMENT}stock-management-on{else}stock-management-off{/if}">
<thead>
<tr>
<th class="cart_product first_item">{l s='Product'}</th>
<th class="cart_description item">{l s='Description'}</th>
{if $PS_STOCK_MANAGEMENT}
{assign var='col_span_subtotal' value='3'}
{assign var='col_span_total' value='7'}
<th class="cart_avail item text-center">{l s='Availability'}</th>
{else}
{assign var='col_span_subtotal' value='2'}
{assign var='col_span_total' value='6'}
{/if}
<th class="cart_unit item text-right">{l s='Unit price'}</th>
<th class="cart_quantity item text-center">{l s='Qty'}</th>
<th colspan="{$col_span_subtotal}" class="cart_total item text-right">{l s='Total'}</th>
</tr>
</thead>
<tfoot>
{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}
<h2>{l s='Cart Summary'}</h2>
{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 *}
{block name='displayBeforeShoppingCartBlock'}
{hook h="displayBeforeShoppingCartBlock"}
{/block}
{block name='shopping_cart_detail'}
<div id="order-detail-content" class="table_block table-responsive">
<table id="cart_summary" class="table table-bordered {if $PS_STOCK_MANAGEMENT}stock-management-on{else}stock-management-off{/if}">
<thead>
<tr>
<th class="cart_product first_item">{l s='Product'}</th>
<th class="cart_description item">{l s='Description'}</th>
{if $PS_STOCK_MANAGEMENT}
{assign var='col_span_subtotal' value='3'}
{assign var='col_span_total' value='7'}
<th class="cart_avail item text-center">{l s='Availability'}</th>
{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='col_span_subtotal' value='2'}
{assign var='col_span_total' value='6'}
{/if}
<th class="cart_unit item text-right">{l s='Unit price'}</th>
<th class="cart_quantity item text-center">{l s='Qty'}</th>
<th colspan="{$col_span_subtotal}" class="cart_total item text-right">{l s='Total'}</th>
</tr>
</thead>
<tfoot>
{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}
<tr class="cart_total_price">
<td rowspan="{$rowspan_total}" colspan="3" id="cart_voucher" class="cart_voucher">
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
</fieldset>
</form>
{if $displayVouchers}
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
<div id="display_cart_vouchers">
{foreach $displayVouchers as $voucher}
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
{/foreach}
</div>
{/if}
{/if}
</td>
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{else}
<tr class="cart_total_price">
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
</fieldset>
</form>
{if $displayVouchers}
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
<div id="display_cart_vouchers">
{foreach $displayVouchers as $voucher}
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
{/foreach}
</div>
{/if}
{/if}
</td>
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
</tr>
{/if}
{else}
{if $use_taxes}
{if $priceDisplay}
<tr class="cart_total_price">
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
<td rowspan="{$rowspan_total}" colspan="3" id="cart_voucher" class="cart_voucher">
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small">
<span>{l s='OK'}</span>
</button>
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
</fieldset>
</form>
{if $displayVouchers}
@@ -153,236 +99,289 @@
{/if}
{/if}
</td>
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total products'}</td>
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax excl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{/if}
<tr {if $total_wrapping == 0} style="display: none;"{/if}>
<td colspan="3" class="text-right">
{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}
</td>
<td colspan="2" class="price-discount price" id="total_wrapping">
{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}
</td>
</tr>
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart)}
<tr class="cart_total_delivery{if !$opc && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping">{l s='Free shipping!'}</td>
</tr>
{else}
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
{if $priceDisplay}
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>
</tr>
{else}
<tr class="cart_total_delivery{if $total_shipping <= 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>
</tr>
{/if}
{else}
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td>
</tr>
{/if}
{/if}
<tr class="cart_total_voucher{if $total_discounts == 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">
{if $display_tax_label}
{if $use_taxes && $priceDisplay == 0}
{l s='Total vouchers (tax incl.)'}
{else}
{l s='Total vouchers (tax excl.)'}
<tr class="cart_total_price">
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small"><span>{l s='OK'}</span></button>
</fieldset>
</form>
{if $displayVouchers}
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
<div id="display_cart_vouchers">
{foreach $displayVouchers as $voucher}
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
{/foreach}
</div>
{/if}
{/if}
{else}
{l s='Total vouchers'}
{/if}
</td>
<td colspan="2" class="price-discount price" id="total_discount">
{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}
</td>
</tr>
{if $use_taxes && $show_taxes && $total_tax != 0 }
{if $priceDisplay != 0}
<tr class="cart_total_price">
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
</tr>
{/if}
<tr class="cart_total_tax">
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Tax'}</td>
<td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td>
</td>
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total products (tax incl.)'}{else}{l s='Total products'}{/if}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products_wt}</td>
</tr>
{/if}
{else}
<tr class="cart_total_price">
<td colspan="{$col_span_subtotal}" class="total_price_container text-right">
<span>{l s='Total'}</span>
{block name='displayCartTotalPriceLabel'}
<div class="hookDisplayProductPriceBlock-price">
{hook h="displayCartTotalPriceLabel"}
</div>
{/block}
<td rowspan="{$rowspan_total}" colspan="2" id="cart_voucher" class="cart_voucher">
{if $voucherAllowed}
<form action="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}" method="post" id="voucher">
<fieldset>
<h4>{l s='Vouchers'}</h4>
<input type="text" class="discount_name form-control" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" />
<input type="hidden" name="submitDiscount" />
<button type="submit" name="submitAddDiscount" class="button btn btn-default button-small">
<span>{l s='OK'}</span>
</button>
</fieldset>
</form>
{if $displayVouchers}
<p id="title" class="title-offers">{l s='Take advantage of our exclusive offers:'}</p>
<div id="display_cart_vouchers">
{foreach $displayVouchers as $voucher}
{if $voucher.code != ''}<span class="voucher_name" data-code="{$voucher.code|escape:'html':'UTF-8'}">{$voucher.code|escape:'html':'UTF-8'}</span> - {/if}{$voucher.name}<br />
{/foreach}
</div>
{/if}
{/if}
</td>
{if $use_taxes}
<td colspan="2" class="price" id="total_price_container">
<span id="total_price">{displayPrice price=$total_price}</span>
</td>
{else}
<td colspan="2" class="price" id="total_price_container">
<span id="total_price">{displayPrice price=$total_price_without_tax}</span>
</td>
{/if}
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total products'}</td>
<td colspan="2" class="price" id="total_product">{displayPrice price=$total_products}</td>
</tr>
{block name='displayAfterShoppingCartBlock'}
{hook h="displayAfterShoppingCartBlock" colspan_total=$col_span_total}
{/block}
</tfoot>
<tbody>
{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}
<tr {if $total_wrapping == 0} style="display: none;"{/if}>
<td colspan="3" class="text-right">
{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}
{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 *}
</td>
<td colspan="2" class="price-discount price" id="total_wrapping">
{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}
</td>
</tr>
{if $total_shipping_tax_exc <= 0 && (!isset($isVirtualCart) || !$isVirtualCart)}
<tr class="cart_total_delivery{if !$opc && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping">{l s='Free shipping!'}</td>
</tr>
{else}
{if $use_taxes && $total_shipping_tax_exc != $total_shipping}
{if $priceDisplay}
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax excl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping">{displayPrice price=$total_shipping_tax_exc}</td>
</tr>
{else}
<tr class="cart_total_delivery{if $total_shipping <= 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total shipping (tax incl.)'}{else}{l s='Total shipping'}{/if}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping}</td>
</tr>
{/if}
{else}
<tr class="cart_total_delivery{if $total_shipping_tax_exc <= 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Total shipping'}</td>
<td colspan="2" class="price" id="total_shipping" >{displayPrice price=$total_shipping_tax_exc}</td>
</tr>
{/if}
{/if}
<tr class="cart_total_voucher{if $total_discounts == 0} unvisible{/if}">
<td colspan="{$col_span_subtotal}" class="text-right">
{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}
</td>
<td colspan="2" class="price-discount price" id="total_discount">
{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}
</td>
</tr>
{if $use_taxes && $show_taxes && $total_tax != 0 }
{if $priceDisplay != 0}
<tr class="cart_total_price">
<td colspan="{$col_span_subtotal}" class="text-right">{if $display_tax_label}{l s='Total (tax excl.)'}{else}{l s='Total'}{/if}</td>
<td colspan="2" class="price" id="total_price_without_tax">{displayPrice price=$total_price_without_tax}</td>
</tr>
{/if}
<tr class="cart_total_tax">
<td colspan="{$col_span_subtotal}" class="text-right">{l s='Tax'}</td>
<td colspan="2" class="price" id="total_tax">{displayPrice price=$total_tax}</td>
</tr>
{/if}
<tr class="cart_total_price">
<td colspan="{$col_span_subtotal}" class="total_price_container text-right">
<span>{l s='Total'}</span>
{block name='displayCartTotalPriceLabel'}
<div class="hookDisplayProductPriceBlock-price">
{hook h="displayCartTotalPriceLabel"}
</div>
{/block}
</td>
{if $use_taxes}
<td colspan="2" class="price" id="total_price_container">
<span id="total_price">{displayPrice price=$total_price}</span>
</td>
{else}
<td colspan="2" class="price" id="total_price_container">
<span id="total_price">{displayPrice price=$total_price_without_tax}</span>
</td>
{/if}
</tr>
{block name='displayAfterShoppingCartBlock'}
{hook h="displayAfterShoppingCartBlock" colspan_total=$col_span_total}
{/block}
</tfoot>
<tbody>
{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 *}
{block name='shopping_cart_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}
<tr
id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
class="product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if $odd} odd{else} even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}">
<td></td>
<td colspan="3">
{foreach $customization.datas as $type => $custom_data}
{if $type == $CUSTOMIZE_FILE}
<div class="customizationUploaded">
<ul class="customizationUploaded">
{foreach $custom_data as $picture}
<li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li>
{/foreach}
</ul>
</div>
{elseif $type == $CUSTOMIZE_TEXTFIELD}
<ul class="typedText">
{foreach $custom_data as $textField}
<li>
{if $textField.name}
{$textField.name}
{else}
{l s='Text #'}{$textField@index+1}
{/if}
: {$textField.value}
</li>
{/block}
{* Then the customized datas ones*}
{if isset($customizedDatas.$productId.$productAttributeId)}
{foreach $customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] as $id_customization=>$customization}
<tr
id="product_{$product.id_product}_{$product.id_product_attribute}_{$id_customization}_{$product.id_address_delivery|intval}"
class="product_customization_for_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if $odd} odd{else} even{/if} customization alternate_item {if $product@last && $customization@last && !count($gift_products)}last_item{/if}">
<td></td>
<td colspan="3">
{foreach $customization.datas as $type => $custom_data}
{if $type == $CUSTOMIZE_FILE}
<div class="customizationUploaded">
<ul class="customizationUploaded">
{foreach $custom_data as $picture}
<li><img src="{$pic_dir}{$picture.value}_small" alt="" class="customizationUploaded" /></li>
{/foreach}
</ul>
{/if}
{/foreach}
</td>
<td class="cart_quantity" colspan="1">
<span>{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span>
</td>
<td>
</td>
</tr>
{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}
</tbody>
{if sizeof($discounts)}
<tbody>
{foreach $discounts as $discount}
{if (float)$discount.value_real == 0}
{continue}
{/if}
<tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
<td class="cart_discount_price">
<span class="price-discount">
{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}
</span>
</div>
{elseif $type == $CUSTOMIZE_TEXTFIELD}
<ul class="typedText">
{foreach $custom_data as $textField}
<li>
{if $textField.name}
{$textField.name}
{else}
{l s='Text #'}{$textField@index+1}
{/if}
: {$textField.value}
</li>
{/foreach}
</ul>
{/if}
{/foreach}
</td>
<td class="cart_discount_delete">1</td>
<td class="price_discount_del text-center">
{if strlen($discount.code)}
<a
href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}"
class="price_discount_delete"
title="{l s='Delete'}">
<i class="icon-trash"></i>
</a>
{/if}
<td class="cart_quantity" colspan="1">
<span>{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}</span>
</td>
<td class="cart_discount_price">
<span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span>
<td>
</td>
</tr>
{assign var='quantityDisplayed' value=$quantityDisplayed+$customization.quantity}
{/foreach}
</tbody>
{* 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}
</table>
</div> <!-- end order-detail-content -->
{/block}
<p class="cart_navigation clearfix">
{if $opc}
{assign var='back_link' value=$link->getPageLink('index')}
{else}
{assign var='back_link' value=$link->getPageLink('order', true, NULL, "step=2")}
{/if}
<a href="{$back_link|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
<i class="icon-chevron-left"></i>
{l s='Continue shopping'}
</a>
<button data-show-if-js="" style="" id="confirmOrder" type="button" class="button btn btn-default standard-checkout button-medium"><span>{l s='Order With Obligation To Pay'}</span></button>
</p>
{strip}
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
{/strip}
{/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}
</tbody>
{if sizeof($discounts)}
<tbody>
{foreach $discounts as $discount}
{if (float)$discount.value_real == 0}
{continue}
{/if}
<tr class="cart_discount {if $discount@last}last_item{elseif $discount@first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}">
<td class="cart_discount_name" colspan="{if $PS_STOCK_MANAGEMENT}3{else}2{/if}">{$discount.name}</td>
<td class="cart_discount_price">
<span class="price-discount">
{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}
</span>
</td>
<td class="cart_discount_delete">1</td>
<td class="price_discount_del text-center">
{if strlen($discount.code)}
<a
href="{if $opc}{$link->getPageLink('order-opc', true)}{else}{$link->getPageLink('order', true)}{/if}?deleteDiscount={$discount.id_discount}"
class="price_discount_delete"
title="{l s='Delete'}">
<i class="icon-trash"></i>
</a>
{/if}
</td>
<td class="cart_discount_price">
<span class="price-discount price">{if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if}</span>
</td>
</tr>
{/foreach}
</tbody>
{/if}
</table>
</div> <!-- end order-detail-content -->
{/block}
<p class="cart_navigation clearfix">
{if $opc}
{assign var='back_link' value=$link->getPageLink('index')}
{else}
{assign var='back_link' value=$link->getPageLink('order', true, NULL, "step=2")}
{/if}
<a href="{$back_link|escape:'html':'UTF-8'}" title="{l s='Previous'}" class="button-exclusive btn btn-default">
<i class="icon-chevron-left"></i>
{l s='Continue shopping'}
</a>
<button data-show-if-js="" style="" id="confirmOrder" type="button" class="button btn btn-default standard-checkout button-medium"><span>{l s='Order With Obligation To Pay'}</span></button>
</p>
{strip}
{addJsDef deliveryAddress=$cart->id_address_delivery|intval}
{/strip}

View File

@@ -23,465 +23,465 @@
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='shopping_cart'}
{capture name=path}{l s='Your shopping cart'}{/capture}
{capture name=path}{l s='Your shopping cart'}{/capture}
{* <h1 id="cart_title" class="page-heading">{l s='Shopping-cart summary'}
{if !isset($empty) && !$PS_CATALOG_MODE}
<span class="heading-counter">{l s='Your shopping cart contains:'}
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
</span>
{/if}
</h1> *}
{if isset($account_created)}
<p class="alert alert-success">
{l s='Your account has been created.'}
</p>
{* <h1 id="cart_title" class="page-heading">{l s='Shopping-cart summary'}
{if !isset($empty) && !$PS_CATALOG_MODE}
<span class="heading-counter">{l s='Your shopping cart contains:'}
<span id="summary_products_quantity">{$productNumber} {if $productNumber == 1}{l s='product'}{else}{l s='products'}{/if}</span>
</span>
{/if}
</h1> *}
{assign var='current_step' value='summary'}
{if isset($account_created)}
<p class="alert alert-success">
{l s='Your account has been created.'}
</p>
{/if}
{assign var='current_step' value='summary'}
{block name='errors'}
{include file="$tpl_dir./order-steps.tpl"}
{/block}
{if isset($empty)}
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
{elseif $PS_CATALOG_MODE}
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
{else}
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
{if isset($lastProductAdded) AND $lastProductAdded}
<div class="cart_last_product">
<div class="cart_last_product_header">
<div class="left">{l s='Last product added'}</div>
</div>
<a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'html':'UTF-8'}">
<img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$lastProductAdded.name|escape:'html':'UTF-8'}"/>
</a>
<div class="cart_last_product_content">
<p class="product-name">
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
{$lastProductAdded.name|escape:'html':'UTF-8'}
</a>
</p>
{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}
<small>
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
{$lastProductAdded.attributes|escape:'html':'UTF-8'}
</a>
</small>
{/if}
</div>
{if isset($empty)}
<p class="alert alert-warning">{l s='Your shopping cart is empty.'}</p>
{elseif $PS_CATALOG_MODE}
<p class="alert alert-warning">{l s='This store has not accepted your new order.'}</p>
{else}
<p id="emptyCartWarning" class="alert alert-warning unvisible">{l s='Your shopping cart is empty.'}</p>
{if isset($lastProductAdded) AND $lastProductAdded}
<div class="cart_last_product">
<div class="cart_last_product_header">
<div class="left">{l s='Last product added'}</div>
</div>
{/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 *}
{block name='displayBeforeShoppingCartBlock'}
{hook h="displayBeforeShoppingCartBlock"}
{/block}
{block name='shopping_cart_detail'}
<div class="order-detail-content">
{if isset($cart_htl_data) && $cart_htl_data}
{block name='shopping_cart_heading'}
<p class="cart_section_title">{l s='rooms information'}</p>
{/block}
{foreach from=$cart_htl_data key=data_k item=data_v}
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
<div class="row cart_product_line">
<div class="col-sm-2 product-img-block">
{block name='shopping_cart_room_type_cover_image'}
<p>
<a href="{$link->getProductLink($data_v['id_product'])}">
<img src="{$data_v['cover_img']}" class="img-responsive" />
</a>
</p>
<p class="room_remove_block">
<a href="{$rm_v['link']}"><i class="icon-trash"></i> &nbsp;{l s='Remove'}</a>
</p>
{block name='displayCartRoomImageAfter'}
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
{/block}
{/block}
</div>
<div class="col-sm-10">
<div class="room-info-container">
{block name='shopping_cart_room_type_cover_image_mobile'}
<div class="product-xs-img">
<a href="{$link->getProductLink($data_v['id_product'])}">
<img src="{$data_v['cover_img']}" class="img-responsive" />
</a>
</div>
{/block}
{block name='shopping_cart_room_detail'}
<div class="product-xs-info">
{block name='shopping_cart_room_type_name'}
<p class="product-name">
<a href="{$link->getProductLink($data_v['id_product'])}">
{$data_v['name']}
</a>
<a class="btn btn-default pull-right product-xs-remove" href="{$rm_v['link']}"><i class="icon-trash"></i></a>
{block name='displayCartRoomTypeNameAfter'}
{hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']}
{/block}
</p>
{/block}
{block name='shopping_cart_room_type_hotel_location'}
{if isset($data_v['hotel_info']['location'])}
<p class="hotel-location">
<i class="icon-map-marker"></i> &nbsp;{$data_v['hotel_info']['location']}
</p>
{/if}
{/block}
{block name='displayCartRoomTypeInfo'}
{hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
{/block}
</div>
{/block}
</div>
{block name='shopping_cart_room_type_features'}
{if isset($data_v['hotel_info']['room_features'])}
<div class="room-type-features">
{foreach $data_v['hotel_info']['room_features'] as $feature}
<span class="room-type-feature">
<img src="{$THEME_DIR}img/icon/form-ok-circle.svg" /> {$feature['name']}
</span>
{/foreach}
</div>
{/if}
{/block}
{block name='shopping_cart_room_type_booking_information'}
<div class="room_duration_block">
<div class="col-sm-3 col-xs-6">
<p class="room_duration_block_head">{l s='CHECK IN'}</p>
<p class="room_duration_block_value">{$rm_v['data_form']|date_format:"%d %b, %a"}</p>
</div>
<div class="col-sm-3 col-xs-6">
<p class="room_duration_block_head">{l s='CHECK OUT'}</p>
<p class="room_duration_block_value">{$rm_v['data_to']|date_format:"%d %b, %a"}</p>
</div>
<div class="col-sm-6 col-xs-6">
<p class="room_duration_block_head">{l s='OCCUPANCY'}</p>
<p class="room_duration_block_value">
{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}
</p>
</div>
</div>
{/block}
{block name='shopping_cart_room_type_price_detail'}
<div class="row room_price_detail_block">
{block name='shopping_cart_room_type_and_service_price'}
<div class="col-sm-7 margin-btm-sm-10">
{if $rm_v['amount'] && isset($rm_v['total_price_without_discount']) && $rm_v['total_price_without_discount'] > $rm_v['amount']}
<span class="room_type_old_price">
{displayPrice price=$rm_v['total_price_without_discount']|floatval}
</span>
{/if}
<div class="row">
<div class="{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}col-xs-6 plus-sign{else}col-xs-12{/if}">
<div class="price_block">
<p class="total_price">
<span>
{displayPrice price=($rm_v['amount'])}
</span>
{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)}
<span class="room-price-detail">
<img src="{$img_dir}icon/icon-info.svg" />
</span>
<div class="room-price-detail-container" style="display: none;">
<div class="room-price-detail-tooltip-cont">
<div><label>{l s='Room price'}</label> : {displayPrice price=($rm_v['amount_without_auto_add'])}</div>
<div><label>{l s='Additional charges'}</label> : {displayPrice price=($rm_v['amount'] - $rm_v['amount_without_auto_add'])}</div>
</div>
</div>
{/if}
</p>
<p class="total_price_detial">
{l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
</p>
</div>
</div>
{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}
<div class="col-xs-6">
<div class="demand_price_block">
<p class="demand_total_price">
<span>
{displayPrice price=$rm_v['demand_price']}
</span>
</p>
<p class="total_price_detial">
<a data-date_from="{$rm_v['data_form']|escape:'html':'UTF-8'}" data-date_to="{$rm_v['data_to']|escape:'html':'UTF-8'}" data-id_product="{$data_v['id_product']|escape:'html':'UTF-8'}" data-action="{$link->getPageLink('order-opc')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
{l s='Extra Services'}
</a>
</p>
</div>
</div>
{/if}
</div>
</div>
{/block}
{block name='shopping_cart_room_type_total_price'}
<div class="col-sm-5">
<div class="total_price_block col-xs-12">
<p class="total_price">
<span>
{displayPrice price=($rm_v['amount']+$rm_v['demand_price'])}
</span>
</p>
<p class="total_price_detial">
{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}
</p>
</div>
</div>
{/block}
</div>
{/block}
{block name='displayCartProductContentAfter'}
{hook h='displayCartProductContentAfter' cart_detail=$data_v key=$rm_k}
{/block}
</div>
</div>
{block name='displayCartProductAfter'}
{hook h='displayCartProductAfter' cart_detail=$data_v key=$rm_k}
{/block}
<hr>
{/foreach}
{/foreach}
<a class="cart_last_product_img" href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, $lastProductAdded.id_shop)|escape:'html':'UTF-8'}">
<img src="{$link->getImageLink($lastProductAdded.link_rewrite, $lastProductAdded.id_image, 'small_default')|escape:'html':'UTF-8'}" alt="{$lastProductAdded.name|escape:'html':'UTF-8'}"/>
</a>
<div class="cart_last_product_content">
<p class="product-name">
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
{$lastProductAdded.name|escape:'html':'UTF-8'}
</a>
</p>
{if isset($lastProductAdded.attributes) && $lastProductAdded.attributes}
<small>
<a href="{$link->getProductLink($lastProductAdded.id_product, $lastProductAdded.link_rewrite, $lastProductAdded.category, null, null, null, $lastProductAdded.id_product_attribute)|escape:'html':'UTF-8'}">
{$lastProductAdded.attributes|escape:'html':'UTF-8'}
</a>
</small>
{/if}
{if isset($cart_normal_data) && $cart_normal_data}
<p class="cart_section_title">{l s='service product information'}</p>
{foreach from=$cart_normal_data key=data_k item=product}
</div>
</div>
{/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 *}
{block name='displayBeforeShoppingCartBlock'}
{hook h="displayBeforeShoppingCartBlock"}
{/block}
{block name='shopping_cart_detail'}
<div class="order-detail-content">
{if isset($cart_htl_data) && $cart_htl_data}
{block name='shopping_cart_heading'}
<p class="cart_section_title">{l s='rooms information'}</p>
{/block}
{foreach from=$cart_htl_data key=data_k item=data_v}
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
<div class="row cart_product_line">
<div class="col-sm-2 product-img-block">
<p>
<a href="{$link->getProductLink($product['id_product'])}">
<img src="{$product['cover_img']}" class="img-responsive" />
</a>
</p>
<p class="product_remove_block">
<a id="{$product.id_product}_{$product.id_hotel}" class="cart_quantity_delete" href="{$link->getPageLink('cart', true, NULL, "delete=1&amp;id_product={$product.id_product|intval}&amp;token={$token_cart}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Delete'}">
<i class="icon-trash"></i> &nbsp;{l s='Remove'}
</a>
{* <a href="{$rm_v['link']}"><i class="icon-trash"></i> &nbsp;{l s='Remove'}</a> *}
</p>
{block name='displayCartProductImageAfter'}
{hook h='displayCartProductImageAfter' id_product=$product['id_product']}
{block name='shopping_cart_room_type_cover_image'}
<p>
<a href="{$link->getProductLink($data_v['id_product'])}">
<img src="{$data_v['cover_img']}" class="img-responsive" />
</a>
</p>
<p class="room_remove_block">
<a href="{$rm_v['link']}"><i class="icon-trash"></i> &nbsp;{l s='Remove'}</a>
</p>
{block name='displayCartRoomImageAfter'}
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
{/block}
{/block}
</div>
<div class="col-sm-10">
<div class="product-info-container">
<div class="product-xs-img">
<a href="{$link->getProductLink($product['id_product'])}">
<img src="{$product['cover_img']}" class="img-responsive" />
</a>
</div>
<div class="product-xs-info">
<p class="product-name">
<a href="{$link->getProductLink($product['id_product'])}">
{$product['name']}
<div class="room-info-container">
{block name='shopping_cart_room_type_cover_image_mobile'}
<div class="product-xs-img">
<a href="{$link->getProductLink($data_v['id_product'])}">
<img src="{$data_v['cover_img']}" class="img-responsive" />
</a>
<a class="btn btn-default pull-right product-xs-remove" href="{$link->getPageLink('cart', true, NULL, "delete=1&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_address_delivery={$product.id_address_delivery}&amp;token={$token_cart}")|escape:'html':'UTF-8'}"><i class="icon-trash"></i></a>
</p>
{if isset($product['hotel_info']['location'])}
<p class="hotel-location">
<i class="icon-map-marker"></i> &nbsp;{$product['hotel_info']['location']}
</p>
{/if}
</div>
</div>
{/block}
{block name='shopping_cart_room_detail'}
<div class="product-xs-info">
{block name='shopping_cart_room_type_name'}
<p class="product-name">
<a href="{$link->getProductLink($data_v['id_product'])}">
{$data_v['name']}
</a>
<a class="btn btn-default pull-right product-xs-remove" href="{$rm_v['link']}"><i class="icon-trash"></i></a>
{block name='displayCartRoomTypeNameAfter'}
{hook h='displayCartRoomTypeNameAfter' id_product=$data_v['id_product']}
{/block}
</p>
{/block}
{block name='shopping_cart_room_type_hotel_location'}
{if isset($data_v['hotel_info']['location'])}
<p class="hotel-location">
<i class="icon-map-marker"></i> &nbsp;{$data_v['hotel_info']['location']}
</p>
{/if}
{/block}
{block name='displayCartRoomTypeInfo'}
{hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
{/block}
</div>
{/block}
</div>
<div class="row product_price_detail_block">
<div class="col-sm-4">
<div class="price_block">
<p class="total_price">
<span>
{if $priceDisplay}{displayPrice price=($product['unit_price_tax_excl'])}{else}{displayPrice price=($product['unit_price_tax_incl'])}{/if}
</span>
</p>
<p class="total_price_detial">
{l s='Unit price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
{block name='shopping_cart_room_type_features'}
{if isset($data_v['hotel_info']['room_features'])}
<div class="room-type-features">
{foreach $data_v['hotel_info']['room_features'] as $feature}
<span class="room-type-feature">
<img src="{$THEME_DIR}img/icon/form-ok-circle.svg" /> {$feature['name']}
</span>
{/foreach}
</div>
{/if}
{/block}
{block name='shopping_cart_room_type_booking_information'}
<div class="room_duration_block">
<div class="col-sm-3 col-xs-6">
<p class="room_duration_block_head">{l s='CHECK IN'}</p>
<p class="room_duration_block_value">{$rm_v['data_form']|date_format:"%d %b, %a"}</p>
</div>
<div class="col-sm-3 col-xs-6">
<p class="room_duration_block_head">{l s='CHECK OUT'}</p>
<p class="room_duration_block_value">{$rm_v['data_to']|date_format:"%d %b, %a"}</p>
</div>
<div class="col-sm-6 col-xs-6">
<p class="room_duration_block_head">{l s='OCCUPANCY'}</p>
<p class="room_duration_block_value">
{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}
</p>
</div>
</div>
<div class="col-sm-4">
<div class="product_quantity_block">
<p class="">
<span>
{if $product['quantity'] <= 9}0{$product['quantity']}{else}{$product['quantity']}{/if}
</span>
</p>
<p class="product_quantity_detial">
{l s='Total Qty'}
</p>
</div>
{/block}
{block name='shopping_cart_room_type_price_detail'}
<div class="row room_price_detail_block">
{block name='shopping_cart_room_type_and_service_price'}
<div class="col-sm-7 margin-btm-sm-10">
{if $rm_v['amount'] && isset($rm_v['total_price_without_discount']) && $rm_v['total_price_without_discount'] > $rm_v['amount']}
<span class="room_type_old_price">
{displayPrice price=$rm_v['total_price_without_discount']|floatval}
</span>
{/if}
<div class="row">
<div class="{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}col-xs-6 plus-sign{else}col-xs-12{/if}">
<div class="price_block">
<p class="total_price">
<span>
{displayPrice price=($rm_v['amount'])}
</span>
{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)}
<span class="room-price-detail">
<img src="{$img_dir}icon/icon-info.svg" />
</span>
<div class="room-price-detail-container" style="display: none;">
<div class="room-price-detail-tooltip-cont">
<div><label>{l s='Room price'}</label> : {displayPrice price=($rm_v['amount_without_auto_add'])}</div>
<div><label>{l s='Additional charges'}</label> : {displayPrice price=($rm_v['amount'] - $rm_v['amount_without_auto_add'])}</div>
</div>
</div>
{/if}
</p>
<p class="total_price_detial">
{l s='Total rooms price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
</p>
</div>
</div>
{if (isset($data_v['extra_demands']) && $data_v['extra_demands']) || (isset($data_v['service_products']) && $data_v['service_products'])}
<div class="col-xs-6">
<div class="demand_price_block">
<p class="demand_total_price">
<span>
{displayPrice price=$rm_v['demand_price']}
</span>
</p>
<p class="total_price_detial">
<a data-date_from="{$rm_v['data_form']|escape:'html':'UTF-8'}" data-date_to="{$rm_v['data_to']|escape:'html':'UTF-8'}" data-id_product="{$data_v['id_product']|escape:'html':'UTF-8'}" data-action="{$link->getPageLink('order-opc')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
{l s='Extra Services'}
</a>
</p>
</div>
</div>
{/if}
</div>
</div>
{/block}
{block name='shopping_cart_room_type_total_price'}
<div class="col-sm-5">
<div class="total_price_block col-xs-12">
<p class="total_price">
<span>
{displayPrice price=($rm_v['amount']+$rm_v['demand_price'])}
</span>
</p>
<p class="total_price_detial">
{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}
</p>
</div>
</div>
{/block}
</div>
<div class="col-sm-4">
<div class="total_price_block pull-right">
<p class="total_price">
<span>
{if $priceDisplay}{displayPrice price=($product['total_price_tax_excl'])}{else}{displayPrice price=($product['total_price_tax_incl'])}{/if}
</span>
</p>
<p class="total_price_detial">
{l s='Total price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
</p>
</div>
</div>
</div>
{/block}
{block name='displayCartProductContentAfter'}
{hook h='displayCartProductContentAfter' cart_detail=$data_v key=$rm_k}
{/block}
</div>
</div>
{block name='displayCartProductAfter'}
{hook h='displayCartProductAfter' cart_detail=$data_v key=$rm_k}
{/block}
<hr>
{/foreach}
{/if}
{* proceed only if no order restrict errors are there *}
{if !$orderRestrictErr}
{block name='shopping_cart_proceed_action'}
<div class="row">
<div class="col-sm-12 proceed_btn_block">
<a class="btn btn-default button button-medium pull-right" href="{$link->getPageLink('order-opc', null, null, ['proceed_to_customer_dtl' => 1])}" title="Proceed to checkout" rel="nofollow">
<span>
{l s='Proceed'}
</span>
{/foreach}
{/if}
{if isset($cart_normal_data) && $cart_normal_data}
<p class="cart_section_title">{l s='service product information'}</p>
{foreach from=$cart_normal_data key=data_k item=product}
<div class="row cart_product_line">
<div class="col-sm-2 product-img-block">
<p>
<a href="{$link->getProductLink($product['id_product'])}">
<img src="{$product['cover_img']}" class="img-responsive" />
</a>
</p>
<p class="product_remove_block">
<a id="{$product.id_product}_{$product.id_hotel}" class="cart_quantity_delete" href="{$link->getPageLink('cart', true, NULL, "delete=1&amp;id_product={$product.id_product|intval}&amp;token={$token_cart}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Delete'}">
<i class="icon-trash"></i> &nbsp;{l s='Remove'}
</a>
{* <a href="{$rm_v['link']}"><i class="icon-trash"></i> &nbsp;{l s='Remove'}</a> *}
</p>
{block name='displayCartProductImageAfter'}
{hook h='displayCartProductImageAfter' id_product=$product['id_product']}
{/block}
</div>
<div class="col-sm-10">
<div class="product-info-container">
<div class="product-xs-img">
<a href="{$link->getProductLink($product['id_product'])}">
<img src="{$product['cover_img']}" class="img-responsive" />
</a>
</div>
<div class="product-xs-info">
<p class="product-name">
<a href="{$link->getProductLink($product['id_product'])}">
{$product['name']}
</a>
<a class="btn btn-default pull-right product-xs-remove" href="{$link->getPageLink('cart', true, NULL, "delete=1&amp;id_product={$product.id_product|intval}&amp;ipa={$product.id_product_attribute|intval}&amp;id_address_delivery={$product.id_address_delivery}&amp;token={$token_cart}")|escape:'html':'UTF-8'}"><i class="icon-trash"></i></a>
</p>
{if isset($product['hotel_info']['location'])}
<p class="hotel-location">
<i class="icon-map-marker"></i> &nbsp;{$product['hotel_info']['location']}
</p>
{/if}
</div>
</div>
<div class="row product_price_detail_block">
<div class="col-sm-4">
<div class="price_block">
<p class="total_price">
<span>
{if $priceDisplay}{displayPrice price=($product['unit_price_tax_excl'])}{else}{displayPrice price=($product['unit_price_tax_incl'])}{/if}
</span>
</p>
<p class="total_price_detial">
{l s='Unit price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
</p>
</div>
</div>
<div class="col-sm-4">
<div class="product_quantity_block">
<p class="">
<span>
{if $product['quantity'] <= 9}0{$product['quantity']}{else}{$product['quantity']}{/if}
</span>
</p>
<p class="product_quantity_detial">
{l s='Total Qty'}
</p>
</div>
</div>
<div class="col-sm-4">
<div class="total_price_block pull-right">
<p class="total_price">
<span>
{if $priceDisplay}{displayPrice price=($product['total_price_tax_excl'])}{else}{displayPrice price=($product['total_price_tax_incl'])}{/if}
</span>
</p>
<p class="total_price_detial">
{l s='Total price'} {if $display_tax_label}{if $priceDisplay} {l s='(Excl.'} {else}{l s='(Incl.)'}{/if} {l s='all taxes.)'}{/if}
</p>
</div>
</div>
</div>
</div>
{/block}
{/if}
</div>
{/block}
{if $show_option_allow_separate_package}
<p>
<label for="allow_seperated_package" class="checkbox inline">
<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} autocomplete="off"/>
{l s='Send available products first'}
</label>
</p>
{/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}
<div class="order_delivery clearfix row">
{if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)}
{if $delivery->id}
<div class="col-xs-12 col-sm-6"{if !$have_non_virtual_products} style="display: none;"{/if}>
<ul id="delivery_address" class="address item box">
<li><h3 class="page-subheading">{l s='Delivery address'}&nbsp;<span class="address_alias">({$delivery->alias})</span></h3></li>
{if $delivery->company}<li class="address_company">{$delivery->company|escape:'html':'UTF-8'}</li>{/if}
<li class="address_name">{$delivery->firstname|escape:'html':'UTF-8'} {$delivery->lastname|escape:'html':'UTF-8'}</li>
<li class="address_address1">{$delivery->address1|escape:'html':'UTF-8'}</li>
{if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'html':'UTF-8'}</li>{/if}
<li class="address_city">{$delivery->postcode|escape:'html':'UTF-8'} {$delivery->city|escape:'html':'UTF-8'}</li>
<li class="address_country">{$delivery->country|escape:'html':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'html':'UTF-8'}){/if}</li>
</ul>
</div>
{/if}
{if $invoice->id}
<div class="col-xs-12 col-sm-6">
<ul id="invoice_address" class="address alternate_item box">
<li><h3 class="page-subheading">{l s='Invoice address'}&nbsp;<span class="address_alias">({$invoice->alias})</span></h3></li>
{if $invoice->company}<li class="address_company">{$invoice->company|escape:'html':'UTF-8'}</li>{/if}
<li class="address_name">{$invoice->firstname|escape:'html':'UTF-8'} {$invoice->lastname|escape:'html':'UTF-8'}</li>
<li class="address_address1">{$invoice->address1|escape:'html':'UTF-8'}</li>
{if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'html':'UTF-8'}</li>{/if}
<li class="address_city">{$invoice->postcode|escape:'html':'UTF-8'} {$invoice->city|escape:'html':'UTF-8'}</li>
<li class="address_country">{$invoice->country|escape:'html':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'html':'UTF-8'}){/if}</li>
</ul>
</div>
{/if}
{else}
{foreach from=$formattedAddresses key=k item=address}
<div class="col-xs-12 col-sm-6"{if $k == 'delivery' && !$have_non_virtual_products} style="display: none;"{/if}>
<ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if} box">
<li>
<h3 class="page-subheading">
{if $k eq 'invoice'}
{l s='Invoice address'}
{elseif $k eq 'delivery' && $delivery->id}
{l s='Delivery address'}
{/if}
{if isset($address.object.alias)}
<span class="address_alias">({$address.object.alias})</span>
{/if}
</h3>
</li>
{foreach $address.ordered as $pattern}
{assign var=addressKey value=" "|explode:$pattern}
{assign var=addedli value=false}
{foreach from=$addressKey item=key name=foo}
{$key_str = $key|regex_replace:AddressFormat::_CLEANING_REGEX_:""}
{if isset($address.formated[$key_str]) && !empty($address.formated[$key_str])}
{if (!$addedli)}
{$addedli = true}
<li><span class="{if isset($addresses_style[$key_str])}{$addresses_style[$key_str]}{/if}">
{/if}
{$address.formated[$key_str]|escape:'html':'UTF-8'}
{/if}
{if ($smarty.foreach.foo.last && $addedli)}
</span></li>
{/if}
{/foreach}
{/foreach}
</ul>
</div>
{/foreach}
{/if}
</div>
{/if}
{block name='displayShoppingCartFooter'}
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
{/block}
{* <p class="cart_navigation clearfix">
{if !$opc}
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&amp;back={$back}')|escape:'html':'UTF-8'}{else}{$link->getPageLink('order', true, NULL, 'step=1')|escape:'html':'UTF-8'}{/if}" class="button btn btn-default standard-checkout button-medium" title="{l s='Proceed to checkout'}">
<span>{l s='Proceed to checkout'}<i class="icon-chevron-right right"></i></span>
</a>
{/if}
<a href="{if (isset($smarty.server.HTTP_REFERER) && ($smarty.server.HTTP_REFERER == $link->getPageLink('order', true) || $smarty.server.HTTP_REFERER == $link->getPageLink('order-opc', true) || strstr($smarty.server.HTTP_REFERER, 'step='))) || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}{else}{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}{/if}" class="button-exclusive btn btn-default" title="{l s='Continue shopping'}">
<i class="icon-chevron-left"></i>{l s='Continue shopping'}
</a>
</p> *}
<div class="clear"></div>
<div class="cart_navigation_extra">
{block name='displayShoppingCart'}
<div id="HOOK_SHOPPING_CART_EXTRA">{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}</div>
{/block}
</div>
{block name='shopping_cart_js_vars'}
{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}
{/block}
{/if}
{* Fancybox for extra demands*}
{block name='shopping_cart_extra_services'}
<div style="display:none;" id="rooms_extra_services">
{* <div id="rooms_type_extra_services"> *}
{* <div class="panel">
<div class="rooms_extra_demands_head">
<h3>{l s='Additional Facilities'}</h3>
<p class="rooms_extra_demands_text">{l s='Add below additional facilities to the rooms for better hotel experience'}</p>
</div>
<div id="room_type_demands_desc"></div>
</div> *}
{* </div> *}
<hr>
{/foreach}
{/if}
{* proceed only if no order restrict errors are there *}
{if !$orderRestrictErr}
{block name='shopping_cart_proceed_action'}
<div class="row">
<div class="col-sm-12 proceed_btn_block">
<a class="btn btn-default button button-medium pull-right" href="{$link->getPageLink('order-opc', null, null, ['proceed_to_customer_dtl' => 1])}" title="Proceed to checkout" rel="nofollow">
<span>
{l s='Proceed'}
</span>
</a>
</div>
</div>
{/block}
{/if}
</div>
{/block}
{if $show_option_allow_separate_package}
<p>
<label for="allow_seperated_package" class="checkbox inline">
<input type="checkbox" name="allow_seperated_package" id="allow_seperated_package" {if $cart->allow_seperated_package}checked="checked"{/if} autocomplete="off"/>
{l s='Send available products first'}
</label>
</p>
{/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}
<div class="order_delivery clearfix row">
{if !isset($formattedAddresses) || (count($formattedAddresses.invoice) == 0 && count($formattedAddresses.delivery) == 0) || (count($formattedAddresses.invoice.formated) == 0 && count($formattedAddresses.delivery.formated) == 0)}
{if $delivery->id}
<div class="col-xs-12 col-sm-6"{if !$have_non_virtual_products} style="display: none;"{/if}>
<ul id="delivery_address" class="address item box">
<li><h3 class="page-subheading">{l s='Delivery address'}&nbsp;<span class="address_alias">({$delivery->alias})</span></h3></li>
{if $delivery->company}<li class="address_company">{$delivery->company|escape:'html':'UTF-8'}</li>{/if}
<li class="address_name">{$delivery->firstname|escape:'html':'UTF-8'} {$delivery->lastname|escape:'html':'UTF-8'}</li>
<li class="address_address1">{$delivery->address1|escape:'html':'UTF-8'}</li>
{if $delivery->address2}<li class="address_address2">{$delivery->address2|escape:'html':'UTF-8'}</li>{/if}
<li class="address_city">{$delivery->postcode|escape:'html':'UTF-8'} {$delivery->city|escape:'html':'UTF-8'}</li>
<li class="address_country">{$delivery->country|escape:'html':'UTF-8'} {if $delivery_state}({$delivery_state|escape:'html':'UTF-8'}){/if}</li>
</ul>
</div>
{/if}
{if $invoice->id}
<div class="col-xs-12 col-sm-6">
<ul id="invoice_address" class="address alternate_item box">
<li><h3 class="page-subheading">{l s='Invoice address'}&nbsp;<span class="address_alias">({$invoice->alias})</span></h3></li>
{if $invoice->company}<li class="address_company">{$invoice->company|escape:'html':'UTF-8'}</li>{/if}
<li class="address_name">{$invoice->firstname|escape:'html':'UTF-8'} {$invoice->lastname|escape:'html':'UTF-8'}</li>
<li class="address_address1">{$invoice->address1|escape:'html':'UTF-8'}</li>
{if $invoice->address2}<li class="address_address2">{$invoice->address2|escape:'html':'UTF-8'}</li>{/if}
<li class="address_city">{$invoice->postcode|escape:'html':'UTF-8'} {$invoice->city|escape:'html':'UTF-8'}</li>
<li class="address_country">{$invoice->country|escape:'html':'UTF-8'} {if $invoice_state}({$invoice_state|escape:'html':'UTF-8'}){/if}</li>
</ul>
</div>
{/if}
{else}
{foreach from=$formattedAddresses key=k item=address}
<div class="col-xs-12 col-sm-6"{if $k == 'delivery' && !$have_non_virtual_products} style="display: none;"{/if}>
<ul class="address {if $address@last}last_item{elseif $address@first}first_item{/if} {if $address@index % 2}alternate_item{else}item{/if} box">
<li>
<h3 class="page-subheading">
{if $k eq 'invoice'}
{l s='Invoice address'}
{elseif $k eq 'delivery' && $delivery->id}
{l s='Delivery address'}
{/if}
{if isset($address.object.alias)}
<span class="address_alias">({$address.object.alias})</span>
{/if}
</h3>
</li>
{foreach $address.ordered as $pattern}
{assign var=addressKey value=" "|explode:$pattern}
{assign var=addedli value=false}
{foreach from=$addressKey item=key name=foo}
{$key_str = $key|regex_replace:AddressFormat::_CLEANING_REGEX_:""}
{if isset($address.formated[$key_str]) && !empty($address.formated[$key_str])}
{if (!$addedli)}
{$addedli = true}
<li><span class="{if isset($addresses_style[$key_str])}{$addresses_style[$key_str]}{/if}">
{/if}
{$address.formated[$key_str]|escape:'html':'UTF-8'}
{/if}
{if ($smarty.foreach.foo.last && $addedli)}
</span></li>
{/if}
{/foreach}
{/foreach}
</ul>
</div>
{/foreach}
{/if}
</div>
{/if}
{block name='displayShoppingCartFooter'}
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
{/block}
{* <p class="cart_navigation clearfix">
{if !$opc}
<a href="{if $back}{$link->getPageLink('order', true, NULL, 'step=1&amp;back={$back}')|escape:'html':'UTF-8'}{else}{$link->getPageLink('order', true, NULL, 'step=1')|escape:'html':'UTF-8'}{/if}" class="button btn btn-default standard-checkout button-medium" title="{l s='Proceed to checkout'}">
<span>{l s='Proceed to checkout'}<i class="icon-chevron-right right"></i></span>
</a>
{/if}
<a href="{if (isset($smarty.server.HTTP_REFERER) && ($smarty.server.HTTP_REFERER == $link->getPageLink('order', true) || $smarty.server.HTTP_REFERER == $link->getPageLink('order-opc', true) || strstr($smarty.server.HTTP_REFERER, 'step='))) || !isset($smarty.server.HTTP_REFERER)}{$link->getPageLink('index')}{else}{$smarty.server.HTTP_REFERER|escape:'html':'UTF-8'|secureReferrer}{/if}" class="button-exclusive btn btn-default" title="{l s='Continue shopping'}">
<i class="icon-chevron-left"></i>{l s='Continue shopping'}
</a>
</p> *}
<div class="clear"></div>
<div class="cart_navigation_extra">
{block name='displayShoppingCart'}
<div id="HOOK_SHOPPING_CART_EXTRA">{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}</div>
{/block}
</div>
{block name='shopping_cart_js_vars'}
{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}
{/block}
{/if}
{* Fancybox for extra demands*}
{block name='shopping_cart_extra_services'}
<div style="display:none;" id="rooms_extra_services">
{* <div id="rooms_type_extra_services"> *}
{* <div class="panel">
<div class="rooms_extra_demands_head">
<h3>{l s='Additional Facilities'}</h3>
<p class="rooms_extra_demands_text">{l s='Add below additional facilities to the rooms for better hotel experience'}</p>
</div>
<div id="room_type_demands_desc"></div>
</div> *}
{* </div> *}
</div>
{/block}