Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #413379

    Since the update, i now see a “0” (zero) appearing overprinting the cart icon in the top left of my computer browser. any ideas what this is about? obviously there’s something in the cart, so there shouldn’t a zero – but then, there shouldn’t be any number, should there?

    thanks for your help.

    #413655

    Hi charger70!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab if you would like to hide it

    span.av-cart-counter {
      display: none;
    }

    If you would like to display item count, please go to Enfold/config-woocommerce folder and open config.php file and find

    $output .= "<a class='cart_dropdown_link' href='".$link."'><span ".av_icon_string('cart')."></span><span class='av-cart-counter'>0</span><span class='avia_hidden_link_text'>".__('Shopping Cart','avia_framework')."</span></a><!--<span class='cart_subtotal'>".$cart_subtotal."</span>-->";

    and change it to

    $output .= "<a class='cart_dropdown_link' href='".$link."'><span ".av_icon_string('cart')."></span><span class='av-cart-counter'>".$woocommerce->cart->cart_contents_count."</span><span class='avia_hidden_link_text'>".__('Shopping Cart','avia_framework')."</span></a><!--<span class='cart_subtotal'>".$cart_subtotal."</span>-->";

    Regards,
    Yigit

    #413724

    thanks, yigit! that worked perfectly for hiding the numeral.

    so a numeral counter is now part of Enfold for the cart icon? why does it show “zero” then when there’s something in it?

    #413730

    Hey!

    It is a small bug. If you apply the changes i suggested, it will display the correct amount of products in the cart :)

    Regards,
    Yigit

    #413742

    right on, yigit! you are the MASTER! thanks again for your help!

    #413746

    Hey!

    You are welcome, we are always happy to help : )

    Regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘"0" (zero) now appearing in cart icon at top left?’ is closed to new replies.