Billing details in the checkout section can be useful. But you won’t like it for every single product. Like if you are selling virtual products. It will add more hassle. So, it is recommendable to remove billing details from your checkout page when you are selling virtual products to your customers.

For WooCommerce you need to Download the checkout field editor or other plugins for removing the address, company name, or billing details from checkout. Luckily, with WP Travel you can remove it by adding a code snippet in the functions.php file.

In this blog, we will let you know how to remove billing details from the checkout page.

Remove billing details from the checkout page by adding a code snippet

It’s a hassle to have billing details on the checkout page for virtual or free virtual products. It is preferable to remove something that has no need. Mostly, you won’t like to have something that will add no value. You can easily remove it by the following snippet that we will provide you below:

First, to remove the Billing Details section from the checkout page, you need to add the following given code snippet in the functions.php file of your child theme.

function wp_travel_remove_country( $checkout_fields ){      
       unset( $checkout_fields['billing_fields']);      
       return $checkout_fields; 
} 
add_filter('wp_travel_checkout_fields', 'wp_travel_remove_country' );

For detail assistance regarding creating a child theme, please refer link.


Before: This is the before picture of adding the snippet code.

remove billing details

After: Finally after adding a code snippet in your functions.php file, you will see your checkout page like below without having any billing details.

remove billing details

If you have any queries, please submit it to our contact page.

Everything gets easier with WP Travel. You can get almost all facilities with a single plugin. Besides, you can customize it too that will add lots of functionality to your site. Moreover, your site will provide fast loading speed to your customers that will cause customer satisfaction. So, make your site with WP Travel.