Remove Billing & Shipping Address In Woocommerce Checkout

Depending on the type of products you are selling via a Woocommerce store, sometimes you don’t need the billing and shipping address details on the Woocommerce checkout page. Adding this little snippet to your functions.php file, you can deregister them from loading easily:

add_action('woocommerce_checkout_init','disable_billing_shipping');
function disable_billing_shipping($checkout){
$checkout->checkout_fields['billing']=array();
$checkout->checkout_fields['shipping']=array();
return $checkout;
}

Useful post? Share it

14 comments on “Remove Billing & Shipping Address In Woocommerce Checkout

  1. I did like this:


    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    // Our hooked in function - $fields is passed via the filter!
    function custom_override_checkout_fields( $fields ) {
    unset($fields['shipping']);
    }

    1. Hmm, not sure. If you mark a product as Virtual or Downloadble, it removes the address collection for shipping as no shipping method is needed. Not sure WooCommerce supports not saving any address on all products without some core plugin hacking.

    1. Hi Gino,

      This works for me still (tested). I am also using WordPress 4.4 and the latest version of WooCommerce. Are you adding this code to the correct place? Should either be in functions.php or in a custom plugin you created. I just added it to my own site and it removed the billing and shipping fields from my checkout. Hope this helps. 🙂

  2. Thanks man.. This little snippet did the trick what special plugin for this and all unset fields code didn’t able to do..

  3. Thank you for your guide.

    Is there a way that only Address Field is open and all other fields like Town, State are removed or predefined?

    I just deliver food within block of offices so they just have to tell me their unit number.

    Thank you

  4. Can you please let me know what the easiest way to hide my bank details on order-received page? I want my bank account details sent only via emails.

Leave a Reply

Your email address will not be published. Required fields are marked *