Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

woocommerce check if cart is not empty

if ( WC()->cart->get_cart_contents_count() == 0 ) {
        // Do something fun
}
Source by www.skyverge.com #
 
PREVIOUS NEXT
Tagged: #woocommerce #check #cart #empty
ADD COMMENT
Topic
Name
8+3 =