• Resolved drwilsons

    (@drwilsons)


    Hello,

    I’ve seen guides on how to remove any default state or country entry at checkout. What I have not yet found is how to do this differently for guests and signed in customers. I would like the state and country fields to be blank for guests, since AZ is auto-generating as the default state. I tried a code snipped that removed the default state, but it does it for those signed in as well. What kind of code snipped can I use that blanks these fields for guests, but does not affect any address fields for signed-in customers with saved addresses? I hope this makes sense. Thanks for your time!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Cara

    (@dcka)

    Hi, @drwilsons!

    What luck! I just answered a similar query. Can you try the “No location by default” setting” for “Default customer location” under WooCommerce > Settings?

    Link to image: https://d.pr/i/08hgT5

    With that selected, customers who are not logged in should see blank fields, like so:

    Link to image: https://d.pr/i/4C8jni

    Can you give that a go and see if it works for you? ??

    Thread Starter drwilsons

    (@drwilsons)

    What luck indeed! This worked perfectly. Thank you so much for your time and help – much appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clearing default state and country for guests only’ is closed to new replies.