how to add woocommerce cart counter
<a href="<?php echo wc_get_cart_url() ?>" class="misha-cart">Cart (<?php echo $woocommerce->cart->cart_contents_count ?>)</a>
how to add woocommerce cart counter
<a href="<?php echo wc_get_cart_url() ?>" class="misha-cart">Cart (<?php echo $woocommerce->cart->cart_contents_count ?>)</a>
item count in cart quantitiy woocommerce
function count_item_in_cart() {
$count = 0;
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
$count++;
}
return $count;
}
add a item to cart woocomerce with quantity
WC()->cart->add_to_cart( 500, 5 );
how to add woocommerce cart counter
<a href="<?php echo wc_get_cart_url() ?>" class="misha-cart">Cart (<?php echo $woocommerce->cart->cart_contents_count ?>)</a>
item count in cart quantitiy woocommerce
function count_item_in_cart() {
$count = 0;
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
$count++;
}
return $count;
}
add a item to cart woocomerce with quantity
WC()->cart->add_to_cart( 500, 5 );
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us