Viewing 5 replies - 1 through 5 (of 5 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @valletinformatique44 ??

    If you want the “Ship to A Different Address” section to open by default on WooCommerce Checkout use the following snippet:

    add_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' );

    I borrowed this from Business Bloomer. To add the snippet to your site use a plugin like Code Snippets . Here is a link on how to use the Code Snippets plugin:

    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

    Hope this helps!

    Thread Starter TITAN

    (@valletinformatique44)

    Hello,

    I added the code thanks to Snippets (and before I try to add it directly in the function.php of my child theme). But for the both that’s not works ??

    Regards

    Plugin Support Paulo P – a11n

    (@paulostp)

    Hello,

    Thanks for writing back!

    There must be a conflict with your theme or another plugin. Using WooCommerce with a default theme like Storefront or Twenty-Twenty Two will always expand the delivery address section if “Default to customer shipping address” is selected in the shipping options.

    I would suggest you try the Storefront theme to see if the behavior persists. If it does, then disable other plugins to find the culprit.

    Let us know how it goes.

    Thread Starter TITAN

    (@valletinformatique44)

    Hello,

    I put the settings : “Default to customer shipping address”.

    Indeed, when I use the default theme, that’s works.

    I disabled all the plugins (except woocommerce) and the bug is still here. So I think it’s a bug about my Divi theme and not a plugin, no ?

    Regards

    Hi @valletinformatique44

    That means your theme is conflicting with WooCommerce. I’d recommend reaching out to the theme author directly to report the issue and get further assistance.
    https://www.elegantthemes.com/contact/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Delivery adress field open on the checkout page’ is closed to new replies.