Disable billing fields in woocommerce checkout (Gutenberg blocks)
add_filter( ‘woocommerce_get_country_locale’, function ( $locale ) { $cart = WC()->cart; // Only remove fields if we have a cart. if ( ! $cart ) { return $locale; } // If cart requires shipping, then it’s likely paid and isn’t calculated yet. if ( $cart->needs_shipping() ) { return $locale; } // Only remove fields if the […]
Disable billing fields in woocommerce checkout (Gutenberg blocks) Читать далее »