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.

Answers


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.


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.


Simply add this code to functions.php file

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

Need Your Help

Django: ordering numerical value with order_by

django sorting

I'm in a situation where I must output a quite large list of objects by a CharField used to store street addresses.