add tax label with convenience fee and updated cart total hook

This commit is contained in:
Shreesh Arora
2024-09-06 17:50:18 +05:30
parent 034c07878c
commit 33fb271c03
4 changed files with 23 additions and 7 deletions

View File

@@ -356,7 +356,16 @@
</div> -->
{if isset($total_convenience_fee)}
<div class="layer_cart_row">
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
<strong class="dark">
{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}
</strong>
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
</div>
{/if}

View File

@@ -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 {

View File

@@ -356,7 +356,16 @@
</div> -->
{if isset($total_convenience_fee)}
<div class="layer_cart_row">
<strong class="dark">{l s='Convenience Fees' mod='blockcart'}</strong>
<strong class="dark">
{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}
</strong>
<span class="price ajax_cart_convenience_fee pull-right">{convertPrice price=$total_convenience_fee}</span>
</div>
{/if}

View File

@@ -259,7 +259,6 @@
</p>
{/if}
{if $show_taxes}
{hook h="displayCartTotalPriceLabel" type='before_tax'}
<p class="cart_total_tax">
<span>{l s='Total tax'}</span>
<span class="cart_total_values">{displayPrice price=($total_tax)}</span>
@@ -289,6 +288,7 @@
<hr>
<p {if !isset($is_advance_payment) || !$is_advance_payment}class="cart_final_total_block"{/if}>
<span class="strong">{l s='Total'}</span>
{hook h="displayCartTotalPriceLabel" type='total'}
<span class="cart_total_values{if isset($is_advance_payment) && $is_advance_payment} strong{/if}">
{if $use_taxes}
{displayPrice price=$total_price}
@@ -296,9 +296,6 @@
{displayPrice price=$total_price_without_tax}
{/if}
</span>
<div class="hookDisplayProductPriceBlock-price">
{hook h="displayCartTotalPriceLabel"}
</div>
</p>
{if isset($is_advance_payment) && $is_advance_payment}
<hr>
@@ -308,10 +305,10 @@
</p>
<p class="cart_final_total_block">
<span class="strong">{l s='Partially Payable Total'}</span>
{hook h="displayCartTotalPriceLabel" type='partial'}
<span class="cart_total_values">{displayPrice price=$advPaymentAmount}</span>
</p>
{/if}
</div>
{* Check if voucher feature is enabled currently *}
{if $voucherAllowed}