Thread tagged as: Question, Shop

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>
sawan ruparel

sawan ruparel 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

<perch:if id="total_items" value="0" match="gt">