• Resolved hurab

    (@hurab)


    Hi is it possible to remove the billing address?
    I have installed the plugin of pickup and delivery address but if select pick up it does not proceed until and unless the billing address is filled.
    is it possible that only shipping address remains?

    Thanks

Viewing 1 replies (of 1 total)
  • Hello,

    I think you can either try the following snippet or use this premium extension https://woocommerce.com/products/woocommerce-checkout-field-editor/

    
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
     
    function custom_override_checkout_fields( $fields ) {
        unset($fields['billing']['billing_first_name']);
        unset($fields['billing']['billing_last_name']);
        unset($fields['billing']['billing_company']);
        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_phone']);
        unset($fields['order']['order_comments']);
        unset($fields['billing']['billing_address_2']);
        unset($fields['billing']['billing_postcode']);
        unset($fields['billing']['billing_company']);
        unset($fields['billing']['billing_email']);
        unset($fields['billing']['billing_city']);
        return $fields;
    }
    

    (From https://gist.github.com/jgalea/5884548)

Viewing 1 replies (of 1 total)
  • The topic ‘Is it possible to remove the billing address’ is closed to new replies.