Check/Uncheck “Ship to a different address” at the checkout

You can easily change the default state of this checkbox and the shipping field visibility at the WooCommerce checkout.

Make it unchecked and have the shipping address hidden by default

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

Make it checked and have the shipping address visible by default

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' );

Depending on your theme, the fields are generally hidden .


4 Comments

  • 카지노사이트

    July 4, 2018

    With thanks! Valuable information!

    Reply
  • Ferdinand Foertsch

    July 12, 2018

    With thanks! Valuable information!

    Reply
  • Nass

    April 1, 2019

    Hello,
    Thanks for your post, very helpfull !
    Is it possible to automatically uncheck it if the customer chose “pickup” and check if if he chose “delivery” ?
    Thanks

    Reply
  • Dan

    February 4, 2020

    Thats not working anymore since 3.9

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.