Website Building » WooCommerce » How Do I Remove a Shipping Address From WooCommerce Checkout?

How Do I Remove a Shipping Address From WooCommerce Checkout?

Last updated on January 12, 2023 @ 11:49 am

If you’ve ever needed to remove a shipping address from your WooCommerce checkout, you know it can be a bit tricky. There are a few different methods you can use, depending on what exactly you need to accomplish. In this article, we’ll cover four different ways to remove a shipping address from your WooCommerce checkout.

The first method is to simply disable the shipping address field. This can be done by going to “WooCommerce” > “Settings” > “General“> “Shipping Location(s)“.

Go to WooCommerce then Settings then General

Then select the “Disable shipping & shipping calculations” option. This will effectively remove the shipping address field from your checkout page.

Disable Shipping under General Settings WooCommerce WordPress

The second method is to hide the shipping address field with some “CSS“.

Go to Appearance then Editor and Select Stylecss WordPress

This can be done by adding the following code to your theme’s “stylesheet“:

#billing_address_1, #billing_address_2, #billing_city, #billing_state, #billing_postcode {
display: none;
}

This will hide the shipping address fields on your checkout page. You can also use this CSS to hide specific fields that you don’t want to display, such as the city or state field.

The third method is to remove the shipping address fields with a plugin. There are a few plugins that will do this for you, but we recommend using the “Advanced Checkout Fields Manager for WooCommerce” plugin.

Install Checkout Fields Manager PlugIn WordPress

This plugin allows you to easily manage all of the fields on your checkout page, including the shipping address fields. To remove the shipping address fields with this plugin, simply go to “WooCommerce” > “Checkout Fields” and uncheck the “Enable Shipping Address” checkbox.

The fourth and final method is to remove the shipping address fields with a code snippet. This can be done by adding the following code to your theme’s “functions.php” file:

Click-on Appearance Theme Editor Theme Functions under Theme Files WordPress

remove_action( 'woocommerce_after_checkout_billing_form', 'woocommerce_checkout_shipping' );

This will remove the entire shipping section from your checkout page, including the shipping address fields. If you only want to remove the shipping address fields and not the entire section, you can use this code snippet:

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );
remove_action( 'woocommerce_after_checkout_billing_form', 'woocommerce_checkout_shipping' );

Conclusion

In conclusion, there are four different ways that you can remove a shipping address from your WooCommerce checkout page. Depending on your needs, one of these methods should work for you.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.