Here’s my temporary solution (remove the quantity, and only leave the $amount). At least it’s not confusing… Hopefully someone comes up with a better fix.
Remove the following line:
echo $woocommerce->cart->get_cart_contents_count();
From here:
// Handle cart in header fragment for ajax add to cart
add_filter(‘add_to_cart_fragments’, ‘woocommerce_cart_link’);
function woocommerce_cart_link() {
global $woocommerce;
?>
<li class=”cart”>
cart->get_cart_url(); ?>” title=”<?php _e(‘View your shopping cart’, ‘woothemes’); ?>” class=”cart-parent”>
<span>
<?php
echo $woocommerce->cart->get_cart_total();;
echo $woocommerce->cart->get_cart_contents_count();
?>
</span>
<?php
}
}
Found here:
mystile/includes/theme-woocommerce.php