From 33fb271c03a43fe82d13186cdb12907c03f7dfbc Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 6 Sep 2024 17:50:18 +0530 Subject: [PATCH] add tax label with convenience fee and updated cart total hook --- modules/blockcart/blockcart.tpl | 11 ++++++++++- themes/hotel-reservation-theme/css/order-opc.css | 1 + .../modules/blockcart/blockcart.tpl | 11 ++++++++++- themes/hotel-reservation-theme/order-opc.tpl | 7 ++----- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/modules/blockcart/blockcart.tpl b/modules/blockcart/blockcart.tpl index bcb9ca6a5..942066340 100644 --- a/modules/blockcart/blockcart.tpl +++ b/modules/blockcart/blockcart.tpl @@ -356,7 +356,16 @@ --> {if isset($total_convenience_fee)}
- {l s='Convenience Fees' mod='blockcart'} + + {l s='Convenience Fees' mod='blockcart'} + {if $display_tax_label} + {if $priceDisplay == 1} + {l s='(tax excl.)' mod='blockcart'} + {else} + {l s='(tax incl.)' mod='blockcart'} + {/if} + {/if} + {convertPrice price=$total_convenience_fee}
{/if} diff --git a/themes/hotel-reservation-theme/css/order-opc.css b/themes/hotel-reservation-theme/css/order-opc.css index 03de6fea2..77bc0d9f1 100644 --- a/themes/hotel-reservation-theme/css/order-opc.css +++ b/themes/hotel-reservation-theme/css/order-opc.css @@ -451,6 +451,7 @@ color: #459C3D; } #order-opc .cart_total_detail_block .cart_final_total_block { + margin-bottom: 0; line-height: 40px; } #order-opc .cart_total_detail_block .cart_final_total_block > .cart_total_values { diff --git a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl index bcb9ca6a5..942066340 100644 --- a/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl +++ b/themes/hotel-reservation-theme/modules/blockcart/blockcart.tpl @@ -356,7 +356,16 @@ --> {if isset($total_convenience_fee)}
- {l s='Convenience Fees' mod='blockcart'} + + {l s='Convenience Fees' mod='blockcart'} + {if $display_tax_label} + {if $priceDisplay == 1} + {l s='(tax excl.)' mod='blockcart'} + {else} + {l s='(tax incl.)' mod='blockcart'} + {/if} + {/if} + {convertPrice price=$total_convenience_fee}
{/if} diff --git a/themes/hotel-reservation-theme/order-opc.tpl b/themes/hotel-reservation-theme/order-opc.tpl index 7f5db8747..7b1c858f9 100644 --- a/themes/hotel-reservation-theme/order-opc.tpl +++ b/themes/hotel-reservation-theme/order-opc.tpl @@ -259,7 +259,6 @@

{/if} {if $show_taxes} - {hook h="displayCartTotalPriceLabel" type='before_tax'}

{l s='Total tax'} {displayPrice price=($total_tax)} @@ -289,6 +288,7 @@


{l s='Total'} + {hook h="displayCartTotalPriceLabel" type='total'} {if $use_taxes} {displayPrice price=$total_price} @@ -296,9 +296,6 @@ {displayPrice price=$total_price_without_tax} {/if} -

- {hook h="displayCartTotalPriceLabel"} -

{if isset($is_advance_payment) && $is_advance_payment}
@@ -308,10 +305,10 @@

{l s='Partially Payable Total'} + {hook h="displayCartTotalPriceLabel" type='partial'} {displayPrice price=$advPaymentAmount}

{/if} - {* Check if voucher feature is enabled currently *} {if $voucherAllowed}