Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1304251

    dan
    Participant

    When a customer get to the checkout page, the “Ship to a different address” option is checked by default. How can i set that box unchecked by default?

    #1304253

    dan
    Participant
    This reply has been marked as private.
    #1304270

    Lely
    Moderator

    Hello There,

    Thank you for the credentials.
    Please try adding the following code on your child theme’s functions.php file:
    add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

    The following link might help:https://metorik.com/blog/change-woocommerce-ship-to-a-different-address-default

    Cheers!

    #1308046

    dan
    Participant

    It works perfect ! Thank you Lely!

    #1308078

    Prasant Rai
    Moderator

    You are most welcome. 🙂