• Resolved sw231

    (@sw231)


    We are trying to set prices in our store so a customer pays the same amount no matter where they are in the world. We have entered prices excluding tax and set the default customer location to our store location.

    Unfortunately this doesn’t work because, when a customer adds a product to the cart and then goes back to the store the tax has been removed from the prices so they are now shown incorrectly.

    We have tried using the geolocate function but this didn’t work either.

    Why is the customer’s location reset when they add something to the cart?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @sw231

    When a customer adds a product to the cart, the system recalculates the tax based on the customer’s location, not the store’s location. This is why the tax is removed when the customer returns to the store.

    To achieve your goal, you can either use the “Shop base address” in the “Calculate tax based on” option or select “Yes, I will enter prices inclusive of tax” for the “Prices entered with tax” option and include taxes in your product prices.

    I hope this helps! Please let us know how it goes or if you need further assistance.

    Thread Starter sw231

    (@sw231)

    Hi,

    I tried using the Shop base address in the Calculate tax based on setting but this means a customer pays tax even when they don’t need to so this isn’t a solution to the issue.

    Our prices are already set to include tax too so that hasn’t solved the issue either.

    The issue seems to be caused by the country the user has selected being automatically deleted from the checkout dropdown.

    In the video example (https://imgur.com/UGRDyI3) I add a £50 product to the cart and then go to the checkout. The country has been selected as the UK which is correct but when I go back to the shopping cart the tax has been removed so the product is now £41.67 and when I go back to the checkout the country box is now empty. Why does this happen?

    Thanks

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @sw231

    The issue seems to be caused by the country the user has selected being automatically deleted from the checkout dropdown.

    It seems to be related to the way WooCommerce handles sessions and cookies. When you add a product to the cart, WooCommerce creates a session for your visit and stores your cart data in a cookie in your browser. If the session expires or the cookie is deleted before you complete your purchase, the cart data, including the selected country, could be reset.

    To resolve this issue, please ensure your browser is set to accept cookies from your site. Also, set the default customer location to “Geolocate (with page caching support)”, and ensure that you have the correct tax rates set up for the UK. If the problem persists, it could be due to a conflict with a plugin or theme. The best way to determine this is to:

    • Temporarily switch your theme to Storefront or Twenty Twenty-Four
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    I hope that helps! Let me know once you have done a conflict test!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default Location Not Working’ is closed to new replies.