• Resolved optimystery

    (@optimystery)


    I am testing out the Geolocation with Page Caching function within WooCommerce core settings.

    At first I thought the unique string would be applied for every individual user, which would obviously be terrible for caching and performance.

    After testing with a vpn from various locations around UK I can see the string is the same.
    If I switch to US it changes, and changing locations within US keeps the same new string.
    I need to use private browsing in each case to properly reflect the changes.

    Since the string appears to be unique to country, is it possible to have /uk or /us as a prettier url instead of the random string?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support omarfpg a11n

    (@omarfpg)

    Hi @optimystery,

    Since the string appears to be unique to country, is it possible to have /uk or /us as a prettier url instead of the random string?

    When you select the option to “Geolocate (with page caching support)” WooCommerce appends a user specific hash of the user’s IP address to the URL, so that the page can be cached for their re-use. This enables location specific data like tax rates and shipping information to be cached for your customers as they navigate your shop.

    If you’d like to prevent these query strings from being added. Select the?Geolocate?option instead.

    This means the string will change for each user in the same country, so there’s no option to prettify the URL.

    I hope this helps so far!
    -OP

    Thread Starter optimystery

    (@optimystery)

    That’s odd then, because the string only changed for me when I changed country.
    Manchester, London and Glasgow through a vpn gave one hash, and New York or Texas gave a different one. Any idea why this is?

    If it does work as you describe then it’s not really any kind of useful caching and a website could easily fall over with large traffic. Is there a plugin that can redirect to /us or /uk and display the relevant products with the correct currency, all the way to checkout?

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @optimystery

    That’s odd then, because the string only changed for me when I changed country.
    Manchester, London and Glasgow through a vpn gave one hash, and New York or Texas gave a different one. Any idea why this is?

    The hash might not change when you switch locations within the same country because the IP addresses and session might be similar enough for the hash to remain the same.

    Is there a plugin that can redirect to /us or /uk and display the relevant products with the correct currency, all the way to checkout?

    WooCommerce doesn’t natively support this feature. However, there are some plugins available to achieve this, such as WooCommerce Currency Switcher or FOX plugin, which allows you to set different prices for different countries and currencies.

    I hope this provides some clarity. Please let us know if you have any other questions!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.