• Resolved loopforever

    (@loopforever)


    Hi
    I want to remove the billing address on the My Account page. It should only be “Delivery Address”. How can I do that ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    You could use this plugin – WooCommmerce Checkout Field Editor to remove billing fields: https://woocommerce.com/products/woocommerce-checkout-field-editor/

    Thread Starter loopforever

    (@loopforever)

    Hello again,
    Did you read what I wrote? “my account page”. Only the “Checkout” page can be edited with the plugin you mentioned.
    I want to remove the “delivery address” from the “my account” page.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Any of the fields removed with the Checkout Field Editor extension will also be removed from the My Account page as well.

    To remove the Billing Address section from the My Account > Addresses page with PHP, you should be able to use the following:

    
    function my_remove_my_account_billing_address( $addresses, $customer_id ) {
        unset($addresses['billing']);
        return $addresses;
    }
    add_filter( 'woocommerce_my_account_get_addresses', 'my_remove_my_account_billing_address', 10, 2 );
    

    That code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code Snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.

    Thread Starter loopforever

    (@loopforever)

    Thank you very much for your reply.
    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Billing Address on my Account’ is closed to new replies.