auto_add_to_cart || !$product->isAssociatedToShop()}style="display:none;"{/if}>
{/if}
{/block}
- {block name='booking_form_service_product_option'}
- {if isset($service_product_option) && $service_product_option}
+ {block name='booking_form_product_option'}
+ {if isset($product_option) && $product_option}
- {foreach $service_product_option as $option}
+ {foreach $product_option as $option}
{/block}
{block name='blockcart_shopping_cart_hotel_name'}
- {if $product.service_product_type == Product::SERVICE_PRODUCT_lINKED_WITH_HOTEL}
+ {if $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE || $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE}
{$hotel_wise_data.hotel_name|escape:'html':'UTF-8'}
@@ -29,7 +29,7 @@
{if !isset($product.is_gift) || !$product.is_gift}
{if $product.booking_product}
{displayWtPrice p="`$product.bookingData.total_room_type_amount`"}
- {else if $product.service_product_type == Product::SERVICE_PRODUCT_lINKED_WITH_HOTEL}
+ {else if $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE || $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE}
{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$hotel_wise_data.total_price_tax_excl`"}{else}{displayWtPrice p="`$hotel_wise_data.total_price_tax_incl`"}{/if}
{else}
{if $priceDisplay == $smarty.const.PS_TAX_EXC}{displayWtPrice p="`$product.total_price_tax_excl`"}{else}{displayWtPrice p="`$product.total_price_tax_incl`"}{/if}
@@ -53,9 +53,9 @@
{if $product.booking_product}
{$product.bookingData['total_num_rooms']}
{else}
- {if $product.service_product_type == Product::SERVICE_PRODUCT_lINKED_WITH_HOTEL}
+ {if $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE || $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE}
{$hotel_wise_data.total_qty}
- {elseif $product.service_product_type == Product::SERVICE_PRODUCT_STANDALONE}
+ {elseif $product.selling_preference_type == Product::SELLING_PREFERENCE_STANDALONE}
{$product.cart_quantity}
{/if}
{/if}
@@ -99,9 +99,9 @@
{/block}
{else if $product.hasOptions}
{block name='blockcart_shopping_cart_options'}
- {if $product.service_product_type == Product::SERVICE_PRODUCT_lINKED_WITH_HOTEL}
+ {if $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE || $product.selling_preference_type == Product::SELLING_PREFERENCE_HOTEL_STANDALONE_AND_WITH_ROOM_TYPE}
{assign var='options' value=$hotel_wise_data.options}
- {else if $product.service_product_type == Product::SERVICE_PRODUCT_STANDALONE}
+ {else if $product.selling_preference_type == Product::SELLING_PREFERENCE_STANDALONE}
{assign var='options' value=$product.options}
{/if}
@@ -118,7 +118,7 @@
{$data_v.option_name} |
{$data_v['quantity']} |
{convertPrice price=($data_v['total_price_tax_excl'])} |
-
|
+
|
{/foreach}
diff --git a/themes/hotel-reservation-theme/order-confirmation.tpl b/themes/hotel-reservation-theme/order-confirmation.tpl
index a5501acb5..a8fc84078 100644
--- a/themes/hotel-reservation-theme/order-confirmation.tpl
+++ b/themes/hotel-reservation-theme/order-confirmation.tpl
@@ -443,7 +443,7 @@
{l s='Total products cost'} {if $use_tax}{l s='(tax incl.)'}{/if}
- {displayWtPriceWithCurrency price=$orderTotalInfo['total_service_products_ti'] currency=$objOrderCurrency}
+ {displayWtPriceWithCurrency price=$orderTotalInfo['total_standalone_products_ti'] currency=$objOrderCurrency}
|
{/if}
diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl
index d73f0a2f4..563b7259f 100644
--- a/themes/hotel-reservation-theme/order-detail.tpl
+++ b/themes/hotel-reservation-theme/order-detail.tpl
@@ -340,21 +340,21 @@
{assign var=room_price_tax_excl value=$order->getTotalProductsWithoutTaxes(false, true)}
{assign var=room_price_tax_incl value=$order->getTotalProductsWithTaxes(false, true)}
- {assign var=additional_service_price_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE) + $total_demands_price_te)}
- {assign var=additional_service_price_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE) + $total_demands_price_ti)}
- {assign var=total_tax_without_discount value=(($room_price_tax_incl - $room_price_tax_excl) + ($additional_service_price_tax_incl - $additional_service_price_tax_excl ))}
+ {assign var=room_services_price_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE) + $total_demands_price_te)}
+ {assign var=room_services_price_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE) + $total_demands_price_ti)}
+ {assign var=total_tax_without_discount value=(($room_price_tax_incl - $room_price_tax_excl) + ($room_services_price_tax_incl - $room_services_price_tax_excl ))}
{if $priceDisplay && $use_tax && $room_price_tax_excl}
| {l s='Total rooms cost (tax excl.)'} |
- {displayWtPriceWithCurrency price=($room_price_tax_excl + $additional_service_price_tax_excl - $total_convenience_fee_te) currency=$currency}
+ {displayWtPriceWithCurrency price=($room_price_tax_excl + $room_services_price_tax_excl - $total_convenience_fee_te) currency=$currency}
|
{else}
| {l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} |
- {displayWtPriceWithCurrency price=($room_price_tax_incl + $additional_service_price_tax_incl - $total_convenience_fee_ti) currency=$currency}
+ {displayWtPriceWithCurrency price=($room_price_tax_incl + $room_services_price_tax_incl - $total_convenience_fee_ti) currency=$currency}
|
{/if}
@@ -738,21 +738,30 @@
{assign var=room_price_tax_excl value=$order->getTotalProductsWithoutTaxes(false, true)}
{assign var=room_price_tax_incl value=$order->getTotalProductsWithTaxes(false, true)}
- {assign var=additional_service_price_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE) + $total_demands_price_te)}
- {assign var=additional_service_price_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SERVICE_PRODUCT_WITH_ROOMTYPE) + $total_demands_price_ti)}
- {assign var=total_tax_without_discount value=(($room_price_tax_incl - $room_price_tax_excl) + ($additional_service_price_tax_incl - $additional_service_price_tax_excl ))}
+
+ {assign var=room_services_price_tax_excl value=($order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE) + $total_demands_price_te)}
+ {assign var=room_services_price_tax_incl value=($order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_WITH_ROOM_TYPE) + $total_demands_price_ti)}
+
+ {assign var=hotel_products_price_tax_excl value=$order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_HOTEL_STANDALONE)}
+ {assign var=hotel_products_price_tax_incl value=$order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_HOTEL_STANDALONE)}
+
+ {assign var=standalone_products_price_tax_excl value=$order->getTotalProductsWithoutTaxes(false, false, Product::SELLING_PREFERENCE_STANDALONE)}
+ {assign var=standalone_products_price_tax_incl value=$order->getTotalProductsWithTaxes(false, false, Product::SELLING_PREFERENCE_STANDALONE)}
+
+ {assign var=total_tax_without_discount value=(($room_price_tax_incl - $room_price_tax_excl) + ($room_services_price_tax_incl - $room_services_price_tax_excl) + ($standalone_products_price_tax_excl - $standalone_products_price_tax_excl) + ($hotel_products_price_tax_incl - $hotel_products_price_tax_excl))}
+
{if $priceDisplay && $use_tax && $room_price_tax_excl}
| {l s='Total rooms cost (tax excl.)'} |
- {displayWtPriceWithCurrency price=($room_price_tax_excl + $additional_service_price_tax_excl - $total_convenience_fee_te) currency=$currency}
+ {displayWtPriceWithCurrency price=($room_price_tax_excl + $room_services_price_tax_excl - $total_convenience_fee_te) currency=$currency}
|
{else}
| {l s='Total Rooms Cost'} {if $use_tax}{l s='(tax incl.)'}{/if} |
- {displayWtPriceWithCurrency price=($room_price_tax_incl + $additional_service_price_tax_incl - $total_convenience_fee_ti) currency=$currency}
+ {displayWtPriceWithCurrency price=($room_price_tax_incl + $room_services_price_tax_incl - $total_convenience_fee_ti) currency=$currency}
|
{/if}
diff --git a/themes/hotel-reservation-theme/shopping-cart-detail.tpl b/themes/hotel-reservation-theme/shopping-cart-detail.tpl
index 0e5e0dd88..68bad0017 100644
--- a/themes/hotel-reservation-theme/shopping-cart-detail.tpl
+++ b/themes/hotel-reservation-theme/shopping-cart-detail.tpl
@@ -199,7 +199,7 @@
-
+
{l s='Remove'}
{* {l s='Remove'} *}
@@ -251,16 +251,16 @@