Website Building » WooCommerce » How Do You Remove I Have Read and Agree to the Website Terms and Conditions in WooCommerce?

How Do You Remove I Have Read and Agree to the Website Terms and Conditions in WooCommerce?

Last updated on January 20, 2023 @ 3:40 pm

I have read and agree to the website terms and conditions is a phrase that you will see on many websites. This phrase is usually followed by a checkbox that you must check in order to agree to the terms and conditions. If you do not check the box, you will not be able to continue.

This phrase is important because it protects the website owner from liability if something goes wrong. For example, if you purchase something from a website and it does not work, the website owner cannot be held responsible if you did not agree to the terms and conditions.

So how do you remove this phrase from WooCommerce? The answer is actually quite simple. All you need to do is add a bit of code to your functions.php file.

PRO TIP: If you are using WooCommerce to sell products or services on your website, it is important to make sure that customers have read and agreed to your website’s Terms and Conditions before they can complete a purchase.

To do this, you can add a checkbox to your WooCommerce checkout page that customers must tick before they can proceed with their order.

However, if you later need to remove this checkbox for any reason, it is important to be aware that doing so could result in customers not being able to complete their purchase.

Therefore, it is important to only remove the checkbox if you are absolutely sure that all of your customers have read and agreed to your website’s Terms and Conditions.

function remove_terms_and_conditions_checkbox() {
remove_action( 'woocommerce_checkout_terms_and_conditions', 'wc_terms_and_conditions_checkbox', 10 );
}
add_action( 'init', 'remove_terms_and_conditions_checkbox' );

This code will remove the checkbox from your WooCommerce checkout page. If you want to completely remove the phrase “I have read and agree to the website terms and conditions”, you can use this code:

function remove_terms_and_conditions() {
global $wp;
$wp->remove_query_var( 'terms-and-conditions' );
}
add_action( 'init', 'remove_terms_and _conditions' );

The first piece of code will remove the checkbox from your WooCommerce checkout page. The second piece of code will remove the phrase “I have read and agree to the website terms and conditions” completely.

Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.