Forum
perch shop total_items in navigation
I want to shopping cart icon in navigation only if there is an item in cart.
I am using below code to do it, but does not seem to work
<perch:if id="<perch:shop id="total_items" />" value="0" match="gt">
<li class="primary sticky-bag" style="width: 5%;">
<a href="/cart/" class=""><i class="fa fa-shopping-bag"></i></a>
</li>
</perch:if>