Home › Forums › Basel support forum › Product bundle woocommerce- minicart widget not show the correct count › Reply To: Product bundle woocommerce- minicart widget not show the correct count
March 23, 2018 at 7:24 am
#48224
Artem Temos
Keymaster
Hello,
Thank you for contacting us. Currently, we are using this code WC()->cart->get_cart_contents_count
instead of this WC()->cart->get_cart_contents_count()
. To change it, try to add the following code snippet to the functions.php file in the child theme
function woodmart_cart_count() {
$count = WC()->cart->get_cart_contents_count();
?>
<span class="woodmart-cart-number"><?php echo esc_html($count); ?> <span><?php echo esc_html( _n( 'item', 'items', $count, 'woodmart' ) ); ?></span></span>
<?php
}
We will fix this in our next theme update as well.
Regards