From e92622b360370e230e27109e0bb1c8930ebe0d78 Mon Sep 17 00:00:00 2001 From: abhisheks Date: Fri, 1 Dec 2023 20:53:17 +0530 Subject: [PATCH] fix: add null check in cart-detailed-totals template --- templates/checkout/_partials/cart-detailed-totals.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/checkout/_partials/cart-detailed-totals.tpl b/templates/checkout/_partials/cart-detailed-totals.tpl index 43615dd..f2ca009 100644 --- a/templates/checkout/_partials/cart-detailed-totals.tpl +++ b/templates/checkout/_partials/cart-detailed-totals.tpl @@ -24,10 +24,9 @@ *} {block name='cart_detailed_totals'}
-
{foreach from=$cart.subtotals item="subtotal"} - {if $subtotal.value && $subtotal.type !== 'tax'} + {if $subtotal && $subtotal.value|count_characters > 0 && $subtotal.type !== 'tax'}
{if 'products' == $subtotal.type}