• Hello,

    Is it possible to not have Woocommerce populate the shipping fields when a user checks the box “ship to a different address”? I was able to not have the fields populate by removing $checkout->get_value( $key ) from <?php woocommerce_form_field( $key, $field, $checkout->get_value( $key ) ); ?> in form-shipping.php but that ended up making it so that if the box was not selected and a customer wants to use their billing address then they are still forced to enter shipping info. What’s worse, they don’t even see that the fields aren’t being filled in because they are hidden when “ship to a different address” is not selected. So is there a way to not have the fields populated when a customer wants to use a different shipping address but to have them populate when they do want to use their billing address for shipping?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    When “ship to a different address” is unchecked, those fields are ignored even if populated. Making them blank is not necessary.

    I might be running into the same issue. I have a client who does not want the customer’s info showing up in the fields when they “ship to a different address”. He doesn’t like that they have to clear out data that they are going to be changing anyway.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    If you disable it, returning customers will also see blank fields which is more annoying ?? Pre-filling is better IMO.

    Thread Starter spyder_tech

    (@spyder_tech)

    My client’s customers are getting confused when they see this form come up with a checkbox that says “ship to a different address?” and they see their billing info. But maybe this can be cleared up another way. What if instead of that checkbox saying “ship to different address?” it says “ship to same address” and the shipping form shows up when it is unchecked. It is unchecked by default and then the customer checks the box “ship to same address” and the form disappears because they don’t need to fill it out. Logically this makes more sense.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    What if instead of that checkbox saying “ship to different address?” it says “ship to same address” and the shipping form shows up when it is unchecked. It is unchecked by default and then the customer checks the box “ship to same address” and the form disappears because they don’t need to fill it out. Logically this makes more sense.

    I don’t think that makes more sense.

    What is the actual problem with this – just that it shows the user’s stored address?

    Guest users won’t see this.

    Logged in users will see whatever previous address they shipped to. This is a time saver.

    My client’s customers are getting confused when they see this form come up with a checkbox that says “ship to a different address?” and they see their billing info.

    They only see the actual address fields if the field is checked. You can set the default status of the checkbox in settings.

    I have to agree with Spyder here. I get what you’re saying about the fields being populated, it would work just fine really but it’s that checkbox that confuses people. People are trained to check a box to ship to billing address, not to uncheck a box. I know the outcome is the same but I agree, the logic just isn’t there.

    There was a post made on github awhile back regarding this. I agree with the illustration he made.
    https://github.com/woothemes/woocommerce/issues/2571

    The shipping form shows up (populated or unpopulated both would work) and the checkbox says “ship to billing address?” which would make the form disappear when checked.

    i’ve came across the same problem.
    Would be great if we could fetch ship_to_different_address field on database to solve this.

    Confirming that on latest version, even if ship_to_different_address field is disabled, the shipping address is stored.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Do Not Populate Shipping When Ship To Different Address’ is closed to new replies.