fix: update condition in cart summary subtotals template

pagebuilder
abhisheks 2023-11-30 21:49:38 +05:30
parent 00eb3abc94
commit 944dccb70b
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@
<div class="flex"> <div class="flex">
{foreach from=$cart.subtotals item="subtotal"} {foreach from=$cart.subtotals item="subtotal"}
{if $subtotal.value && $subtotal.type !== 'tax'} {if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
<div class="flex justify-between font-medium" id="cart-subtotal-{$subtotal.type}"> <div class="flex justify-between font-medium" id="cart-subtotal-{$subtotal.type}">
<span> <span>
{$subtotal.label} {$subtotal.label}