Added more blocks in details in some template files, fixed fatal error on order-detial caused by blocks
This commit is contained in:
@@ -23,246 +23,275 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{block name='block_cart'}
|
||||
{block name='blockcart'}
|
||||
<!-- MODULE Block cart -->
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
<div class="header-top-item {if $PS_CATALOG_MODE}header_user_catalog{/if}">
|
||||
{/if}
|
||||
{block name='block_cart_shopping_cart'}
|
||||
{block name='blockcart_shopping_cart'}
|
||||
<div class="shopping_cart">
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
{block name='blockcart_shopping_cart_icon'}
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
</a>
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
|
||||
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
</a>
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_dropdown'}
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{block name='blockcart_shopping_cart_products'}
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
{block name='blockcart_shopping_cart_product_name'}
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
{block name='blockcart_shopping_cart_product_total_price'}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{block name='displayProductPriceBlock'}
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
{/block}
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name='blockcart_shopping_cart_product_quantity'}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{block name='blockcart_shopping_cart_product_remove_button'}
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
{/if}
|
||||
</span>
|
||||
{/block}
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
{block name='blockcart_shopping_cart_product_dates'}
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
{/block}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{block name='blockcart_shopping_cart_discounts'}
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_total'}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{block name='blockcart_shopping_cart_total_tax'}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_total_convenience_fee'}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_total_convenience_price'}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
</p>
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
{/block}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_checkout_button'}
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- .cart_block -->
|
||||
{/if}
|
||||
</div><!-- .cart_block -->
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
</div>
|
||||
{/if}
|
||||
{counter name=active_overlay assign=active_overlay}
|
||||
{block name='block_cart_layer_cart'}
|
||||
{block name='blockcart_layer_cart'}
|
||||
{if !$PS_CATALOG_MODE && $active_overlay == 1}
|
||||
<div id="layer_cart">
|
||||
<div class="clearfix">
|
||||
@@ -295,116 +324,128 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
{block name='blockcart_layer_cart_detail'}
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
{block name='blockcart_layer_cart_detail_heading'}
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{block name='blockcart_layer_cart_detail_room_total_price'}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
</div> -->
|
||||
{block name='blockcart_layer_cart_detail_convenience_fee'}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div> -->
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_layer_cart_detail_tax'}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
{/block}
|
||||
{block name='blockcart_layer_cart_detail_total'}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="crossseling"></div>
|
||||
</div> <!-- #layer_cart -->
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
<!-- Block user information module NAV -->
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
<div class="nav_menu_padding header_user_info pull-right hidden-xs">
|
||||
{/if}
|
||||
<ul class="navbar-nav userlogin_block hidden-xs">
|
||||
{if $logged}
|
||||
<li class="dropdown account_info_cont">
|
||||
<button class="btn dropdown-toggle" type="button" id="user_info_acc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<span class="account_user_name hide_xs">{$cookie->customer_firstname}</span>
|
||||
{*<span class="account_user_name visi_xs"><i class="icon-user"></i></span>*}
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="user_info_acc">
|
||||
<li><a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}">{l s='Accounts' mod='blockuserinfo'}</a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='View my orders' mod='blockuserinfo'}">{l s='Orders'}</a></li>
|
||||
<li><a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Logout'}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{else}
|
||||
<li class="active">
|
||||
<a class="user_login navigation-link" href="{$link->getPageLink('my-account', true)|escape:'html'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">
|
||||
<span class="hide_xs">{l s='Sign in' mod='blockuserinfo'}</span>
|
||||
{*<span class="visi_xs"><i class="icon-user"></i></span>*}
|
||||
</a>
|
||||
</li>
|
||||
{/if}
|
||||
</ul>
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
</div>
|
||||
{/if}
|
||||
{block name='nav'}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
<div class="header-top-item header_user_info hidden-xs">
|
||||
{/if}
|
||||
{if $logged}
|
||||
<ul class="navbar-nav hidden-xs">
|
||||
<li class="dropdown">
|
||||
<button class="btn dropdown-toggle" type="button" id="user_info_acc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<span class="account_user_name hide_xs">{$cookie->customer_firstname}</span>
|
||||
<span class="account_user_name visi_xs"><i class="icon-user"></i></span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="user_info_acc">
|
||||
<li><a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}">{l s='Accounts' mod='blockuserinfo'}</a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='View my orders' mod='blockuserinfo'}">{l s='Orders'}</a></li>
|
||||
<li><a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Logout'}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{else}
|
||||
<a class="header-top-link" href="{$link->getPageLink('my-account', true)|escape:'html'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">
|
||||
<span class="hide_xs">{l s='Sign in' mod='blockuserinfo'}</span>
|
||||
<span class="visi_xs"><i class="icon-user"></i></span>
|
||||
</a>
|
||||
</ul>
|
||||
{/if}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
<!-- /Block user information module NAV -->
|
||||
|
||||
@@ -27,8 +27,12 @@
|
||||
<p class="header-desc-welcome">{l s='Welcome To' mod='hotelreservationsystem'}</p>
|
||||
<hr class="heasder-desc-hr-first"/>
|
||||
<div class="header-desc-inner-wrapper">
|
||||
<h1 class="header-hotel-name">{$WK_HTL_CHAIN_NAME|escape:'htmlall':'UTF-8'}</h1>
|
||||
<p class="header-hotel-desc">{$WK_HTL_TAG_LINE|escape:'htmlall':'UTF-8'}</p>
|
||||
{block name='header_hotel_desc_block_hotel_name'}
|
||||
<h1 class="header-hotel-name">{$WK_HTL_CHAIN_NAME|escape:'htmlall':'UTF-8'}</h1>
|
||||
{/block}
|
||||
{block name='header_hotel_desc_block_hotel_tag_line'}
|
||||
<p class="header-hotel-desc">{$WK_HTL_TAG_LINE|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
<hr class="heasder-desc-hr-second"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,9 +24,15 @@
|
||||
{if $HOTEL_INTERIOR_HEADING && $HOTEL_INTERIOR_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_INTERIOR_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_INTERIOR_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{hook h="displayInteriorExtraContent"}
|
||||
{block name='hotel_interior_heading'}
|
||||
<p class="home_block_heading">{$HOTEL_INTERIOR_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
{block name='hotel_interior_description'}
|
||||
<p class="home_block_description">{$HOTEL_INTERIOR_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
{block name='displayInteriorExtraContent'}
|
||||
{hook h="displayInteriorExtraContent"}
|
||||
{/block}
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,8 +24,12 @@
|
||||
{if $HOTEL_AMENITIES_HEADING && $HOTEL_AMENITIES_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_AMENITIES_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_AMENITIES_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{block name='hotel_features_heading'}
|
||||
<p class="home_block_heading">{$HOTEL_AMENITIES_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
{block name='hotel_features_description'}
|
||||
<p class="home_block_description">{$HOTEL_AMENITIES_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -24,8 +24,12 @@
|
||||
{if $HOTEL_ROOM_DISPLAY_HEADING && $HOTEL_ROOM_DISPLAY_DESCRIPTION}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_ROOM_DISPLAY_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_ROOM_DISPLAY_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{block name='hotel_room_display_block_heading'}
|
||||
<p class="home_block_heading">{$HOTEL_ROOM_DISPLAY_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
{block name='hotel_room_display_block_description'}
|
||||
<p class="home_block_description">{$HOTEL_ROOM_DISPLAY_DESCRIPTION|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -46,28 +50,32 @@
|
||||
{hook h='displayHotelRoomsBlockImageAfter' room_type=$roomDisplay}
|
||||
{/block}
|
||||
<div class="hotelRoomDescContainer">
|
||||
<div class="row margin-lr-0">
|
||||
<p class="htlRoomTypeNameText pull-left">{$roomDisplay.name|escape:'htmlall':'UTF-8'}</p>
|
||||
{if $roomDisplay.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
|
||||
<p class="htlRoomTypePriceText">
|
||||
{if $roomDisplay.feature_price_diff >= 0}
|
||||
<span class="wk_roomType_price {if $roomDisplay.feature_price_diff>0}room_type_old_price{/if}">{convertPrice price = $roomDisplay.price_without_reduction}</span>
|
||||
{/if}
|
||||
{if $roomDisplay.feature_price_diff}
|
||||
<span class="wk_roomType_price">{convertPrice price = $roomDisplay.feature_price}</span>
|
||||
{/if}
|
||||
<span class="wk_roomType_price_type">
|
||||
/ {l s='Per Night' mod='wkhotelroom'}
|
||||
</span>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="row margin-lr-0 htlRoomTypeDescText htlRoomTypeDescTextContainer">{$roomDisplay.description|escape:'html':'UTF-8'}</div>
|
||||
<div class="row htlRoomTypeDescOriginal" hidden>{$roomDisplay.description|escape:'html':'UTF-8'}</div>
|
||||
<div class="htlRoomTypeDescExtras"><span class='htlRoomTypeDescReadmore'>...{l s='Read More.' mod='wkhotelroom'}</span><span class='htlRoomTypeDescReadless'>...{l s='Read Less.' mod='wkhotelroom'}</span></div>
|
||||
<div class="row margin-lr-0">
|
||||
<a class="btn htlRoomTypeBookNow" href="{$link->getProductLink($roomDisplay.id_product)|escape:'html':'UTF-8'}"><span>{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE}{l s='book now' mod='wkhotelroom'}{else}{l s='View' mod='wkhotelroom'}{/if}</span></a>
|
||||
</div>
|
||||
{block name='hotel_room_display_block_room_type_description'}
|
||||
<div class="row margin-lr-0">
|
||||
<p class="htlRoomTypeNameText pull-left">{$roomDisplay.name|escape:'htmlall':'UTF-8'}</p>
|
||||
{if $roomDisplay.show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE}
|
||||
<p class="htlRoomTypePriceText">
|
||||
{if $roomDisplay.feature_price_diff >= 0}
|
||||
<span class="wk_roomType_price {if $roomDisplay.feature_price_diff>0}room_type_old_price{/if}">{convertPrice price = $roomDisplay.price_without_reduction}</span>
|
||||
{/if}
|
||||
{if $roomDisplay.feature_price_diff}
|
||||
<span class="wk_roomType_price">{convertPrice price = $roomDisplay.feature_price}</span>
|
||||
{/if}
|
||||
<span class="wk_roomType_price_type">
|
||||
/ {l s='Per Night' mod='wkhotelroom'}
|
||||
</span>
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="row margin-lr-0 htlRoomTypeDescText htlRoomTypeDescTextContainer">{$roomDisplay.description|escape:'html':'UTF-8'}</div>
|
||||
<div class="row htlRoomTypeDescOriginal" hidden>{$roomDisplay.description|escape:'html':'UTF-8'}</div>
|
||||
<div class="htlRoomTypeDescExtras"><span class='htlRoomTypeDescReadmore'>...{l s='Read More.' mod='wkhotelroom'}</span><span class='htlRoomTypeDescReadless'>...{l s='Read Less.' mod='wkhotelroom'}</span></div>
|
||||
{/block}
|
||||
{block name='hotel_room_display_block_book_now_button'}
|
||||
<div class="row margin-lr-0">
|
||||
<a class="btn htlRoomTypeBookNow" href="{$link->getProductLink($roomDisplay.id_product)|escape:'html':'UTF-8'}"><span>{if !isset($restricted_country_mode) && !$PS_CATALOG_MODE}{l s='book now' mod='wkhotelroom'}{else}{l s='View' mod='wkhotelroom'}{/if}</span></a>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{if !($smarty.foreach.htlRoom.iteration%2)}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
{block name='room_type_page_search'}
|
||||
{if isset($hotels_info) && count($hotels_info)}
|
||||
{block name='room_type_page_search'}
|
||||
{block name='room_type_page_search_input'}
|
||||
{* searched information wrapper block*}
|
||||
{if isset($search_data) && $search_data}
|
||||
<div class="header-rmsearch-details-wrapper">
|
||||
@@ -49,15 +49,17 @@
|
||||
{/block}
|
||||
|
||||
{* search form wrapper block*}
|
||||
<div class="header-rmsearch-wrapper">
|
||||
<div class="container">
|
||||
<div class="filter_header">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}</p>
|
||||
{block name='room_type_page_search_form'}
|
||||
<div class="header-rmsearch-wrapper">
|
||||
<div class="container">
|
||||
<div class="filter_header">
|
||||
<p>{l s='Searched results for' mod='wkroomsearchblock'}</p>
|
||||
</div>
|
||||
{* search form *}
|
||||
{include file="./searchForm.tpl"}
|
||||
<a href="#" class="close_room_serach_wrapper"><img src="{$module_dir}views/img/icon-close.svg"></a>
|
||||
</div>
|
||||
{* search form *}
|
||||
{include file="./searchForm.tpl"}
|
||||
<a href="#" class="close_room_serach_wrapper"><img src="{$module_dir}views/img/icon-close.svg"></a>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
@@ -232,10 +232,12 @@
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
<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 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}
|
||||
|
||||
@@ -24,8 +24,12 @@
|
||||
{if $HOTEL_TESIMONIAL_BLOCK_HEADING && $HOTEL_TESIMONIAL_BLOCK_CONTENT}
|
||||
<div class="row home_block_desc_wrapper">
|
||||
<div class="col-md-offset-1 col-md-10 col-lg-offset-2 col-lg-8">
|
||||
<p class="home_block_heading">{$HOTEL_TESIMONIAL_BLOCK_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
<p class="home_block_description">{$HOTEL_TESIMONIAL_BLOCK_CONTENT|escape:'htmlall':'UTF-8'}</p>
|
||||
{block name='testimonial_block_heading'}
|
||||
<p class="home_block_heading">{$HOTEL_TESIMONIAL_BLOCK_HEADING|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
{block name='testimonial_block_description'}
|
||||
<p class="home_block_description">{$HOTEL_TESIMONIAL_BLOCK_CONTENT|escape:'htmlall':'UTF-8'}</p>
|
||||
{/block}
|
||||
<hr class="home_block_desc_line"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
{if $product->booking_product}
|
||||
{if !$order_date_restrict}
|
||||
<div class="row">
|
||||
{block name='booking_form_dates_fields'}
|
||||
{block name='booking_form_dates_field'}
|
||||
<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'} <i class="icon icon-minus"></i> {l s='Check-out'}</span></div>
|
||||
@@ -45,7 +45,7 @@
|
||||
{/block}
|
||||
</div>
|
||||
{if $total_available_rooms > 0}
|
||||
{block name='booking_form_quantity_fields'}
|
||||
{block name='booking_form_quantity_field'}
|
||||
<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}
|
||||
@@ -146,17 +146,19 @@
|
||||
{block name='booking_form_actions'}
|
||||
<div id="booking_action_block">
|
||||
<div class="row">
|
||||
<div class="total_price_block col-xs-7 form-group">
|
||||
<label class="control-label">{l s='Subtotal'}</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 name='booking_form_total_price'}
|
||||
<div class="total_price_block col-xs-7 form-group">
|
||||
<label class="control-label">{l s='Subtotal'}</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_num_avail'}
|
||||
{if $total_available_rooms <= $warning_count}
|
||||
<div class="col-xs-5 form-group text-right num_quantity_alert">
|
||||
@@ -178,14 +180,16 @@
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
<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 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>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='order_room_detial_room_details'}
|
||||
{block name='order_room_detial_room_detail'}
|
||||
<div class="col-xs-9 col-sm-10 info-wrap">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='room_type_list_room_details'}
|
||||
{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">
|
||||
@@ -47,10 +47,12 @@
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
<div class="rm_desc">{$room_v['description']|truncate:190:"":true} <a class="view_more" href="{$room_v['product_link']|escape:'htmlall':'UTF-8'}">{l s='View More'}....</a></div>
|
||||
{block name='room_type_list_room_features'}
|
||||
<div class="room_features_cont">
|
||||
<div class="row">
|
||||
{block name='room_type_list_room_description'}
|
||||
<div class="rm_desc">{$room_v['description']|truncate:190:"":true} <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">
|
||||
@@ -60,9 +62,13 @@
|
||||
</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}
|
||||
|
||||
@@ -81,12 +87,16 @@
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{/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>
|
||||
<div class="col-sm-12 col-md-6 col-lg-8">
|
||||
{/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}
|
||||
@@ -99,15 +109,17 @@
|
||||
{include file="./quantity_field.tpl" total_available_rooms=$room_v['room_left']}
|
||||
</div>
|
||||
{/if}
|
||||
<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 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>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
</div>
|
||||
<div class="col-xs-8 col-sm-9 col-md-10">
|
||||
<div class="row">
|
||||
{block name='service_products_list_row_details'}
|
||||
{block name='service_products_list_row_detail'}
|
||||
<div class="col-sm-12 clearfix service-product-block">
|
||||
<span class="service-product-name">{$product['name']}</span>
|
||||
</div>
|
||||
|
||||
@@ -24,24 +24,28 @@
|
||||
*}
|
||||
|
||||
{block name='address'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Address'}
|
||||
</span>
|
||||
{/capture}
|
||||
{block name='address_heading'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Address'}
|
||||
</span>
|
||||
{/capture}
|
||||
{if isset($smarty.get.updated) && $smarty.get.updated}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your address has been successfully updated.'}
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
<div class="box">
|
||||
<h1 class="page-subheading">{l s='Address'}</h1>
|
||||
{block name='address_subheading'}
|
||||
<h1 class="page-subheading">{l s='Address'}</h1>
|
||||
{/block}
|
||||
<p class="info-title">
|
||||
{if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))}
|
||||
{l s='Modify address'}
|
||||
|
||||
@@ -415,7 +415,7 @@
|
||||
</div>
|
||||
<!-- END Account -->
|
||||
</div>
|
||||
{block name='HOOK_CREATE_ACCOUNT_FORM'}
|
||||
{block name='displayCustomerAccountForm'}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
{/block}
|
||||
</div>
|
||||
@@ -449,7 +449,7 @@
|
||||
{/if}-->
|
||||
{block name='authentication_account_creation_form'}
|
||||
<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box">
|
||||
{block name='HOOK_CREATE_ACCOUNT_TOP'}
|
||||
{block name='displayCustomerAccountFormTop'}
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
{/block}
|
||||
<div class="account_creation">
|
||||
@@ -687,7 +687,7 @@
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{block name='HOOK_CREATE_ACCOUNT_FORM'}
|
||||
{block name='displayCustomerAccountForm'}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
{/block}
|
||||
<div class="submit clearfix">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
{block name='category'}
|
||||
<div class="row cat_cont">
|
||||
<div class="col-sm-12">
|
||||
{block name='category_sort'}
|
||||
{block name='category_sort_filters'}
|
||||
<div class="row margin-lr-0 catSortBlock">
|
||||
<div class="col-sm-2 sortBlockHeading">
|
||||
<p>{l s='Sort By:'}</p>
|
||||
@@ -37,11 +37,13 @@
|
||||
<span class="pull-left sort_btn_span" data-sort-by="0" data-sort-value="0" data-sort-for="{l s='Recommended'}">{l s='Recommended'}</span>
|
||||
<span class="caret pull-right margin-top-7"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="price_ftr">
|
||||
<li><a href="#" class="sort_result" data-sort-by="0" data-value="0">{l s='Recommended'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="1">{l s='Price : Lowest First'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="2">{l s='Price : Highest first '}</a></li>
|
||||
</ul>
|
||||
{block name='category_sort_filters_list'}
|
||||
<ul class="dropdown-menu" aria-labelledby="price_ftr">
|
||||
<li><a href="#" class="sort_result" data-sort-by="0" data-value="0">{l s='Recommended'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="1">{l s='Price : Lowest First'}</a></li>
|
||||
<li><a href="#" class="sort_result" data-sort-by="2" data-value="2">{l s='Price : Highest first '}</a></li>
|
||||
</ul>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
{/block}
|
||||
</div><!-- #columns -->
|
||||
</div><!-- .columns-container -->
|
||||
{block name='HOOK_FOOTER'}
|
||||
{block name='displayFooter'}
|
||||
{if isset($HOOK_FOOTER)}
|
||||
{block name='displayFooterBefore'}
|
||||
{hook h='displayFooterBefore'}
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<script type="text/javascript" src="{$js_uri|escape:'html':'UTF-8'}"></script>
|
||||
{/foreach}
|
||||
{/if}
|
||||
{block name='HOOK_HEADER'}
|
||||
{block name='displayHeader'}
|
||||
{$HOOK_HEADER}
|
||||
{/block}
|
||||
<!-- <link rel="stylesheet" href="http{if Tools::usingSecureMode()}s{/if}://fonts.googleapis.com/css?family=Open+Sans:300,600&subset=latin,latin-ext" type="text/css" media="all" /> -->
|
||||
@@ -96,36 +96,40 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="nav-main">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{block name='displayNav'}
|
||||
<nav>{hook h="displayNav"}</nav>
|
||||
{block name='header_nav'}
|
||||
<div id="nav-main">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
{block name='displayNav'}
|
||||
<nav>{hook h="displayNav"}</nav>
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='header_top'}
|
||||
<div class="header-top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div id="header_logo">
|
||||
<a href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{$shop_name|escape:'html':'UTF-8'}">
|
||||
<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header-top-menu">
|
||||
{block name='displayFooter'}
|
||||
{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{block name='displaySearchHotelPanel'}
|
||||
{hook h='displaySearchHotelPanel'}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div id="header_logo">
|
||||
<a href="{if isset($force_ssl) && $force_ssl}{$base_dir_ssl}{else}{$base_dir}{/if}" title="{$shop_name|escape:'html':'UTF-8'}">
|
||||
<img class="logo img-responsive" src="{$logo_url}" alt="{$shop_name|escape:'html':'UTF-8'}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header-top-menu">
|
||||
{block name='HOOK_TOP'}
|
||||
{if isset($HOOK_TOP)}{$HOOK_TOP}{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{block name='displaySearchHotelPanel'}
|
||||
{hook h='displaySearchHotelPanel'}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='displayAfterHookTop'}
|
||||
{hook h='displayAfterHookTop'}
|
||||
{/block}
|
||||
|
||||
@@ -22,122 +22,154 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">{$navigationPipe}</span>
|
||||
<span class="navigation_page">{l s='Bookings'}</span>
|
||||
{/capture}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<h1 class="page-heading bottom-indent">{l s='Bookings'}</h1>
|
||||
<p class="info-title">{l s='Here are the orders you\'ve placed since your account was created.'}</p>
|
||||
|
||||
{block name='history'}
|
||||
{block name='history_heading'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">{$navigationPipe}</span>
|
||||
<span class="navigation_page">{l s='Bookings'}</span>
|
||||
{/capture}
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
<h1 class="page-heading bottom-indent">{l s='Bookings'}</h1>
|
||||
<p class="info-title">{l s='Here are the orders you\'ve placed since your account was created.'}</p>
|
||||
{/block}
|
||||
|
||||
{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)}
|
||||
<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>
|
||||
{block name='history_table'}
|
||||
<table id="order-list" class="table table-bordered footab">
|
||||
{block name='history_table_header'}
|
||||
<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"> </th>
|
||||
</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}">
|
||||
<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>
|
||||
<td data-value="{$order.date_add|regex_replace:"/[\-\:\ ]/":""}" class="history_date bold">
|
||||
{dateFormat date=$order.date_add full=0}
|
||||
</td>
|
||||
<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>
|
||||
{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}
|
||||
<td class="history_method">{$order.payment|escape:'html':'UTF-8'}</td>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<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"> </th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/block}
|
||||
{block name='history_table_body'}
|
||||
<tbody>
|
||||
{foreach from=$orders item=order name=myLoop}
|
||||
{block name='history_table_row'}
|
||||
<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='history_order_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='history_order_date'}
|
||||
<td data-value="{$order.date_add|regex_replace:"/[\-\:\ ]/":""}" class="history_date bold">
|
||||
{dateFormat date=$order.date_add full=0}
|
||||
</td>
|
||||
{/block}
|
||||
{block name='history_order_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='history_order_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='history_order_method'}
|
||||
<td class="history_method">{$order.payment|escape:'html':'UTF-8'}</td>
|
||||
{/block}
|
||||
{block name='history_order_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='history_order_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='history_order_detail_button'}
|
||||
<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}
|
||||
</tr>
|
||||
{/block}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/block}
|
||||
</table>
|
||||
{/block}
|
||||
<div id="block-order-detail" class="unvisible"> </div>
|
||||
{else}
|
||||
<p class="alert alert-warning">{l s='You have not placed any orders.'}</p>
|
||||
{/if}
|
||||
</div>
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$base_dir}">
|
||||
<span><i class="icon-chevron-left"></i> {l s='Home'}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{block name='history_footer_links'}
|
||||
<ul class="footer_links clearfix">
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left"></i> {l s='Back to My account'}
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="btn btn-default button button-small" href="{$base_dir}">
|
||||
<span><i class="icon-chevron-left"></i> {l s='Home'}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{/block}
|
||||
|
||||
{/block}
|
||||
@@ -201,7 +201,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{block name='HOOK_CUSTOMER_IDENTITY_FORM'}
|
||||
{block name='displayCustomerIdentityForm'}
|
||||
{if isset($HOOK_CUSTOMER_IDENTITY_FORM)}
|
||||
{$HOOK_CUSTOMER_IDENTITY_FORM}
|
||||
{/if}
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{block name='HOOK_HOME_TAB_CONTENT'}
|
||||
{block name='displayHomeTabContent'}
|
||||
{if isset($HOOK_HOME_TAB_CONTENT) && $HOOK_HOME_TAB_CONTENT|trim}
|
||||
{block name='HOOK_HOME_TAB'}
|
||||
{block name='displayHomeTab'}
|
||||
{if isset($HOOK_HOME_TAB) && $HOOK_HOME_TAB|trim}
|
||||
<ul id="home-page-tabs" class="nav nav-tabs clearfix">
|
||||
{$HOOK_HOME_TAB}
|
||||
@@ -35,7 +35,7 @@
|
||||
<div class="tab-content">{$HOOK_HOME_TAB_CONTENT}</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='HOOK_HOME'}
|
||||
{block name='displayHome'}
|
||||
{if isset($HOOK_HOME) && $HOOK_HOME|trim}
|
||||
<div class="clearfix">{$HOOK_HOME}</div>
|
||||
{/if}
|
||||
|
||||
@@ -23,246 +23,275 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
{block name='block_cart'}
|
||||
{block name='blockcart'}
|
||||
<!-- MODULE Block cart -->
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
<div class="header-top-item {if $PS_CATALOG_MODE}header_user_catalog{/if}">
|
||||
{/if}
|
||||
{block name='block_cart_shopping_cart'}
|
||||
{block name='blockcart_shopping_cart'}
|
||||
<div class="shopping_cart">
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
{block name='blockcart_shopping_cart_icon'}
|
||||
<a href="{$link->getPageLink($order_process, true)|escape:'html':'UTF-8'}" title="{l s='View my booking cart' mod='blockcart'}" rel="nofollow">
|
||||
<!-- <b>{l s='Cart' mod='blockcart'}</b> -->
|
||||
<span class="badge badge_style ajax_cart_quantity{if $cart_qties == 0} unvisible{/if}">{$total_products_in_cart}</span>
|
||||
<!-- <span class="ajax_cart_product_txt{if $cart_qties != 1} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<!-- <span class="ajax_cart_product_txt_s{if $cart_qties < 2} unvisible{/if}">{l s='Rooms' mod='blockcart'}</span> -->
|
||||
<span class="ajax_cart_total{if $cart_qties == 0} unvisible{/if}">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}
|
||||
{else}
|
||||
{assign var='blockcart_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
|
||||
{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
</span>
|
||||
<span class="badge badge_style ajax_cart_no_product{if $cart_qties > 0} unvisible{/if}">0</span>
|
||||
{if $ajax_allowed && isset($blockcart_top) && !$blockcart_top}
|
||||
<span class="block_cart_expand{if !isset($colapseExpandStatus) || (isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded')} unvisible{/if}"> </span>
|
||||
<span class="block_cart_collapse{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'collapsed'} unvisible{/if}"> </span>
|
||||
{/if}
|
||||
</a>
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
|
||||
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
</a>
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_dropdown'}
|
||||
{if !$PS_CATALOG_MODE}
|
||||
<div class="cart_block block exclusive">
|
||||
<div class="block_content">
|
||||
<!-- block list of products -->
|
||||
<div class="cart_block_list{if isset($blockcart_top) && !$blockcart_top}{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)} expanded{else} collapsed unvisible{/if}{/if}">
|
||||
{block name='blockcart_shopping_cart_products'}
|
||||
{if $products}
|
||||
<dl class="products">
|
||||
{foreach from=$products key=data_k item='product' name='myLoop'}
|
||||
{* only show products that are booking or global without room *}
|
||||
{if $product.booking_product || ($product.service_product_type == Product::SERVICE_PRODUCT_WITHOUT_ROOMTYPE)}
|
||||
{assign var='productId' value=$product.id_product}
|
||||
{assign var='productAttributeId' value=$product.id_product_attribute}
|
||||
<dt data-id="cart_block_product_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
<a class="cart-images" href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'cart_default')}" alt="{$product.name|escape:'html':'UTF-8'}" /></a>
|
||||
<div class="cart-info">
|
||||
{block name='blockcart_shopping_cart_product_name'}
|
||||
<div class="product-name">
|
||||
<!-- quantity changed for number of rooms -->
|
||||
<!-- <span class="quantity-formated"><span class="quantity">{$cart_booking_data[$data_k]['total_num_rooms']}</span> x </span> -->
|
||||
<a class="cart_block_product_name" href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{$product.name|escape:'html':'UTF-8'}">{$product.name|truncate:30:'...':true|escape:'html':'UTF-8'}</a>
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
{if isset($product.attributes_small)}
|
||||
<div class="product-atributes">
|
||||
<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
{block name='blockcart_shopping_cart_product_total_price'}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Price' mod='blockcart'}:</span>
|
||||
<span class="price product_info_data" ttl_prod_price="{$product.bookingData.total_room_type_amount}">
|
||||
{if !isset($product.is_gift) || !$product.is_gift}
|
||||
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
|
||||
<div id="hookDisplayProductPriceBlock-price">
|
||||
{block name='displayProductPriceBlock'}
|
||||
{hook h="displayProductPriceBlock" product=$product type="price" from="blockcart"}
|
||||
{/block}
|
||||
</div>
|
||||
{else}
|
||||
{l s='Free!' mod='blockcart'}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name='blockcart_shopping_cart_product_quantity'}
|
||||
<div class="cart-info-sec rm_product_info_{$product.id_product}">
|
||||
<span class="product_info_label">{l s='Total Qty.' mod='blockcart'}:</span>
|
||||
<span class="quantity-formated">
|
||||
{if $product.booking_product}
|
||||
<span class="quantity product_info_data">{$product.bookingData['total_num_rooms']}</span>
|
||||
{else}
|
||||
<span class="quantity product_info_data">{$product.cart_quantity}</span>
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{block name='blockcart_shopping_cart_product_remove_button'}
|
||||
<span class="remove_link">
|
||||
{if !isset($customizedDatas.$productId.$productAttributeId) && (!isset($product.is_gift) || !$product.is_gift)}
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='remove this product from my cart' mod='blockcart'}"> </a>
|
||||
{/if}
|
||||
</span>
|
||||
{/block}
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
{block name='blockcart_shopping_cart_product_dates'}
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{/if}
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
{/block}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{block name='blockcart_shopping_cart_discounts'}
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_total'}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<div style="clear:both"></div>
|
||||
{if $product.booking_product}
|
||||
<div id="booking_dates_container_{$product.id_product}" class="cart_prod_cont">
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{l s='Duration' mod='blockcart'}</th>
|
||||
<th>{l s='Qty.' mod='blockcart'}</th>
|
||||
<th>{l s='Price' mod='blockcart'}</th>
|
||||
<th> <!-- {l s='Remove' mod='blockcart'} --></th>
|
||||
</tr>
|
||||
{foreach from=$product.bookingData['date_diff'] key=data_k1 item=data_v}
|
||||
<tr class="rooms_remove_container">
|
||||
<td>
|
||||
{$data_v['data_form']|date_format:"%d-%m-%Y"} - {$data_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</td>
|
||||
<td class="num_rooms_in_date">{$data_v['num_rm']}</td>
|
||||
<td>{convertPrice price=($data_v['amount'] + $data_v['demand_price'])}</td>
|
||||
<td><a class="remove_rooms_from_cart_link" href="#" rm_price="{$data_v['amount']}" id_product="{$product.id_product|intval}" date_from="{$data_v['data_form']}" date_to="{$data_v['data_to']}" num_rooms="{$data_v['num_rm']}" title="{l s='remove this room from my cart' mod='blockcart'}"></a></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{block name='blockcart_shopping_cart_total_tax'}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_total_convenience_fee'}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_total_convenience_price'}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
</dt>
|
||||
{if isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}{if $product.id_product_attribute}_{$product.id_product_attribute|intval}{/if}_{$product.id_address_delivery|intval}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
</p>
|
||||
{/if}
|
||||
<!-- Customizable datas -->
|
||||
{if isset($customizedDatas.$productId.$productAttributeId[$product.id_address_delivery])}
|
||||
{if !isset($product.attributes_small)}
|
||||
<dd data-id="cart_block_combination_of_{$product.id_product|intval}_{if $product.id_product_attribute}{$product.id_product_attribute|intval}{else}0{/if}_{if $product.id_address_delivery}{$product.id_address_delivery|intval}{else}0{/if}" class="{if $smarty.foreach.myLoop.first}first_item{elseif $smarty.foreach.myLoop.last}last_item{else}item{/if}">
|
||||
{/if}
|
||||
<ul class="cart_block_customizations" data-id="customization_{$productId}_{$productAttributeId}">
|
||||
{foreach from=$customizedDatas.$productId.$productAttributeId[$product.id_address_delivery] key='id_customization' item='customization' name='customizations'}
|
||||
<li name="customization">
|
||||
<div data-id="deleteCustomizableProduct_{$id_customization|intval}_{$product.id_product|intval}_{$product.id_product_attribute|intval}_{$product.id_address_delivery|intval}" class="deleteCustomizableProduct">
|
||||
<a class="ajax_cart_block_remove_link" href="{$link->getPageLink('cart', true, NULL, "delete=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_customization={$id_customization|intval}&token={$static_token}")|escape:'html':'UTF-8'}" rel="nofollow"> </a>
|
||||
</div>
|
||||
{if isset($customization.datas.$CUSTOMIZE_TEXTFIELD.0)}
|
||||
{$customization.datas.$CUSTOMIZE_TEXTFIELD.0.value|replace:"<br />":" "|truncate:28:'...'|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{l s='Customization #%d:' sprintf=$id_customization|intval mod='blockcart'}
|
||||
{/if}
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if !isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{if isset($product.attributes_small)}</dd>{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
</dl>
|
||||
{/if}
|
||||
<p class="cart_block_no_products{if $products} unvisible{/if}">
|
||||
{l s='No products' mod='blockcart'}
|
||||
</p>
|
||||
{if $discounts|@count > 0}
|
||||
<table class="vouchers{if $discounts|@count == 0} unvisible{/if}">
|
||||
{foreach from=$discounts item=discount}
|
||||
{if $discount.value_real > 0}
|
||||
<tr class="bloc_cart_voucher" data-id="bloc_cart_voucher_{$discount.id_discount|intval}">
|
||||
<td class="quantity">1x</td>
|
||||
<td class="name" title="{$discount.description}">
|
||||
{$discount.name|truncate:18:'...'|escape:'html':'UTF-8'}
|
||||
</td>
|
||||
<td class="price">
|
||||
-{if $priceDisplay == 1}{convertPrice price=$discount.value_tax_exc}{else}{convertPrice price=$discount.value_real}{/if}
|
||||
</td>
|
||||
<td class="delete">
|
||||
{if strlen($discount.code)}
|
||||
<a class="delete_voucher" href="{$link->getPageLink("$order_process", true)}?deleteDiscount={$discount.id_discount|intval}" title="{l s='Delete' mod='blockcart'}" rel="nofollow">
|
||||
<i class="icon-remove-sign"></i>
|
||||
</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
<div class="cart-prices">
|
||||
<!-- <div class="cart-prices-line first-line">
|
||||
<span class="price cart_block_shipping_cost ajax_cart_shipping_cost{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if !($page_name == 'order-opc') && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
<span{if !($page_name == 'order-opc') && $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} class="unvisible"{/if}>
|
||||
{l s='Shipping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{if $show_wrapping}
|
||||
<div class="cart-prices-line">
|
||||
{assign var='cart_flag' value='Cart::ONLY_WRAPPING'|constant}
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, $cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $cart_flag)}
|
||||
{/if}
|
||||
</span>
|
||||
<span>
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
</span>
|
||||
</div>
|
||||
{/if} --><!-- commented by webkul unnecessary data -->
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost">{$tax_cost}</span>
|
||||
<span>{l s='Tax' mod='blockcart'}</span>
|
||||
{/block}
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="cart-prices-line">
|
||||
<span class="price cart_block_convenience_fee ajax_cart_convenience_fee">{convertPrice price=$total_convenience_fee}</span>
|
||||
<span class="price">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="cart-prices-line last-line">
|
||||
<span class="price cart_block_total ajax_block_cart_total" total_cart_price="{$totalToPay}">{$total}</span>
|
||||
<span>{l s='Total' mod='blockcart'}</span>
|
||||
</div>
|
||||
{if $use_taxes && $display_tax_label == 1 && $show_tax}
|
||||
<p>
|
||||
{if $priceDisplay == 0}
|
||||
{l s='Prices are tax included' mod='blockcart'}
|
||||
{elseif $priceDisplay == 1}
|
||||
{l s='Prices are tax excluded' mod='blockcart'}
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_shopping_cart_checkout_button'}
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
<p class="cart-buttons">
|
||||
<a id="button_order_cart" class="btn btn-default button button-small" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Check out' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Check out' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- .cart_block -->
|
||||
{/if}
|
||||
</div><!-- .cart_block -->
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
{if isset($blockcart_top) && $blockcart_top}
|
||||
</div>
|
||||
{/if}
|
||||
{counter name=active_overlay assign=active_overlay}
|
||||
{block name='block_cart_layer_cart'}
|
||||
{block name='blockcart_layer_cart'}
|
||||
{if !$PS_CATALOG_MODE && $active_overlay == 1}
|
||||
<div id="layer_cart">
|
||||
<div class="clearfix">
|
||||
@@ -295,116 +324,128 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
{block name='blockcart_layer_cart_detail'}
|
||||
<div class="layer_cart_cart col-xs-12 col-md-6">
|
||||
{block name='blockcart_layer_cart_detail_heading'}
|
||||
<h2>
|
||||
<!-- Plural Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt_s {if $cart_qties < 2} unvisible{/if}">
|
||||
{l s='There are [1]%d[/1] item(s) in your cart.' mod='blockcart' sprintf=[$cart_qties] tags=['<span class="ajax_cart_quantity">']}
|
||||
</span>
|
||||
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
<!-- Singular Case [both cases are needed because page may be updated in Javascript] -->
|
||||
<span class="ajax_cart_product_txt {if $cart_qties > 1} unvisible{/if}">
|
||||
{l s='1 item in your cart.' mod='blockcart'}
|
||||
</span>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{block name='blockcart_layer_cart_detail_room_total_price'}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total Rooms Cost in cart' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_room_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_PRODUCTS)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<!-- {if $show_wrapping}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Wrapping' mod='blockcart'}
|
||||
{if $use_taxes && $display_tax_label && $show_tax}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="price cart_block_wrapping_cost">
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false, Cart::ONLY_WRAPPING)}
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true, Cart::ONLY_WRAPPING)}
|
||||
{$shipping_cost}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
{/if} -->
|
||||
<!-- <div class="layer_cart_row">
|
||||
<strong class="dark{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{l s='Total shipping' mod='blockcart'} {if $display_tax_label}{if $priceDisplay == 1}{l s='(tax excl.)' mod='blockcart'}{else}{l s='(tax incl.)' mod='blockcart'}{/if}{/if}
|
||||
</strong>
|
||||
<span class="ajax_cart_shipping_cost{if $shipping_cost_float == 0 && (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)} unvisible{/if}">
|
||||
{if $shipping_cost_float == 0}
|
||||
{if (!isset($cart->id_address_delivery) || !$cart->id_address_delivery)}{l s='To be determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
|
||||
{else}
|
||||
{$shipping_cost}
|
||||
</div> -->
|
||||
{block name='blockcart_layer_cart_detail_convenience_fee'}
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
</div> -->
|
||||
{if isset($total_convenience_fee)}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
|
||||
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='blockcart_layer_cart_detail_tax'}
|
||||
{if $show_tax && $use_tax}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">{l s='Tax' mod='blockcart'}</strong>
|
||||
<span class="price cart_block_tax_cost ajax_cart_tax_cost pull-right">{$tax_cost}</span>
|
||||
</div>
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
{/block}
|
||||
{block name='blockcart_layer_cart_detail_total'}
|
||||
<div class="layer_cart_row">
|
||||
<strong class="dark">
|
||||
{l s='Total' mod='blockcart'}
|
||||
{if $display_tax_label}
|
||||
{if $priceDisplay == 1}
|
||||
{l s='(tax excl.)' mod='blockcart'}
|
||||
{else}
|
||||
{l s='(tax incl.)' mod='blockcart'}
|
||||
{/if}
|
||||
{/if}
|
||||
</strong>
|
||||
<span class="ajax_block_cart_total pull-right">
|
||||
{if $cart_qties > 0}
|
||||
{if $priceDisplay == 1}
|
||||
{convertPrice price=$cart->getOrderTotal(false)}
|
||||
{else}
|
||||
{convertPrice price=$cart->getOrderTotal(true)}
|
||||
{/if}
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<span class="continue btn btn-default button exclusive-medium" title="{l s='Continue browsing' mod='blockcart'}">
|
||||
<span>
|
||||
<i class="icon-chevron-left left"></i>{l s='Continue browsing' mod='blockcart'}
|
||||
</span>
|
||||
</span>
|
||||
<a class="btn btn-default button button-medium" href="{$link->getPageLink("$order_process", true)|escape:"html":"UTF-8"}" title="{l s='Proceed to checkout' mod='blockcart'}" rel="nofollow">
|
||||
<span>
|
||||
{l s='Proceed to checkout' mod='blockcart'}<i class="icon-chevron-right right"></i>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
<div class="crossseling"></div>
|
||||
</div> <!-- #layer_cart -->
|
||||
|
||||
@@ -17,30 +17,32 @@
|
||||
* @license LICENSE.txt
|
||||
*}
|
||||
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
<div class="header-top-item header_user_info hidden-xs">
|
||||
{/if}
|
||||
{if $logged}
|
||||
<ul class="navbar-nav hidden-xs">
|
||||
<li class="dropdown">
|
||||
<button class="btn dropdown-toggle" type="button" id="user_info_acc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<span class="account_user_name hide_xs">{$cookie->customer_firstname}</span>
|
||||
<span class="account_user_name visi_xs"><i class="icon-user"></i></span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="user_info_acc">
|
||||
<li><a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}">{l s='Accounts' mod='blockuserinfo'}</a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='View my orders' mod='blockuserinfo'}">{l s='Orders'}</a></li>
|
||||
<li><a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Logout'}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{else}
|
||||
<a class="header-top-link" href="{$link->getPageLink('my-account', true)|escape:'html'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">
|
||||
<span class="hide_xs">{l s='Sign in' mod='blockuserinfo'}</span>
|
||||
<span class="visi_xs"><i class="icon-user"></i></span>
|
||||
</a>
|
||||
</ul>
|
||||
{block name='nav'}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
<div class="header-top-item header_user_info hidden-xs">
|
||||
{/if}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
</div>
|
||||
{/if}
|
||||
{if $logged}
|
||||
<ul class="navbar-nav hidden-xs">
|
||||
<li class="dropdown">
|
||||
<button class="btn dropdown-toggle" type="button" id="user_info_acc" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<span class="account_user_name hide_xs">{$cookie->customer_firstname}</span>
|
||||
<span class="account_user_name visi_xs"><i class="icon-user"></i></span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu" aria-labelledby="user_info_acc">
|
||||
<li><a href="{$link->getPageLink('my-account', true)|escape:'html'}" title="{l s='View my customer account' mod='blockuserinfo'}">{l s='Accounts' mod='blockuserinfo'}</a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html'}" title="{l s='View my orders' mod='blockuserinfo'}">{l s='Orders'}</a></li>
|
||||
<li><a href="{$link->getPageLink('index', true, NULL, "mylogout")|escape:'html'}" title="{l s='Log me out' mod='blockuserinfo'}">{l s='Logout'}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
{else}
|
||||
<a class="header-top-link" href="{$link->getPageLink('my-account', true)|escape:'html'}" rel="nofollow" title="{l s='Log in to your customer account' mod='blockuserinfo'}">
|
||||
<span class="hide_xs">{l s='Sign in' mod='blockuserinfo'}</span>
|
||||
<span class="visi_xs"><i class="icon-user"></i></span>
|
||||
</a>
|
||||
</ul>
|
||||
{/if}
|
||||
{if !isset($ajaxCustomerLogin)}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
@@ -24,28 +24,34 @@
|
||||
*}
|
||||
|
||||
{block name='my_account'}
|
||||
{capture name=path}{l s='My account'}{/capture}
|
||||
{block name='my_account_heading'}
|
||||
{capture name=path}{l s='My account'}{/capture}
|
||||
|
||||
<h1 class="page-heading">{l s='My account'}</h1>
|
||||
<h1 class="page-heading">{l s='My account'}</h1>
|
||||
{/block}
|
||||
{if isset($account_created)}
|
||||
<p class="alert alert-success">
|
||||
{l s='Your account has been created.'}
|
||||
</p>
|
||||
{/if}
|
||||
<p class="info-account">{l s='Welcome to your account. Here you can manage all of your personal information and orders.'}</p>
|
||||
{block name='my_account_heading_info'}
|
||||
<p class="info-account">{l s='Welcome to your account. Here you can manage all of your personal information and orders.'}</p>
|
||||
{/block}
|
||||
<div class="row addresses-lists">
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
<li><a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='Address'}"><i class="icon-building"></i><span>{l s='Address'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Bookings'}"><i class="icon-list-ol"></i><span>{l s='Bookings'}</span></a></li>
|
||||
{if $refundAllowed}
|
||||
<li><a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Booking refund requests'}"><i class="icon-refresh"></i><span>{l s='Booking refund requests'}</span></a></li>
|
||||
{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Credit slips'}"><i class="icon-file-o"></i><span>{l s='Credit slips'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Personal information'}"><i class="icon-user"></i><span>{l s='Personal information'}</span></a></li>
|
||||
</ul>
|
||||
{block name='my_account_link_list'}
|
||||
<ul class="myaccount-link-list">
|
||||
<li><a href="{$link->getPageLink('address', true)|escape:'html':'UTF-8'}" title="{l s='Address'}"><i class="icon-building"></i><span>{l s='Address'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}" title="{l s='Bookings'}"><i class="icon-list-ol"></i><span>{l s='Bookings'}</span></a></li>
|
||||
{if $refundAllowed}
|
||||
<li><a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}" title="{l s='Booking refund requests'}"><i class="icon-refresh"></i><span>{l s='Booking refund requests'}</span></a></li>
|
||||
{/if}
|
||||
<li><a href="{$link->getPageLink('order-slip', true)|escape:'html':'UTF-8'}" title="{l s='Credit slips'}"><i class="icon-file-o"></i><span>{l s='Credit slips'}</span></a></li>
|
||||
<li><a href="{$link->getPageLink('identity', true)|escape:'html':'UTF-8'}" title="{l s='Personal information'}"><i class="icon-user"></i><span>{l s='Personal information'}</span></a></li>
|
||||
</ul>
|
||||
{/block}
|
||||
</div>
|
||||
{block name='HOOK_CUSTOMER_ACCOUNT'}
|
||||
{block name='displayCustomerAccount'}
|
||||
{if $voucherAllowed || isset($HOOK_CUSTOMER_ACCOUNT) && $HOOK_CUSTOMER_ACCOUNT !=''}
|
||||
<div class="col-xs-12 col-sm-6 col-lg-4">
|
||||
<ul class="myaccount-link-list">
|
||||
|
||||
@@ -24,20 +24,21 @@
|
||||
*}
|
||||
|
||||
{block name='order_confirmation'}
|
||||
{capture name=path}{l s='Order confirmation'}{/capture}
|
||||
|
||||
<h1 class="page-heading">{l s='Order confirmation'}</h1>
|
||||
{block name='order_confirmation_heading'}
|
||||
{capture name=path}{l s='Order confirmation'}{/capture}
|
||||
<h1 class="page-heading">{l s='Order confirmation'}</h1>
|
||||
{/block}
|
||||
|
||||
{assign var='current_step' value='payment'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
|
||||
{block name='HOOK_ORDER_CONFIRMATION'}
|
||||
{block name='displayOrderConfirmation'}
|
||||
{$HOOK_ORDER_CONFIRMATION}
|
||||
{/block}
|
||||
<div class="box">
|
||||
{block name='HOOK_PAYMENT_RETURN'}
|
||||
{block name='displayPaymentReturn'}
|
||||
{$HOOK_PAYMENT_RETURN}
|
||||
{/block}
|
||||
{if isset($order->id) && $order->id}
|
||||
@@ -62,335 +63,364 @@
|
||||
{/if}
|
||||
{/if}
|
||||
<hr>
|
||||
<p><strong>{l s='Order Details -'}</strong></p>
|
||||
{block name='order_detail_content'}
|
||||
{block name='order_confirmation_order_detail_heading'}
|
||||
<p><strong>{l s='Order Details -'}</strong></p>
|
||||
{/block}
|
||||
{block name='order_confirmation_order_detail'}
|
||||
<div id="order-detail-content" class="">
|
||||
<table class="table table-bordered">
|
||||
{if isset($cart_htl_data)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product">{l s='Room Image'}</th>
|
||||
<th class="cart_description">{l s='Room Description'}</th>
|
||||
<th>{l s='Hotel Name'}</th>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Check-in Date'}</th>
|
||||
<th>{l s='Check-out Date'}</th>
|
||||
<th>{l s='Extra Services'}</th>
|
||||
<th class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
{block name='order_confirmation_order_detail_table'}
|
||||
<table class="table table-bordered">
|
||||
{if isset($cart_htl_data)}
|
||||
{block name='order_confirmation_order_detail_table_header'}
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="cart_product">{l s='Room Image'}</th>
|
||||
<th class="cart_description">{l s='Room Description'}</th>
|
||||
<th>{l s='Hotel Name'}</th>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Check-in Date'}</th>
|
||||
<th>{l s='Check-out Date'}</th>
|
||||
<th>{l s='Extra Services'}</th>
|
||||
<th class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{/block}
|
||||
{block name='order_confirmation_order_detail_table_body'}
|
||||
<tbody>
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<tr class="table_body">
|
||||
{block name='order_confirmation_order_detail_table_row'}
|
||||
<td class="cart_product">
|
||||
{block name='order_confirmation_order_detail_room_cover_image'}
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
{/block}
|
||||
</td>
|
||||
<td class="cart_description">
|
||||
{block name='order_confirmation_order_detail_room_name'}
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
</a>
|
||||
</p>
|
||||
{/block}
|
||||
</td>
|
||||
<td>
|
||||
{block name='order_confirmation_order_detail_hotel_name'}
|
||||
{$data_v['hotel_name']}
|
||||
{block name='displayOrderConfirmationHotelNameAfter'}
|
||||
{hook h="displayOrderConfirmationHotelNameAfter" id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
{/block}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{block name='order_confirmation_order_detail_guest'}
|
||||
<p>
|
||||
{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}<br>{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>
|
||||
{/block}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{block name='order_confirmation_order_detail_check_in'}
|
||||
<p>
|
||||
{$rm_v['data_form']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
{/block}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{block name='order_confirmation_order_detail_check_out'}
|
||||
<p>
|
||||
{$rm_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
{/block}
|
||||
</td>
|
||||
<td>
|
||||
{block name='order_confirmation_order_detail_room_extra_demands'}
|
||||
<p class="text-center">
|
||||
|
||||
{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="{$data_v['id_order']}" data-action="{$link->getPageLink('order-detail')}" class="open_rooms_extra_services_panel" 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=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
</a>
|
||||
{/if}
|
||||
</p>
|
||||
{/block}
|
||||
</td>
|
||||
<td class="cart_total text-left">
|
||||
{block name='order_confirmation_order_room_total'}
|
||||
<p class="text-left">
|
||||
{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=$objOrderCurrency}
|
||||
{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=$objOrderCurrency}
|
||||
{/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 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=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['additional_services_price_auto_add_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Service 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=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
{/block}
|
||||
</td>
|
||||
{if isset($orders_has_invoice) && $orders_has_invoice && $order->payment != 'Free order'}
|
||||
{/if}
|
||||
{* <td class="text-center">
|
||||
{if isset($rm_v['is_backorder']) && $rm_v['is_backorder']}
|
||||
{l s='On Backorder'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td> *}
|
||||
{/block}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/block}
|
||||
{/if}
|
||||
{if isset($cart_service_products)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="1">{l s='Image'}</th>
|
||||
<th colspan="2">{l s='Name'}</th>
|
||||
<th colspan="2">{l s='Unit Price'}</th>
|
||||
<th colspan="1">{l s='Quantity'}</th>
|
||||
<th colspan="2" class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_service_products key=data_k item=data_v}
|
||||
<tr class="table_body">
|
||||
<td class="cart_product">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart_description">
|
||||
<td class="cart_product" colspan="2">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
{$data_v['product_name']}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td>{$data_v['hotel_name']}
|
||||
{block name='displayOrderConfirmationHotelNameAfter'}
|
||||
{hook h="displayOrderConfirmationHotelNameAfter" id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{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}<br>{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>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{$rm_v['data_form']|date_format:"%d-%m-%Y"}
|
||||
</p>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<p>
|
||||
{$rm_v['data_to']|date_format:"%d-%m-%Y"}
|
||||
<td class="cart_unit" colspan="2">
|
||||
<p class="text-center">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_incl']|floatval|round:2} *}
|
||||
{else}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_excl']|floatval|round:2} *}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-center">
|
||||
|
||||
{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="{$data_v['id_order']}" data-action="{$link->getPageLink('order-detail')}" class="open_rooms_extra_services_panel" href="#rooms_type_extra_services_form">
|
||||
{/if}
|
||||
{$data_v['product_quantity']}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-left" colspan="2">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_ti'] + $rm_v['additional_services_price_ti']) currency=$objOrderCurrency}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
{if (isset($rm_v['extra_demands']) && $rm_v['extra_demands']) || isset($rm_v['additional_services']) && $rm_v['additional_services']}
|
||||
</a>
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td class="cart_total text-left">
|
||||
<p class="text-left">
|
||||
{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=$objOrderCurrency}
|
||||
{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=$objOrderCurrency}
|
||||
{/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 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=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['amount_tax_excl'] + $rm_v['additional_services_price_auto_add_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-row">
|
||||
<div>
|
||||
<p>{l s='Service 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=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=($rm_v['extra_demands_price_te'] + $rm_v['additional_services_price_te']) currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
{if isset($orders_has_invoice) && $orders_has_invoice && $order->payment != 'Free order'}
|
||||
{/if}
|
||||
{* <td class="text-center">
|
||||
{if isset($rm_v['is_backorder']) && $rm_v['is_backorder']}
|
||||
{l s='On Backorder'}
|
||||
{else}
|
||||
--
|
||||
{/if}
|
||||
</td> *}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
{if isset($cart_service_products)}
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="1">{l s='Image'}</th>
|
||||
<th colspan="2">{l s='Name'}</th>
|
||||
<th colspan="2">{l s='Unit Price'}</th>
|
||||
<th colspan="1">{l s='Quantity'}</th>
|
||||
<th colspan="2" class="cart_total">{l s='Total'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$cart_service_products key=data_k item=data_v}
|
||||
<tr class="table_body">
|
||||
<td class="cart_product">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive"/>
|
||||
</a>
|
||||
</td>
|
||||
<td class="cart_product" colspan="2">
|
||||
<p class="product-name">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['product_name']}
|
||||
</a>
|
||||
</p>
|
||||
</td>
|
||||
<td class="cart_unit" colspan="2">
|
||||
<p class="text-center">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_incl']|floatval|round:2} *}
|
||||
{else}
|
||||
{* {displayPrice price=$data_v['unit_price_tax_excl']|floatval|round:2} *}
|
||||
{displayWtPriceWithCurrency price=$data_v['unit_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-center">
|
||||
{$data_v['product_quantity']}
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="text-left" colspan="2">
|
||||
{if $group_use_tax}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_incl'] currency=$objOrderCurrency}
|
||||
{else}
|
||||
{displayWtPriceWithCurrency price=$data_v['total_price_tax_excl'] currency=$objOrderCurrency}
|
||||
{/if}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
{/if}
|
||||
<tfoot>
|
||||
{if isset($cart_htl_data)}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_te'] + $orderTotalInfo['total_services_te'] + $orderTotalInfo['total_auto_add_services_te'] + $orderTotalInfo['total_demands_price_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_ti'] + $orderTotalInfo['total_services_ti'] + $orderTotalInfo['total_auto_add_services_ti'] + $orderTotalInfo['total_demands_price_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tbody>
|
||||
{/if}
|
||||
{* {if isset($cart_service_products) && $cart_service_products}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_ti'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{* {if $orderTotalInfo['total_services_te'] > 0}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost'} {if $use_tax}{l s='(tax incl.)'}{/if}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{if $order->total_wrapping > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total gift wrapping cost'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-wrapping">{displayWtPriceWithCurrency price=($orderTotalInfo['total_wrapping'] * -1) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->total_discounts > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Vouchers'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<tfoot>
|
||||
{block name='order_confirmation_order_total_detail'}
|
||||
{if isset($cart_htl_data)}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_te'] + $orderTotalInfo['total_services_te'] + $orderTotalInfo['total_auto_add_services_te'] + $orderTotalInfo['total_demands_price_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_rooms_ti'] + $orderTotalInfo['total_services_ti'] + $orderTotalInfo['total_auto_add_services_ti'] + $orderTotalInfo['total_demands_price_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $priceDisplay && $use_tax && $orderTotalInfo['total_convenience_fee_te']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else if $orderTotalInfo['total_convenience_fee_ti']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Tax'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="totalprice item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Final Booking Total'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_paid'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{if $orderTotalInfo['total_paid'] > $orderTotalInfo['total_paid_real']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Due Amount'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_paid'] - $orderTotalInfo['total_paid_real']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</tfoot>
|
||||
</table>
|
||||
{/if}
|
||||
{* {if isset($cart_service_products) && $cart_service_products}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total service products cost'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_ti'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{* {if $orderTotalInfo['total_services_te'] > 0}
|
||||
{if $priceDisplay && $use_tax}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_te'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total extra services cost'} {if $use_tax}{l s='(tax incl.)'}{/if}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_services_ti'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if} *}
|
||||
{if $order->total_wrapping > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total gift wrapping cost'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-wrapping">{displayWtPriceWithCurrency price=($orderTotalInfo['total_wrapping'] * -1) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $order->total_discounts > 0}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Vouchers'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
{if $priceDisplay && $use_tax}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts_te'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
{else}
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=($orderTotalInfo['total_discounts'] * -1) currency=$objOrderCurrency convert=1}</span>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $priceDisplay && $use_tax && $orderTotalInfo['total_convenience_fee_te']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees (tax excl.)'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_te']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{else if $orderTotalInfo['total_convenience_fee_ti']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Convenience Fees'} {if $use_tax}{l s='(tax incl.)'}{/if} </strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_convenience_fee_ti']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Total Tax'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span class="price-discount">{displayWtPriceWithCurrency price=$orderTotalInfo['total_tax'] currency=$objOrderCurrency convert=1}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="totalprice item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Final Booking Total'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=$orderTotalInfo['total_paid'] currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{if $orderTotalInfo['total_paid'] > $orderTotalInfo['total_paid_real']}
|
||||
<tr class="item">
|
||||
<td colspan="3"></td>
|
||||
<td colspan="3">
|
||||
<strong>{l s='Due Amount'}</strong>
|
||||
</td>
|
||||
<td colspan="2">
|
||||
<span>{displayWtPriceWithCurrency price=($orderTotalInfo['total_paid'] - $orderTotalInfo['total_paid_real']) currency=$objOrderCurrency}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/block}
|
||||
</tfoot>
|
||||
</table>
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
<p>{l s='An email has been sent with this information.'}
|
||||
|
||||
@@ -24,41 +24,45 @@
|
||||
*}
|
||||
|
||||
{block name='order_detail'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}">
|
||||
{l s='Bookings'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking details'}
|
||||
</span>
|
||||
{/capture}
|
||||
{block name='order_detail_heading'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<a href="{$link->getPageLink('history', true)|escape:'html':'UTF-8'}">
|
||||
{l s='Bookings'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking details'}
|
||||
</span>
|
||||
{/capture}
|
||||
|
||||
<h1 class="page-heading bottom-indent">
|
||||
{l s='Booking Details'}
|
||||
</h1>
|
||||
<h1 class="page-heading bottom-indent">
|
||||
{l s='Booking Details'}
|
||||
</h1>
|
||||
{/block}
|
||||
|
||||
{include file="$tpl_dir./errors.tpl"}
|
||||
|
||||
{if isset($order) && $order}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="well well-md well-order-date">
|
||||
{l s='Booking Reference ' sprintf=$order->getUniqReference()}<strong>{$order->getUniqReference()}</strong>{l s=' - placed on'}
|
||||
<span title="{dateFormat date=$order->date_add full=1}">{dateFormat date=$order->date_add}</span>
|
||||
{block name='order_detail_subheading'}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="well well-md well-order-date">
|
||||
{l s='Booking Reference ' sprintf=$order->getUniqReference()}<strong>{$order->getUniqReference()}</strong>{l s=' - placed on'}
|
||||
<span title="{dateFormat date=$order->date_add full=1}">{dateFormat date=$order->date_add}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{block name='HOOK_ORDERDETAILDISPLAYED'}
|
||||
{block name='displayOrderDetail'}
|
||||
{$HOOK_ORDERDETAILDISPLAYED}
|
||||
{/block}
|
||||
|
||||
@@ -817,185 +821,185 @@
|
||||
{/if}
|
||||
|
||||
{block name='order_detail_refund_popups'}
|
||||
{if isset($refund_allowed) && $refund_allowed}
|
||||
<div style="display: none;">
|
||||
<div id="create-new-refund-popup">
|
||||
<form id="form-cancel-booking">
|
||||
<input type="hidden" name="id_order" value="{$order->id}">
|
||||
<div class="card cancel-booking">
|
||||
<div class="card-header">
|
||||
{l s='Cancel Bookings'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="errors" style="display: none;"></div>
|
||||
{if isset($refund_allowed) && $refund_allowed}
|
||||
<div style="display: none;">
|
||||
<div id="create-new-refund-popup">
|
||||
<form id="form-cancel-booking">
|
||||
<input type="hidden" name="id_order" value="{$order->id}">
|
||||
<div class="card cancel-booking">
|
||||
<div class="card-header">
|
||||
{l s='Cancel Bookings'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="errors" style="display: none;"></div>
|
||||
|
||||
<div class="col-xs-12">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-xs-4">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
{assign var='flag_is_first_iteration' value=true}
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<li class="{if $flag_is_first_iteration}active{/if}">
|
||||
<a href="#room-info-tab-{$data_v.id_product}-{$rm_k}" class="" data-toggle="tab">
|
||||
<div class="room-type-name">{$data_v.name}</div>
|
||||
<div class="duration">{dateFormat date=$rm_v.data_form} - {dateFormat date=$rm_v.data_to}</div>
|
||||
</a>
|
||||
</li>
|
||||
{if $flag_is_first_iteration}{assign var='flag_is_first_iteration' value=false}{/if}
|
||||
<div class="col-xs-12">
|
||||
<div class="row no-gutters">
|
||||
<div class="col-xs-4">
|
||||
<ul class="nav nav-tabs nav-stacked">
|
||||
{assign var='flag_is_first_iteration' value=true}
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<li class="{if $flag_is_first_iteration}active{/if}">
|
||||
<a href="#room-info-tab-{$data_v.id_product}-{$rm_k}" class="" data-toggle="tab">
|
||||
<div class="room-type-name">{$data_v.name}</div>
|
||||
<div class="duration">{dateFormat date=$rm_v.data_form} - {dateFormat date=$rm_v.data_to}</div>
|
||||
</a>
|
||||
</li>
|
||||
{if $flag_is_first_iteration}{assign var='flag_is_first_iteration' value=false}{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-8">
|
||||
<div class="tab-content clearfix">
|
||||
{assign var='flag_is_first_iteration' value=true}
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<div id="room-info-tab-{$data_v.id_product}-{$rm_k}" class="tab-pane {if $flag_is_first_iteration}active{/if}">
|
||||
<div class="room-type-summary clearfix">
|
||||
<p class="room-type-name">{$data_v.name}</p>
|
||||
<div class="col-xs-3">
|
||||
<p>{l s='Total Rooms'}</p>
|
||||
<strong>{$rm_v.num_rm|string_format:'%02d'}</strong>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<p>{l s='Cancelled Rooms'}</p>
|
||||
<strong>{($rm_v.count_cancelled + $rm_v.count_refunded)|string_format:'%02d'}</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rooms-summary">
|
||||
{foreach from=$rm_v['hotel_booking_details'] item=$hotel_booking_detail name=foreachRefundRooms}
|
||||
{assign var=is_room_cancelled value=(isset($refundReqBookings) && in_array($hotel_booking_detail.id_htl_booking, $refundReqBookings))}
|
||||
<div class="room-details {if $is_room_cancelled || ($hotel_booking_detail.id_status != $ROOM_STATUS_ALLOTED)}cancelled{/if} clearfix">
|
||||
<div class="occupancy-wrap">
|
||||
<div class="checkbox">
|
||||
<label for="bookings_to_refund_{$hotel_booking_detail.id_htl_booking}">
|
||||
<input type="checkbox" class="bookings_to_refund" id="bookings_to_refund_{$hotel_booking_detail.id_htl_booking}" name="bookings_to_refund[]" value="{$hotel_booking_detail.id_htl_booking|escape:'html':'UTF-8'}" {if $is_room_cancelled || ($hotel_booking_detail.id_status != $ROOM_STATUS_ALLOTED)}disabled{/if}/>
|
||||
{l s='Room'} - {$smarty.foreach.foreachRefundRooms.iteration|string_format:'%02d'}
|
||||
</label>
|
||||
|
||||
<span>({$hotel_booking_detail.adults|string_format:'%02d'} {if $hotel_booking_detail.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $hotel_booking_detail.children > 0}{l s=', '}{$hotel_booking_detail.children|string_format:'%02d'} {if $hotel_booking_detail.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if})</span>
|
||||
{if $hotel_booking_detail.is_cancelled}<span class="badge badge-danger badge-cancelled">{l s='Cancelled'}</span>{else if $hotel_booking_detail.is_refunded}<span class="badge badge-danger badge-cancelled">{l s='Refunded'}</span>{else if $hotel_booking_detail.refund_denied}<span class="badge badge-danger badge-cancelled">{l s='Refund denied'}</span> <i class="icon-info-circle refund-denied-info" data-refund_denied_info="{l s='Refund for this booking is denied. Please contact admin for more detail.'}"></i>{else if $hotel_booking_detail.id_status != $ROOM_STATUS_ALLOTED}<span class="badge badge-danger badge-cancelled">{if $hotel_booking_detail.id_status == $ROOM_STATUS_CHECKED_OUT}{l s='Checked-Out'}{else}{l s='Checked-In'}{/if}</span>{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{* Services are indexed with id_htl_booking *}
|
||||
{assign var='has_services' value=(isset($rm_v.additional_services) && isset($rm_v.additional_services[$hotel_booking_detail.id_htl_booking]) && isset($rm_v.additional_services[$hotel_booking_detail.id_htl_booking]['additional_services']))}
|
||||
{* Additional Facilities are indexed with id_room *}
|
||||
{assign var='has_facilities' value=(isset($rm_v.extra_demands) && isset($rm_v.extra_demands[$hotel_booking_detail.id_room]) && isset($rm_v.extra_demands[$hotel_booking_detail.id_room]['extra_demands']))}
|
||||
{if $has_services || $has_facilities}
|
||||
<div class="extra-services-wrap clearfix">
|
||||
{if $has_services}
|
||||
<div class="services-wrap clearfix">
|
||||
<div class="col-xs-3">
|
||||
<strong>{l s='Services'}</strong>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
{foreach from=$rm_v.additional_services[$hotel_booking_detail.id_htl_booking]['additional_services'] item=service}
|
||||
<span class="service">{$service.name}</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $has_facilities}
|
||||
<div class="facilities-wrap clearfix">
|
||||
<div class="col-xs-3">
|
||||
<strong>{l s='Facilities'}</strong>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
{foreach from=$rm_v.extra_demands[$hotel_booking_detail.id_room]['extra_demands'] item=facility}
|
||||
<span class="facility">{$facility.name}</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="extra-services-wrap clearfix">
|
||||
<p class="text-muted">{l s='No extra services added for this room.'}</p>
|
||||
</div>
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-xs-8">
|
||||
<div class="tab-content clearfix">
|
||||
{assign var='flag_is_first_iteration' value=true}
|
||||
{foreach from=$cart_htl_data key=data_k item=data_v}
|
||||
{foreach from=$data_v['date_diff'] key=rm_k item=rm_v}
|
||||
<div id="room-info-tab-{$data_v.id_product}-{$rm_k}" class="tab-pane {if $flag_is_first_iteration}active{/if}">
|
||||
<div class="room-type-summary clearfix">
|
||||
<p class="room-type-name">{$data_v.name}</p>
|
||||
<div class="col-xs-3">
|
||||
<p>{l s='Total Rooms'}</p>
|
||||
<strong>{$rm_v.num_rm|string_format:'%02d'}</strong>
|
||||
</div>
|
||||
{/foreach}
|
||||
<div class="col-xs-3">
|
||||
<p>{l s='Cancelled Rooms'}</p>
|
||||
<strong>{($rm_v.count_cancelled + $rm_v.count_refunded)|string_format:'%02d'}</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="rooms-summary">
|
||||
{foreach from=$rm_v['hotel_booking_details'] item=$hotel_booking_detail name=foreachRefundRooms}
|
||||
{assign var=is_room_cancelled value=(isset($refundReqBookings) && in_array($hotel_booking_detail.id_htl_booking, $refundReqBookings))}
|
||||
<div class="room-details {if $is_room_cancelled || ($hotel_booking_detail.id_status != $ROOM_STATUS_ALLOTED)}cancelled{/if} clearfix">
|
||||
<div class="occupancy-wrap">
|
||||
<div class="checkbox">
|
||||
<label for="bookings_to_refund_{$hotel_booking_detail.id_htl_booking}">
|
||||
<input type="checkbox" class="bookings_to_refund" id="bookings_to_refund_{$hotel_booking_detail.id_htl_booking}" name="bookings_to_refund[]" value="{$hotel_booking_detail.id_htl_booking|escape:'html':'UTF-8'}" {if $is_room_cancelled || ($hotel_booking_detail.id_status != $ROOM_STATUS_ALLOTED)}disabled{/if}/>
|
||||
{l s='Room'} - {$smarty.foreach.foreachRefundRooms.iteration|string_format:'%02d'}
|
||||
</label>
|
||||
|
||||
<span>({$hotel_booking_detail.adults|string_format:'%02d'} {if $hotel_booking_detail.adults > 1}{l s='Adults'}{else}{l s='Adult'}{/if}{if $hotel_booking_detail.children > 0}{l s=', '}{$hotel_booking_detail.children|string_format:'%02d'} {if $hotel_booking_detail.children > 1}{l s='Children'}{else}{l s='Child'}{/if}{/if})</span>
|
||||
{if $hotel_booking_detail.is_cancelled}<span class="badge badge-danger badge-cancelled">{l s='Cancelled'}</span>{else if $hotel_booking_detail.is_refunded}<span class="badge badge-danger badge-cancelled">{l s='Refunded'}</span>{else if $hotel_booking_detail.refund_denied}<span class="badge badge-danger badge-cancelled">{l s='Refund denied'}</span> <i class="icon-info-circle refund-denied-info" data-refund_denied_info="{l s='Refund for this booking is denied. Please contact admin for more detail.'}"></i>{else if $hotel_booking_detail.id_status != $ROOM_STATUS_ALLOTED}<span class="badge badge-danger badge-cancelled">{if $hotel_booking_detail.id_status == $ROOM_STATUS_CHECKED_OUT}{l s='Checked-Out'}{else}{l s='Checked-In'}{/if}</span>{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{* Services are indexed with id_htl_booking *}
|
||||
{assign var='has_services' value=(isset($rm_v.additional_services) && isset($rm_v.additional_services[$hotel_booking_detail.id_htl_booking]) && isset($rm_v.additional_services[$hotel_booking_detail.id_htl_booking]['additional_services']))}
|
||||
{* Additional Facilities are indexed with id_room *}
|
||||
{assign var='has_facilities' value=(isset($rm_v.extra_demands) && isset($rm_v.extra_demands[$hotel_booking_detail.id_room]) && isset($rm_v.extra_demands[$hotel_booking_detail.id_room]['extra_demands']))}
|
||||
{if $has_services || $has_facilities}
|
||||
<div class="extra-services-wrap clearfix">
|
||||
{if $has_services}
|
||||
<div class="services-wrap clearfix">
|
||||
<div class="col-xs-3">
|
||||
<strong>{l s='Services'}</strong>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
{foreach from=$rm_v.additional_services[$hotel_booking_detail.id_htl_booking]['additional_services'] item=service}
|
||||
<span class="service">{$service.name}</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $has_facilities}
|
||||
<div class="facilities-wrap clearfix">
|
||||
<div class="col-xs-3">
|
||||
<strong>{l s='Facilities'}</strong>
|
||||
</div>
|
||||
<div class="col-xs-9">
|
||||
{foreach from=$rm_v.extra_demands[$hotel_booking_detail.id_room]['extra_demands'] item=facility}
|
||||
<span class="facility">{$facility.name}</span>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{else}
|
||||
<div class="extra-services-wrap clearfix">
|
||||
<p class="text-muted">{l s='No extra services added for this room.'}</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{if $flag_is_first_iteration}{assign var='flag_is_first_iteration' value=false}{/if}
|
||||
{if $flag_is_first_iteration}{assign var='flag_is_first_iteration' value=false}{/if}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="selected-rooms-wrap">
|
||||
{l s='Selected Rooms: '}<span class="num-selected-rooms">{l s='00'}</span>
|
||||
</div>
|
||||
<div class="actions-wrap">
|
||||
<button class="btn btn-secondary btn-cancel">
|
||||
{l s='Cancel'}
|
||||
</button>
|
||||
<button class="btn btn-primary btn-next">
|
||||
{l s='Next'}
|
||||
</button>
|
||||
<div class="card-footer">
|
||||
<div class="selected-rooms-wrap">
|
||||
{l s='Selected Rooms: '}<span class="num-selected-rooms">{l s='00'}</span>
|
||||
</div>
|
||||
<div class="actions-wrap">
|
||||
<button class="btn btn-secondary btn-cancel">
|
||||
{l s='Cancel'}
|
||||
</button>
|
||||
<button class="btn btn-primary btn-next">
|
||||
{l s='Next'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card cancel-booking-preview" style="display:none;">
|
||||
<div class="card-header">
|
||||
{l s='Cancellation Reason'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="errors" style="display: none;"></div>
|
||||
|
||||
<div class="well well-sm">
|
||||
<p class="text">{l s='Total Rooms to Cancel:'} <span class="count-total-rooms">{l s='00'}</span></p>
|
||||
<div class="card cancel-booking-preview" style="display:none;">
|
||||
<div class="card-header">
|
||||
{l s='Cancellation Reason'}
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="errors" style="display: none;"></div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="label">{l s='Mention reason for cancellation'}<sup>{l s='*'}</sup></label>
|
||||
<textarea class="form-control cancellation_reason" name="cancellation_reason" rows="4" placeholder="{l s='Type here...'}"></textarea>
|
||||
<div class="well well-sm">
|
||||
<p class="text">{l s='Total Rooms to Cancel:'} <span class="count-total-rooms">{l s='00'}</span></p>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="label">{l s='Mention reason for cancellation'}<sup>{l s='*'}</sup></label>
|
||||
<textarea class="form-control cancellation_reason" name="cancellation_reason" rows="4" placeholder="{l s='Type here...'}"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer clearfix">
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-secondary btn-back">
|
||||
{l s='Back'}
|
||||
</button>
|
||||
<button class="btn btn-primary btn-submit">
|
||||
{l s='Submit'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer clearfix">
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-secondary btn-back">
|
||||
{l s='Back'}
|
||||
</button>
|
||||
<button class="btn btn-primary btn-submit">
|
||||
{l s='Submit'}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="popup-cancellation-submit-success" class="popup-cancellation-submit-success" style="display: none;">
|
||||
<div class="card">
|
||||
<div class="text-center">
|
||||
<div><i class="icon icon-check-circle text-success"></i></div>
|
||||
<h3><b>{l s='Request submitted successfully'}</b></h3>
|
||||
<h4>{l s='Your cancellation request has been submitted successfully. Go to Booking Refund Requests page for further updates.'}</h4>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="popup-cancellation-order-cancel-success" class="popup-cancellation-submit-success" style="display: none;">
|
||||
<div class="card">
|
||||
<div class="text-center">
|
||||
<div><i class="icon icon-check-circle text-success"></i></div>
|
||||
<h3><b>{l s='Booking cancelled successfully'}</b></h3>
|
||||
<h4>{l s='Your booking has been cancelled successfully.'}</h4>
|
||||
<div id="popup-cancellation-submit-success" class="popup-cancellation-submit-success" style="display: none;">
|
||||
<div class="card">
|
||||
<div class="text-center">
|
||||
<div><i class="icon icon-check-circle text-success"></i></div>
|
||||
<h3><b>{l s='Request submitted successfully'}</b></h3>
|
||||
<h4>{l s='Your cancellation request has been submitted successfully. Go to Booking Refund Requests page for further updates.'}</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div id="popup-view-extra-services" class="popup-view-extra-services" style="display: none;"></div>
|
||||
<div id="popup-cancellation-order-cancel-success" class="popup-cancellation-submit-success" style="display: none;">
|
||||
<div class="card">
|
||||
<div class="text-center">
|
||||
<div><i class="icon icon-check-circle text-success"></i></div>
|
||||
<h3><b>{l s='Booking cancelled successfully'}</b></h3>
|
||||
<h4>{l s='Your booking has been cancelled successfully.'}</h4>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div id="popup-view-extra-services" class="popup-view-extra-services" style="display: none;"></div>
|
||||
{/block}
|
||||
{/if}
|
||||
|
||||
{block name='order_detial_js_vars'}
|
||||
|
||||
@@ -24,22 +24,25 @@
|
||||
*}
|
||||
|
||||
{block name='order_follow'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund requests'}
|
||||
</span>
|
||||
{/capture}
|
||||
|
||||
{block name='order_follow_heading'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund requests'}
|
||||
</span>
|
||||
{/capture}
|
||||
{/block}
|
||||
<div class="panel">
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
{block name='order_follow_subheading'}
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
{/block}
|
||||
{if $ordersReturns && $ordersReturns|count}
|
||||
<div class="table-responsive wk-datatable-wrapper">
|
||||
<table class="table table-bordered">
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
{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='HOOK_CREATE_ACCOUNT_TOP'}
|
||||
{block name='displayCustomerAccountFormTop'}
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
{/block}
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
@@ -289,7 +289,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{block name='HOOK_CREATE_ACCOUNT_FORM'}
|
||||
{block name='displayCustomerAccountForm'}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
{/block}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{block name='HOOK_CREATE_ACCOUNT_TOP'}
|
||||
{block name='displayCustomerAccountFormTop'}
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
{/block}
|
||||
<!-- Error return block -->
|
||||
@@ -371,7 +371,7 @@
|
||||
</div>
|
||||
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
|
||||
</div>
|
||||
{block name='HOOK_CREATE_ACCOUNT_FORM'}
|
||||
{block name='displayCustomerAccountForm'}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
{/block}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="opc_account_form" class="unvisible">
|
||||
{block name='HOOK_CREATE_ACCOUNT_TOP'}
|
||||
{block name='displayCustomerAccountFormTop'}
|
||||
{$HOOK_CREATE_ACCOUNT_TOP}
|
||||
{/block}
|
||||
<div style="display: none;" id="opc_account_saved" class="alert alert-success">
|
||||
@@ -398,7 +398,7 @@
|
||||
</div>
|
||||
<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
|
||||
</div> *}
|
||||
{block name='HOOK_CREATE_ACCOUNT_FORM'}
|
||||
{block name='displayCustomerAccountForm'}
|
||||
{$HOOK_CREATE_ACCOUNT_FORM}
|
||||
{/block}
|
||||
<div class="submit opc-add-save clearfix">
|
||||
|
||||
@@ -54,12 +54,14 @@
|
||||
{if $step->step_key == 'checkout_rooms_summary'}
|
||||
{block name='order_opc_checkout_rooms_summary'}
|
||||
<div class="card">
|
||||
<div class="card-header" id="shopping-cart-summary-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-shopping-cart" aria-expanded="true" aria-controls="collapse-shopping-cart">
|
||||
<span>{l s='Rooms & Price Summary'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{block name='order_opc_checkout_rooms_summary_heading'}
|
||||
<div class="card-header" id="shopping-cart-summary-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-shopping-cart" aria-expanded="true" aria-controls="collapse-shopping-cart">
|
||||
<span>{l s='Rooms & Price Summary'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{/block}
|
||||
{if $step->step_is_reachable}
|
||||
<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">
|
||||
@@ -74,82 +76,88 @@
|
||||
{elseif $step->step_key == 'checkout_customer'}
|
||||
{block name='order_opc_checkout_customer'}
|
||||
<div class="card" id="guest-info-block">
|
||||
<div class="card-header" id="guest-info-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-guest-info" aria-expanded="true" aria-controls="collapse-guest-info">
|
||||
<span>{l s='Guest Information'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{block name='order_opc_checkout_customer_heading'}
|
||||
<div class="card-header" id="guest-info-head">
|
||||
<h5 class="accordion-header" data-toggle="collapse" data-target="#collapse-guest-info" aria-expanded="true" aria-controls="collapse-guest-info">
|
||||
<span>{l s='Guest Information'}</span>
|
||||
<i class="icon-angle-left pull-right accordion-left-arrow {if $step->step_is_current}hidden{/if}"></i>
|
||||
</h5>
|
||||
</div>
|
||||
{/block}
|
||||
{if $step->step_is_reachable}
|
||||
<div id="collapse-guest-info" class="opc-collapse {if !$step->step_is_current}collapse{/if}" aria-labelledby="guest-info-head" data-parent="#oprder-opc-accordion">
|
||||
<div class="card-body">
|
||||
{if $is_logged || $isGuest}
|
||||
{if $is_logged}
|
||||
<form id="customer_guest_detail_form">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="customer_guest_detail" id="customer_guest_detail" value="1" {if $id_customer_guest_detail}checked="checked"{/if}/>
|
||||
<label for="customer_guest_detail" id="customer_guest_detail_txt">{l s='Booking for someone else?'}</label>
|
||||
</p>
|
||||
<div id="customer-guest-detail-container" {if !$id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="customer_guest_detail_gender" id="customer_guest_detail_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.customer_guest_detail_gender) && $smarty.post.customer_guest_detail_gender == $gender->id_gender || (isset($customer_guest_detail) && $customer_guest_detail.id_gender == $gender->id_gender)} selected="selected"{/if}>{$gender->name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
{block name='order_opc_checkout_guest_detail_form'}
|
||||
<form id="customer_guest_detail_form">
|
||||
<p class="checkbox">
|
||||
<input type="checkbox" name="customer_guest_detail" id="customer_guest_detail" value="1" {if $id_customer_guest_detail}checked="checked"{/if}/>
|
||||
<label for="customer_guest_detail" id="customer_guest_detail_txt">{l s='Booking for someone else?'}</label>
|
||||
</p>
|
||||
<div id="customer-guest-detail-container" {if !$id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row">
|
||||
<div class="required clearfix gender-line col-sm-2">
|
||||
<label>{l s='Social title'}</label>
|
||||
<select name="customer_guest_detail_gender" id="customer_guest_detail_gender">
|
||||
{foreach from=$genders key=k item=gender}
|
||||
<option value="{$gender->id_gender}"{if isset($smarty.post.customer_guest_detail_gender) && $smarty.post.customer_guest_detail_gender == $gender->id_gender || (isset($customer_guest_detail) && $customer_guest_detail.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 is_required" id="customer_guest_detail_firstname" name="customer_guest_detail_firstname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_firstname) && $smarty.post.customer_guest_detail_firstname} value="{$smarty.post.customer_guest_detail_firstname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.firstname} value="{$customer_guest_detail.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 is_required" id="customer_guest_detail_lastname" name="customer_guest_detail_lastname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_lastname) && $smarty.post.customer_guest_detail_lastname} value="{$smarty.post.customer_guest_detail_lastname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.lastname} value="{$customer_guest_detail.lastname}"{/if}/>
|
||||
</div>
|
||||
</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 is_required" id="customer_guest_detail_firstname" name="customer_guest_detail_firstname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_firstname) && $smarty.post.customer_guest_detail_firstname} value="{$smarty.post.customer_guest_detail_firstname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.firstname} value="{$customer_guest_detail.firstname}"{/if}/>
|
||||
<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 is_required" id="customer_guest_detail_email" name="customer_guest_detail_email" data-validate="isEmail" data-maxSize="128"{if isset($smarty.post.customer_guest_detail_email) && $smarty.post.customer_guest_detail_email} value="{$smarty.post.customer_guest_detail_email}"{elseif isset($customer_guest_detail) && $customer_guest_detail.email} value="{$customer_guest_detail.email}"{/if}/>
|
||||
</div>
|
||||
</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 is_required" id="customer_guest_detail_lastname" name="customer_guest_detail_lastname" data-validate="isName" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_lastname) && $smarty.post.customer_guest_detail_lastname} value="{$smarty.post.customer_guest_detail_lastname}"{elseif isset($customer_guest_detail) && $customer_guest_detail.lastname} value="{$customer_guest_detail.lastname}"{/if}/>
|
||||
<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_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 is_required" name="customer_guest_detail_phone" id="customer_guest_detail_phone" data-validate="isPhoneNumber" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_phone) && $smarty.post.customer_guest_detail_phone} value="{$smarty.post.customer_guest_detail_phone}"{elseif isset($customer_guest_detail) && $customer_guest_detail.phone} value="{$customer_guest_detail.phone}"{/if}/>
|
||||
</div>
|
||||
</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 is_required" id="customer_guest_detail_email" name="customer_guest_detail_email" data-validate="isEmail" data-maxSize="128"{if isset($smarty.post.customer_guest_detail_email) && $smarty.post.customer_guest_detail_email} value="{$smarty.post.customer_guest_detail_email}"{elseif isset($customer_guest_detail) && $customer_guest_detail.email} value="{$customer_guest_detail.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_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 is_required" name="customer_guest_detail_phone" id="customer_guest_detail_phone" data-validate="isPhoneNumber" data-maxSize="32"{if isset($smarty.post.customer_guest_detail_phone) && $smarty.post.customer_guest_detail_phone} value="{$smarty.post.customer_guest_detail_phone}"{elseif isset($customer_guest_detail) && $customer_guest_detail.phone} value="{$customer_guest_detail.phone}"{/if}/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
{/block}
|
||||
{/if}
|
||||
<div id="checkout-guest-info-block" {if $id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Name'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{if $isGuest}
|
||||
{$guestInformations['customer_firstname']|escape:'html':'UTF-8'} {$guestInformations['customer_lastname']|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{$guestInformations['firstname']|escape:'html':'UTF-8'} {$guestInformations['lastname']|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Email'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">{$guestInformations['email']|escape:'html':'UTF-8'}</div>
|
||||
</div>
|
||||
{if (isset({$guestInformations['phone']}) && {$guestInformations['phone']})}
|
||||
{block name='order_opc_checkout_guest_detail'}
|
||||
<div id="checkout-guest-info-block" {if $id_customer_guest_detail}style="display: none;"{/if}>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">
|
||||
{l s='Phone Number'}
|
||||
</div>
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Name'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{$guestInformations['phone']|escape:'html':'UTF-8'}
|
||||
{if $isGuest}
|
||||
{$guestInformations['customer_firstname']|escape:'html':'UTF-8'} {$guestInformations['customer_lastname']|escape:'html':'UTF-8'}
|
||||
{else}
|
||||
{$guestInformations['firstname']|escape:'html':'UTF-8'} {$guestInformations['lastname']|escape:'html':'UTF-8'}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">{l s='Email'}</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">{$guestInformations['email']|escape:'html':'UTF-8'}</div>
|
||||
</div>
|
||||
{if (isset({$guestInformations['phone']}) && {$guestInformations['phone']})}
|
||||
<div class="row margin-btm-10">
|
||||
<div class="col-sm-3 col-xs-5 info-head">
|
||||
{l s='Phone Number'}
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-7 info-value">
|
||||
{$guestInformations['phone']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
{* proceed only if no order restrict errors are there *}
|
||||
{if !$orderRestrictErr}
|
||||
@@ -216,7 +224,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
{block name='order_opc_cart_total_details'}
|
||||
{block name='order_opc_cart_total_detail'}
|
||||
{* Total cart details, tax details, advance payment details and voucher details *}
|
||||
<div class="col-sm-12 card cart_total_detail_block">
|
||||
{* {if $total_rooms}
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<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='HOOK_ADVANCED_PAYMENT'}
|
||||
{block name='advancedPaymentOptions'}
|
||||
<div id="HOOK_ADVANCED_PAYMENT">
|
||||
<div class="row">
|
||||
<!-- Should get a collection of "PaymentOption" object -->
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</div>
|
||||
{/block}
|
||||
<p class="block-small-header">{l s='PAYMENT RESOURCE'}</p>
|
||||
{block name='HOOK_TOP_PAYMENT'}
|
||||
{block name='displayPaymentTop'}
|
||||
<div id="HOOK_TOP_PAYMENT">{$HOOK_TOP_PAYMENT}</div>
|
||||
{/block}
|
||||
{if $HOOK_PAYMENT}
|
||||
@@ -321,7 +321,7 @@
|
||||
{if $opc}
|
||||
<div id="opc_payment_methods-content">
|
||||
{/if}
|
||||
{block name='HOOK_PAYMENT'}
|
||||
{block name='displayPayment'}
|
||||
<div id="HOOK_PAYMENT">
|
||||
{$HOOK_PAYMENT}
|
||||
</div>
|
||||
|
||||
@@ -24,160 +24,173 @@
|
||||
*}
|
||||
|
||||
{block name='order_return'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}">
|
||||
{l s='Booking refund requests'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund detail'}
|
||||
</span>
|
||||
{/capture}
|
||||
{block name='order_return_heading'}
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
|
||||
{l s='My account'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<a href="{$link->getPageLink('order-follow', true)|escape:'html':'UTF-8'}">
|
||||
{l s='Booking refund requests'}
|
||||
</a>
|
||||
<span class="navigation-pipe">
|
||||
{$navigationPipe}
|
||||
</span>
|
||||
<span class="navigation_page">
|
||||
{l s='Booking refund detail'}
|
||||
</span>
|
||||
{/capture}
|
||||
{/block}
|
||||
|
||||
{block name='order_return_details'}
|
||||
{block name='order_return_detail'}
|
||||
{include file="./errors.tpl"}
|
||||
<div class="panel card">
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
{block name='order_return_subheading'}
|
||||
<h1 class="page-heading bottom-indent">
|
||||
<i class="icon-tasks"></i> {l s='Booking Refund Requests'}
|
||||
</h1>
|
||||
{/block}
|
||||
<div class="table-responsive wk-datatable-wrapper">
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Room type'}</th>
|
||||
<th>{l s='Hotel'}</th>
|
||||
<th>{l s='Duration'}</th>
|
||||
<th>{l s='Total rooms price (tax incl.)'}</th>
|
||||
<th>{l s='Extra services price (tax incl.)'}</th>
|
||||
{if $isRefundCompleted}
|
||||
<th>{l s='Refund amount'}</th>
|
||||
<th>{l s='Refund Status'}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
|
||||
{foreach from=$refundReqBookings item=$booking name=refundRequest}
|
||||
<tr>
|
||||
<td>{l s='Room'} - {$smarty.foreach.refundRequest.iteration|string_format:'%02d'}</td>
|
||||
<td>{$booking['room_type_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['hotel_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To'} {$booking['date_to']|date_format:"%d-%m-%Y"}</td>
|
||||
<td>{displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
<td>{displayPrice price=$booking['extra_service_total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
{if $isRefundCompleted}
|
||||
<td>
|
||||
{displayPrice price=$booking['refunded_amount'] currency=$orderCurrency['id']}
|
||||
</td>
|
||||
<td>
|
||||
{if $booking['is_cancelled']}
|
||||
<span class="badge badge-danger">{l s='Cancelled' mod='hotelreservationsystem'}</span>
|
||||
{* used id_customization to check if in this request which bookings are refunded or not*}
|
||||
{else if $booking['id_customization']}
|
||||
<span class="badge badge-success">{l s='Refunded' mod='hotelreservationsystem'}</span>
|
||||
{else}
|
||||
<span class="badge badge-danger">{l s='Denied' mod='hotelreservationsystem'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
{block name='order_return_table'}
|
||||
<table class="table table-bordered">
|
||||
{block name='order_return_table_header'}
|
||||
<tr>
|
||||
<th>{l s='Rooms'}</th>
|
||||
<th>{l s='Room type'}</th>
|
||||
<th>{l s='Hotel'}</th>
|
||||
<th>{l s='Duration'}</th>
|
||||
<th>{l s='Total rooms price (tax incl.)'}</th>
|
||||
<th>{l s='Extra services price (tax incl.)'}</th>
|
||||
{if $isRefundCompleted}
|
||||
<th>{l s='Refund amount'}</th>
|
||||
<th>{l s='Refund Status'}</th>
|
||||
{/if}
|
||||
</tr>
|
||||
{/block}
|
||||
{block name='order_return_table_body'}
|
||||
{foreach from=$refundReqBookings item=$booking name=refundRequest}
|
||||
<tr>
|
||||
{block name='order_return_table_row'}
|
||||
<td>{l s='Room'} - {$smarty.foreach.refundRequest.iteration|string_format:'%02d'}</td>
|
||||
<td>{$booking['room_type_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['hotel_name']|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$booking['date_from']|date_format:"%d-%m-%Y"} {l s='To'} {$booking['date_to']|date_format:"%d-%m-%Y"}</td>
|
||||
<td>{displayPrice price=$booking['total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
<td>{displayPrice price=$booking['extra_service_total_price_tax_incl'] currency=$orderCurrency['id']}</td>
|
||||
{if $isRefundCompleted}
|
||||
<td>
|
||||
{displayPrice price=$booking['refunded_amount'] currency=$orderCurrency['id']}
|
||||
</td>
|
||||
<td>
|
||||
{if $booking['is_cancelled']}
|
||||
<span class="badge badge-danger">{l s='Cancelled' mod='hotelreservationsystem'}</span>
|
||||
{* used id_customization to check if in this request which bookings are refunded or not*}
|
||||
{else if $booking['id_customization']}
|
||||
<span class="badge badge-success">{l s='Refunded' mod='hotelreservationsystem'}</span>
|
||||
{else}
|
||||
<span class="badge badge-danger">{l s='Denied' mod='hotelreservationsystem'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{/block}
|
||||
</tr>
|
||||
{/foreach}
|
||||
{/block}
|
||||
</table>
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Current refund state'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<span class="badge wk-badge" style="background-color:{$currentStateInfo['color']|escape:'html':'UTF-8'}">{$currentStateInfo['name']|escape:'html':'UTF-8'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Way of payment'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{if $orderInfo['is_advance_payment']}{l s='Advance Payment'}{else}{l s='Full Payment'}{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Total order amount'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderInfo['total_paid_tax_incl'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Request date'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['date_add']|date_format:"%d-%m-%Y %I:%M %p"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $currentStateInfo['refunded']}
|
||||
{block name='order_return_status_detail'}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Refunded amount' mod='hotelreservationsystem'}</strong>
|
||||
<strong>{l s='Current refund state'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderReturnInfo['refunded_amount'] currency=$orderInfo['id_currency']}
|
||||
<span class="badge wk-badge" style="background-color:{$currentStateInfo['color']|escape:'html':'UTF-8'}">{$currentStateInfo['name']|escape:'html':'UTF-8'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
{if $orderReturnInfo['payment_mode'] != '' && $orderReturnInfo['id_transaction'] != ''}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Way of payment'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{if $orderInfo['is_advance_payment']}{l s='Advance Payment'}{else}{l s='Full Payment'}{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Total order amount'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{displayPrice price=$orderInfo['total_paid_tax_incl'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Request date'} </strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['date_add']|date_format:"%d-%m-%Y %I:%M %p"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if $currentStateInfo['refunded']}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Payment mode' mod='hotelreservationsystem'}</strong>
|
||||
<strong>{l s='Refunded amount' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['payment_mode']|escape:'html':'UTF-8'}
|
||||
{displayPrice price=$orderReturnInfo['refunded_amount'] currency=$orderInfo['id_currency']}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Transaction ID' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
{$orderReturnInfo['id_transaction']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($orderReturnInfo['return_type'])}
|
||||
{if $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_CART_RULE}
|
||||
{if $orderReturnInfo['payment_mode'] != '' && $orderReturnInfo['id_transaction'] != ''}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Voucher' mod='hotelreservationsystem'}</strong>
|
||||
<strong>{l s='Payment mode' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('discount')}" target="_blank">
|
||||
{$voucher|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
{$orderReturnInfo['payment_mode']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{elseif $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_ORDER_SLIP}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Credit Slip' mod='hotelreservationsystem'}</strong>
|
||||
<strong>{l s='Transaction ID' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('order-slip')}" target="_blank">
|
||||
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$orderReturnInfo['id_return_type']|string_format:"%06d"}
|
||||
</a>
|
||||
{$orderReturnInfo['id_transaction']|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($orderReturnInfo['return_type'])}
|
||||
{if $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_CART_RULE}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Voucher' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('discount')}" target="_blank">
|
||||
{$voucher|escape:'html':'UTF-8'}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{elseif $orderReturnInfo['return_type'] == OrderReturn::RETURN_TYPE_ORDER_SLIP}
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2 col-sm-3">
|
||||
<strong>{l s='Credit Slip' mod='hotelreservationsystem'}</strong>
|
||||
</div>
|
||||
<div class="col-sm-9 col-md-10">
|
||||
<a class="link" href="{$link->getPageLink('order-slip')}" target="_blank">
|
||||
#{Configuration::get('PS_CREDIT_SLIP_PREFIX', $lang_id)}{$orderReturnInfo['id_return_type']|string_format:"%06d"}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
|
||||
@@ -196,11 +196,13 @@
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
<div id="service_products_cont">
|
||||
{if isset($service_products_exists) && $service_products_exists}
|
||||
{include file="{$tpl_dir}_partials/service-products.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
{block name='room_type_service_products'}
|
||||
<div id="service_products_cont">
|
||||
{if isset($service_products_exists) && $service_products_exists}
|
||||
{include file="{$tpl_dir}_partials/service-products.tpl"}
|
||||
{/if}
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
<div class="product_info_containter">
|
||||
<!-- tab hook is added here -->
|
||||
@@ -216,7 +218,7 @@
|
||||
{if $display_google_maps && ($hotel_latitude|floatval != 0 && $hotel_longitude|floatval != 0)}
|
||||
<li><a href="#room_type_map_tab" class="idTabHrefShort" data-toggle="tab">{l s='View on Map'}</a></li>
|
||||
{/if}
|
||||
{block name='HOOK_PRODUCT_TAB'}
|
||||
{block name='displayProductTab'}
|
||||
{$HOOK_PRODUCT_TAB}
|
||||
{/block}
|
||||
</ul>
|
||||
@@ -226,117 +228,133 @@
|
||||
{block name='room_type_info_tab_content'}
|
||||
<div id="product_info_tab" class="tab-pane active card">
|
||||
<div id="product_info_tab_information">
|
||||
<div class="row info_margin_div room_description">
|
||||
<div class="col-sm-12">
|
||||
{$product->description}
|
||||
</div>
|
||||
</div>
|
||||
{if isset($room_type_info['adults']) && isset($room_type_info['children']) }
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Max Capacity'}</span>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
<p>{$room_type_info['adults']} {l s='Adults'}, {$room_type_info['children']} {if $room_type_info['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if} ({l s='Max guests'}: {$room_type_info['max_guests']|escape:'htmlall':'UTF-8'})</p>
|
||||
{block name='room_type_info_room_tab_room_description'}
|
||||
<div class="row info_margin_div room_description">
|
||||
<div class="col-sm-12">
|
||||
{$product->description}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($id_hotel) && $id_hotel}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Check-in and check-out time'}</span>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
<p>{l s='Check-in: '}{$hotel_check_in|escape:'html':'UTF-8'}</p>
|
||||
<p>{l s='Check-out: '}{$hotel_check_out|escape:'html':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($features) && $features}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Room Features'}</span>
|
||||
</div>
|
||||
<div class="room_info_content row">
|
||||
{foreach from=$features key=ftr_k item=ftr_v}
|
||||
<div class="col-md-3 col-sm-4 col-xs-6">
|
||||
<div class="rm_ftr_wrapper" title="{$ftr_v.name|escape:'html':'UTF-8'}" alt="{$ftr_v.name|escape:'html':'UTF-8'}" >
|
||||
<img src="{$link->getMediaLink("`$ftr_img_src|escape:'html':'UTF-8'`{$ftr_v.value|escape:'html':'UTF-8'}")}"> {$ftr_v.name|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{* Block for booking products *}
|
||||
{if isset($id_hotel) && $id_hotel}
|
||||
{if isset($hotel_features) && $hotel_features}
|
||||
{/block}
|
||||
{block name='room_type_info_tab_room_guests'}
|
||||
{if isset($room_type_info['adults']) && isset($room_type_info['children']) }
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Features'}</span>
|
||||
<span>{l s='Max Capacity'}</span>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
<p>{$room_type_info['adults']} {l s='Adults'}, {$room_type_info['children']} {if $room_type_info['children'] > 1}{l s='Children'}{else}{l s='Child'}{/if} ({l s='Max guests'}: {$room_type_info['max_guests']|escape:'htmlall':'UTF-8'})</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='room_type_info_tab_room_timing'}
|
||||
{if isset($id_hotel) && $id_hotel}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Check-in and check-out time'}</span>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
<p>{l s='Check-in: '}{$hotel_check_in|escape:'html':'UTF-8'}</p>
|
||||
<p>{l s='Check-out: '}{$hotel_check_out|escape:'html':'UTF-8'}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='room_type_info_tab_room_features'}
|
||||
{if isset($features) && $features}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Room Features'}</span>
|
||||
</div>
|
||||
<div class="room_info_content row">
|
||||
{foreach from=$hotel_features key=ftr_k item=ftr_v}
|
||||
<div class="col-sm-4 col-xs-12"><i class="circle-small">o</i> {$ftr_v|escape:'html':'UTF-8'}</div>
|
||||
{foreach from=$features key=ftr_k item=ftr_v}
|
||||
<div class="col-md-3 col-sm-4 col-xs-6">
|
||||
<div class="rm_ftr_wrapper" title="{$ftr_v.name|escape:'html':'UTF-8'}" alt="{$ftr_v.name|escape:'html':'UTF-8'}" >
|
||||
<img src="{$link->getMediaLink("`$ftr_img_src|escape:'html':'UTF-8'`{$ftr_v.value|escape:'html':'UTF-8'}")}"> {$ftr_v.name|escape:'html':'UTF-8'}
|
||||
</div>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if isset($hotel_description) && $hotel_description}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Description'}</span>
|
||||
{/block}
|
||||
{* Block for booking products *}
|
||||
{if isset($id_hotel) && $id_hotel}
|
||||
{block name='room_type_info_tab_hotel_features'}
|
||||
{if isset($hotel_features) && $hotel_features}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Features'}</span>
|
||||
</div>
|
||||
<div class="room_info_content row">
|
||||
{foreach from=$hotel_features key=ftr_k item=ftr_v}
|
||||
<div class="col-sm-4 col-xs-12"><i class="circle-small">o</i> {$ftr_v|escape:'html':'UTF-8'}</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
{$hotel_description}
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='room_type_info_tab_hotel_description'}
|
||||
{if isset($hotel_description) && $hotel_description}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Description'}</span>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
{$hotel_description}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
{/if}
|
||||
{if isset($hotel_has_images) && $hotel_has_images}
|
||||
<div class="room_info_hotel_images_wrap">
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Images'}</span>
|
||||
</div>
|
||||
<div class="room_info_content" id="room_info_hotel_images">
|
||||
<div class="row images-wrap"></div>
|
||||
<div class="row skeleton-loading-wrap">
|
||||
<div class="skeleton-loading-wave clearfix">
|
||||
<div class="col-sm-4">
|
||||
<div class="loading-container-box"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="loading-container-box"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="loading-container-box"></div>
|
||||
{block name='room_type_info_tab_hotel_images'}
|
||||
{if isset($hotel_has_images) && $hotel_has_images}
|
||||
<div class="room_info_hotel_images_wrap">
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Images'}</span>
|
||||
</div>
|
||||
<div class="room_info_content" id="room_info_hotel_images">
|
||||
<div class="row images-wrap"></div>
|
||||
<div class="row skeleton-loading-wrap">
|
||||
<div class="skeleton-loading-wave clearfix">
|
||||
<div class="col-sm-4">
|
||||
<div class="loading-container-box"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="loading-container-box"></div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="loading-container-box"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn btn-primary btn-show-more-images hide" data-id-product="{$product->id}" data-next-page="1">
|
||||
<span>{l s='SHOW MORE'}</span>
|
||||
</a>
|
||||
</div>
|
||||
<a class="btn btn-primary btn-show-more-images hide" data-id-product="{$product->id}" data-next-page="1">
|
||||
<span>{l s='SHOW MORE'}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
<!-- <div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Rooms'}</span>
|
||||
</div>
|
||||
<div class="room_info_content row"></div>
|
||||
</div> -->
|
||||
{if isset($hotel_policies) && $hotel_policies}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Policies'}</span>
|
||||
{block name='room_type_info_tab_hotel_policies'}
|
||||
{if isset($hotel_policies) && $hotel_policies}
|
||||
<div class="info_margin_div">
|
||||
<div class="room_info_heading">
|
||||
<span>{l s='Hotel Policies'}</span>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
<p class="">{$hotel_policies}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="room_info_content">
|
||||
<p class="">{$hotel_policies}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
@@ -386,7 +404,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='HOOK_PRODUCT_TAB_CONTENT'}
|
||||
{block name='displayProductTabContent'}
|
||||
{if isset($HOOK_PRODUCT_TAB_CONTENT) && $HOOK_PRODUCT_TAB_CONTENT}{$HOOK_PRODUCT_TAB_CONTENT}{/if}
|
||||
{/block}
|
||||
</div>
|
||||
@@ -444,7 +462,7 @@
|
||||
{/if}
|
||||
{/block}
|
||||
{/if}
|
||||
{block name='HOOK_EXTRA_RIGHT'}
|
||||
{block name='displayRightColumnProduct'}
|
||||
{if isset($HOOK_EXTRA_RIGHT) && $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
|
||||
{/block}
|
||||
</div>
|
||||
@@ -599,7 +617,7 @@
|
||||
</section>
|
||||
<!--end Accessories -->
|
||||
{/if}
|
||||
{block name='HOOK_PRODUCT_FOOTER'}
|
||||
{block name='displayFooterProduct'}
|
||||
{if isset($HOOK_PRODUCT_FOOTER) && $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if}
|
||||
{/block}
|
||||
<!-- description & features -->
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
{block name='displayBeforeShoppingCartBlock'}
|
||||
{hook h="displayBeforeShoppingCartBlock"}
|
||||
{/block}
|
||||
{block name='shopping_cart_details'}
|
||||
{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>
|
||||
|
||||
@@ -81,140 +81,162 @@
|
||||
{hook h="displayBeforeShoppingCartBlock"}
|
||||
{/block}
|
||||
|
||||
{block name='shopping_cart_details'}
|
||||
{block name='shopping_cart_detail'}
|
||||
<div class="order-detail-content">
|
||||
{if isset($cart_htl_data) && $cart_htl_data}
|
||||
<p class="cart_section_title">{l s='rooms information'}</p>
|
||||
{block name='shopping_cart_detail_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($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> {l s='Remove'}</a>
|
||||
</p>
|
||||
{block name='displayCartRoomImageAfter'}
|
||||
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</div>
|
||||
<div class="col-sm-10">
|
||||
<div class="room-info-container">
|
||||
<div class="product-xs-img">
|
||||
{block name='shopping_cart_detail_room_cover_image'}
|
||||
<div class="col-sm-2 product-img-block">
|
||||
<p>
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="product-xs-info">
|
||||
<p class="product-name">
|
||||
</p>
|
||||
{block name='shopping_cart_detail_room_remove_button'}
|
||||
<p class="room_remove_block">
|
||||
<a href="{$rm_v['link']}"><i class="icon-trash"></i> {l s='Remove'}</a>
|
||||
</p>
|
||||
{/block}
|
||||
{block name='displayCartRoomImageAfter'}
|
||||
{hook h='displayCartRoomImageAfter' id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
<div class="col-sm-10">
|
||||
<div class="room-info-container">
|
||||
{block name='shopping_cart_detail_room_cover_image_mobile'}
|
||||
<div class="product-xs-img">
|
||||
<a href="{$link->getProductLink($data_v['id_product'])}">
|
||||
{$data_v['name']}
|
||||
<img src="{$data_v['cover_img']}" class="img-responsive" />
|
||||
</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']}
|
||||
</div>
|
||||
{/block}
|
||||
{block name='shopping_cart_detail_room_detail'}
|
||||
<div class="product-xs-info">
|
||||
{block name='shopping_cart_detail_room_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}
|
||||
</p>
|
||||
{if isset($data_v['hotel_info']['location'])}
|
||||
<p class="hotel-location">
|
||||
<i class="icon-map-marker"></i> {$data_v['hotel_info']['location']}
|
||||
</p>
|
||||
{/if}
|
||||
{block name='displayCartRoomTypeInfo'}
|
||||
{hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</div>
|
||||
{block name='shopping_cart_detail_room_hotel_location'}
|
||||
{if isset($data_v['hotel_info']['location'])}
|
||||
<p class="hotel-location">
|
||||
<i class="icon-map-marker"></i> {$data_v['hotel_info']['location']}
|
||||
</p>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='displayCartRoomTypeInfo'}
|
||||
{hook h='displayCartRoomTypeInfo' id_product=$data_v['id_product']}
|
||||
{/block}
|
||||
</div>
|
||||
{/block}
|
||||
</div>
|
||||
{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}
|
||||
<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="row room_price_detail_block">
|
||||
<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}
|
||||
{block name='shopping_cart_detail_room_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>
|
||||
{/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">
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name='shopping_cart_detail_room_booking_duration'}
|
||||
<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_detail_room_price_detail'}
|
||||
<div class="row room_price_detail_block">
|
||||
<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['demand_price']}
|
||||
{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">
|
||||
<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>
|
||||
{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}
|
||||
{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 name='shopping_cart_detail_room_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-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>
|
||||
</div>
|
||||
{/block}
|
||||
{block name='displayCartProductContentAfter'}
|
||||
{hook h='displayCartProductContentAfter' cart_detail=$data_v key=$rm_k}
|
||||
{/block}
|
||||
@@ -413,7 +435,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
{block name='HOOK_SHOPPING_CART'}
|
||||
{block name='displayShoppingCartFooter'}
|
||||
<div id="HOOK_SHOPPING_CART">{$HOOK_SHOPPING_CART}</div>
|
||||
{/block}
|
||||
{* <p class="cart_navigation clearfix">
|
||||
@@ -428,7 +450,7 @@
|
||||
</p> *}
|
||||
<div class="clear"></div>
|
||||
<div class="cart_navigation_extra">
|
||||
{block name='HOOK_SHOPPING_CART_EXTRA'}
|
||||
{block name='displayShoppingCart'}
|
||||
<div id="HOOK_SHOPPING_CART_EXTRA">{if isset($HOOK_SHOPPING_CART_EXTRA)}{$HOOK_SHOPPING_CART_EXTRA}{/if}</div>
|
||||
{/block}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user