Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi Sunnylife,

    You can do so by adding the following snippet in your active theme’s functions.php file.

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

    Also can you please let us know the reason behind the requirement.

    Thanks

    Thread Starter sunnylife

    (@sunnylife)

    Thank you so much @mohanty. Its now working well. Actually I would look better for small business.

    How can I remove “company name” field in shipping address form?

    Hi

    You are welcome.

    I am glad it helped.

    can you please mark this thread resolved and open a new thread for the new request for us to have a look. We are doing so to keep a thread exclusive for a particular issue which helps users looking for a similar issue.

    Thanks

    Thread Starter sunnylife

    (@sunnylife)

    hello again @mohanty,

    Okay! But I still struggling with this problem. At present “Billing details form” is not showing to already registered customers. But, for a new user during signup this “billing form” still visible in checkout page. I want to completely hide “billing address form” from all the pages.

    The safest and easiest way to do this is to use the plugin My Custom Functions with some code.

    Check out this guide, it shows you how to remove any WooCommerce checkout field without the risk of breaking your website.

    I created an WooCommerce Add-on For this type of request.
    https://zamartz.com/hide-billing-fields

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to hide or remove billing address details’ is closed to new replies.