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.
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
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?
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
right on, yigit! you are the MASTER! thanks again for your help!