Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hiding or Deleting the "Ship to a Different Address?" checkbox in Woocommerce plugin

I've been looking for a working solution to either hide or delete the "Ship to a different address?" checkbox in Woocommerce checkout page in Wordpress, but I haven't figured out how to do so, so far. Is there any way to do this?

By the way, I use Sahifa theme.

Any help is greatly appreciated.

like image 657
Ehsan Avatar asked Nov 22 '16 14:11

Ehsan


People also ask

How do I delete a ship to a different address in WooCommerce?

Uncheck “Ship to different address” Out of the box, if you want to uncheck the box by default, please go to WooCommerce–> Settings –> Shipping–> Shipping Option –> (select) Default to customer billing address. Once done, “Ship to a different address” will not checked by default.

How do I create a checkbox of ship to different address WooCommerce checkout page unchecked by default?

You can just change this in the WooCommerce shipping options. WooCommerce–> Shipping Options–> Shipping Destination –> (select) Default to customer billing address. "Ship to a different address" will not checked by default.

How do I remove a checkbox terms and conditions in WooCommerce?

Please go to: WooCommerce > Settings > Advanced > Page Setup > Terms and conditions page > Select – Terms and conditions page, to disable the Terms and conditions checkbox, be sure to unselect the page that is selected (if any).


2 Answers

In case someone wants to remove it using code, it is doable by adding this filter to your functions.php

add_filter( 'woocommerce_cart_needs_shipping_address', '__return_false');

Hope this helps.

like image 74
Awais Umar Avatar answered Oct 01 '22 09:10

Awais Umar


There is an option that allows you to remove this checkbox along with shipping section. Go to

Administration->Woocommerce->Settings->Shipping->Shipping Options

and find Shipping Destination, and make sure that Force shipping to the customer billing address checkbox is checked.

like image 35
Stanimir Stoyanov Avatar answered Oct 01 '22 10:10

Stanimir Stoyanov