Hi, how can I make my cart icon shop a number of how many products are in the cart? https://expresswriters.com
I see it here:
https://expresswriters.com/wp-content/uploads/2015/04/Screen-Shot-2015-04-24-at-8.15.02-PM.png
https://expresswriters.com/wp-content/uploads/2015/04/Screen-Shot-2015-04-24-at-8.14.55-PM.png
Thanks :)
Josh
Hi Josh
Please add following code to Quick CSS in Enfold theme options under General Styling tab
#top .av-cart-counter {
transform: none;
opacity: 1;
}
then 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>-->";
Best regards,
Yigit
Awesome, looks good! Thanks :)