Viewing 1 replies (of 1 total)
  • Thread Starter Bertramhage

    (@bertramhage)

    Update: like this:

    In your themes functions.php file:

    <?php
    
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    
    function custom_override_checkout_fields( $fields ) {
        unset($fields['billing']['billing_address_1']);
        unset($fields['billing']['billing_address_2']);
        unset($fields['billing']['billing_city']);
        unset($fields['billing']['billing_postcode']);
        unset($fields['billing']['billing_country']);
        unset($fields['billing']['billing_state']);
        unset($fields['billing']['billing_address_2']);
        unset($fields['billing']['billing_postcode']);
        unset($fields['billing']['billing_city']);
        return $fields;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Remove address fields for all products’ is closed to new replies.