{* * 2010-2022 Webkul. * * NOTICE OF LICENSE * * All right is reserved, * Please go through LICENSE.txt file inside our module * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade this module to newer * versions in the future. If you wish to customize this module for your * needs please refer to CustomizationPolicy.txt file inside our module for more information. * * @author Webkul IN * @copyright 2010-2022 Webkul IN * @license LICENSE.txt *}
{if isset($id_hotel) && $id_hotel}

{$hotel_location|escape:'html':'UTF-8'}

{/if} {if $product->show_price && !isset($restricted_country_mode) && !$PS_CATALOG_MODE} {* Block for booking products *} {if $product->booking_product} {if !$order_date_restrict}
{l s='Check-in'}    {l s='Check-out'}
{if $total_available_rooms > 0}
available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}> {if isset($occupancy_required_for_booking) && $occupancy_required_for_booking} {include file="./occupancy_field.tpl"} {else} {include file="./quantity_field.tpl"} {/if}
{if (isset($has_room_type_demands) && $has_room_type_demands) || (isset($service_products_exists) && $service_products_exists)}

{convertPrice price=$rooms_price|floatval} +

{if isset($demands_price)}{convertPrice price=$demands_price}{else}{convertPrice price=0}{/if} {if (isset($selected_demands) && $selected_demands) || (isset($selected_service_product) && $selected_service_product)} {/if}

{if (isset(selected_demands) && selected_demands) || (isset(selected_service_product) && selected_service_product)} {/if}

{/if}

{convertPrice price=$total_price|floatval}

{if $total_available_rooms <= $warning_count}
{$total_available_rooms|escape:'html':'UTF-8'} {if $total_available_rooms > 1} {l s='rooms left!'} {else} {l s='room left!'} {/if}
{/if}
{if (!$allow_oosp && $product->quantity <= 0) || !$product->available_for_order || (isset($restricted_country_mode) && $restricted_country_mode) || $PS_CATALOG_MODE || $order_date_restrict} {else}

{/if}
{else}
{l s='All rooms sold out!'}
{/if} {/if} {else} {if $product->allow_multiple_quantity}
quantity <= 0) || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none;"{/if}>
{/if}

{convertPrice price=$productPrice|floatval}

{/if} {/if} {if $order_date_restrict}
{l s='You can\'t book rooms after %s.' sprintf=[{dateFormat date=$max_order_date full=0}]}
{/if}