From 7e9971c2aa2a6623ee4bf2cb37a19f9ab543d7b9 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Mon, 5 Jul 2021 19:01:40 +0700 Subject: add badge counter on cart --- templates/layout/noleft | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/layout/noleft b/templates/layout/noleft index ca01d60..332e907 100644 --- a/templates/layout/noleft +++ b/templates/layout/noleft @@ -44,6 +44,18 @@ shopping_bag + [calc] + if ([nitems] ne '0') { + return q( +
+ + [nitems] + + items in cart + +
); + } + [/calc] -- cgit v1.2.3