Website Building » WooCommerce » How Do I Remove Shipping Details From WooCommerce?

How Do I Remove Shipping Details From WooCommerce?

Last updated on January 23, 2023 @ 12:22 pm

If you’re running a WooCommerce store, you’ve probably noticed that there’s a shipping details section on the checkout page. This is where your customers enter their shipping information, such as their name, address, and phone number.

While this section is important for ensuring that your customers’ orders are shipped to the correct address, you may not want to display it on your checkout page if you’re not offering shipping.

So how do you remove the shipping details section from WooCommerce?

Option 1: Remove Shipping Details From WooCommerce Checkout Page

The easiest way to remove the shipping details section from WooCommerce is to use the Hide Shipping Fields on Checkout plugin.

This plugin lets you hide any of the fields on the checkout page, including the shipping fields. Once installed and activated, simply go to WooCommerce > Settings > Shipping Fields and uncheck the “Enable” checkbox next to the “Shipping Details” heading.

PRO TIP: If you are using WooCommerce to sell products on your website, it is important to remove shipping details from the checkout page. Otherwise, customers will be able to see the shipping cost and this may discourage them from completing a purchase. To remove shipping details from the checkout page, you need to go to the WooCommerce settings page and click on the Checkout tab. From here, you will need to uncheck the ‘Enable Shipping Calculator’ option.

Option 2: Remove Shipping Details From WooCommerce Using Code

If you’re comfortable with code, you can also remove the shipping details section from WooCommerce by adding a few lines of code to your theme’s functions.php file. Simply add the following:

function wc_remove_shipping_fields( $fields ) { 
unset( $fields['shipping_first_name'] ); 
unset( $fields['shipping_last_name'] ); 
unset( $fields['shipping_company'] ); 
unset( $fields['shipping_address_1'] ); 
unset( $fields['shipping_address_2'] ); 
unset( $fields['shipping_city'] ); 
unset( $fields['shipping_postcode'] ); 
unset( $fields['shipping_country'] ); 
unset( $fields['shipping_state'] ); 
return $fields; } 
add_filter( 'woocommerce_checkout_fields' , 'wc_remove_shipping_fields' ); 

Conclusion:

There are two options for removing shipping details from WooCommerce. The first option is to use a plugin called Hide Shipping Fields on Checkout. The second option is to add some code to your theme's functions.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.