fix: add null check in cart-detailed-totals template

pagebuilder
abhisheks 2023-12-01 20:53:17 +05:30
parent 8be6271f08
commit e92622b360
1 changed files with 1 additions and 2 deletions

View File

@ -24,10 +24,9 @@
*}
{block name='cart_detailed_totals'}
<div class="flex flex-col gap-4">
<div class="flex flex-col gap-8">
{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 font-medium" id="cart-subtotal-{$subtotal.type}">
<span class="flex-1 label{if 'products' === $subtotal.type} js-subtotal{/if}">
{if 'products' == $subtotal.type}