Answers for "woocommerce check if cart is not empty"

PHP
0

woocommerce check if cart is not empty

if ( WC()->cart->get_cart_contents_count() == 0 ) {
        // Do something fun
}
Posted by: Guest on May-31-2020

Code answers related to "woocommerce check if cart is not empty"

Browse Popular Code Answers by Language