Support » Plugin: WooCommerce » Hide div if cart are are less than 1

  • Resolved gComm

    (@gcommercepk)


    I need help to write a fuction that basically hides a div with the class=”cart-bar” i.e <div class=”cart-bar”>. I want the div to be hidden if total number of items in cart is 0. If total number of items in cart is more than 0 than .cart-bar should be visible.

    Please help me write such a function.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.