Skip to content
Public Ticket #26852

Uncheck "Ship to a different address" on Checkout Page

Conversation thread

LillaGreen replied

Customer Reply

Thank you :)

PenciDesign Supporter replied

Staff Reply

Hi,

You should insert this code either into the functions.php file of the child theme or by using the CodeSnippet plugin available here: https://wordpress.org/plugins/code-snippets/

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

Regards,
PenciDesign.


LillaGreen replied

Customer Reply

I know, that's why I need a Code to change my php file...

PenciDesign Supporter replied

Staff Reply

Hi,

Unfortunately, the current version of WooCommerce doesn't support this customization.

Regards,
PenciDesign.


LillaGreen replied

Customer Reply

This doesn't solve the issue completely - I don't to force shipping and billing to be the same. I want to uncheck the default "Ship to a different address" so that not everything is "open"  when people open the chechkout, but that they still have the option to choose the option to "ship to a different address"

LillaGreen started the conversation

Conversation Start

Hi, How can I Uncheck "Ship to a different address" on Checkout Page? Now this option is always open, I found a php code but not sure if this is the best way. Thank you

Want to join this conversation or access attachments? Sign in first.