Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3528789
Uncheck "Ship to a different address" on Checkout Page
Closed

Comments

  •  11
    LillaGreen started the conversation

    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

  •  2,610
    PenciDesign replied

    Hi,

    Please go to WooCommerce → Settings → Shipping → Shipping options → Shipping destination and Force shipping to the customer billing address.

    For more information, please read the document at this link: https://wpdesk.net/blog/woocommerce-checkout-without-address/

    Regards,
    PenciDesign.


  •  11
    LillaGreen replied

    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"

  •  2,610
    PenciDesign replied

    Hi,

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

    Regards,
    PenciDesign.


  •  11
    LillaGreen replied

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

  •  2,610
    PenciDesign replied

    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.


  •  11
    LillaGreen replied

    Thank you :)