• Resolved scottl31

    (@scottl31)


    Hi,
    Is there a way to change the country pop up on the check out page to move the United States up to the top so people don’t have to scroll all the way to the bottom?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Gerhard Potgieter

    (@kloon)

    If you enable the option to set the customer default location based on geolocate it will autoselect their country based on where they are from. This can be set under the WooComemrce -> Settings -> General tab https://cld.wthms.co/KBYXgI

    Thread Starter scottl31

    (@scottl31)

    That’s great! I love it! Is this based on the IP address?

    But my boss can be a pain. He might say, what if somebody is traveling in Angola, and they want to order a book to be delivered to their home in the U.S.

    Is there actually a way to move or “pin” United States to the top of the list?

    Thanks!
    Scott

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Hey Scott,

    Yes, it does go off of the IP Address. It will also auto-select the country if the customer is logged in and has already placed an order before (they have a saved address).

    If you need to manually change the order of the countries though, then these two filters will come in handy: https://github.com/woocommerce/woocommerce/blob/f6c1c2d13e124f60594dfab3e36c7646799b1113/includes/class-wc-countries.php#L45-L46

    Thread Starter scottl31

    (@scottl31)

    Caleb,

    I’m pretty technical and not really afraid of any kind of code.

    But this looks like a lot of stuff. If you could give me an idea of what needs to be edited and where to put all this, I’d appreciate it.

    Thanks!
    Scott

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey Scott!

    To work with those filters, you’ll need to get comfortable with the code. Otherwise, I recommend contacting one of the services on our customizations page: https://woocommerce.com/customizations/

    Thread Starter scottl31

    (@scottl31)

    I’m comfortable enough with code, but in this case, it just didn’t seem obvious what to change and where to put all of it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘United States at top of country pop up list?’ is closed to new replies.