wooCommerce Periksa apakah gerobak tidak kosong

if ( WC()->cart->get_cart_contents_count() == 0 ) {
        // Do something fun
}
Powerful Puffin