• Resolved sotnasonun

    (@sotnasonun)


    I have prices inclusive of tax displayed on the store and tax settings for all EU countries in both standard and reduced rates and 0 rate to zero rate taxes with * in the country code.

    That makes all non EU customers to see prices without VAT, however when the cache plugin is enabled that does not work properly.

    It seems a bit random, probably the first customer that visits the store makes the cache files and the following ones see those files without taking into account if they are coming from a different country.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Could you post the link to your page?

    Thread Starter sotnasonun

    (@sotnasonun)

    https://www.metalegion.com

    I guess you will need a VPN to simulate both EU or non-EU customers to the site.

    Did you disable the cache?

    Thread Starter sotnasonun

    (@sotnasonun)

    sorry, its enabled again

    Unfortunately you have a pretty big problem. The WooCommerce Gelocation function writes the information which currency has been selected into the PHP session. When a page is cached, there is still a session depending on whether ESI is active, but the content cannot change if a different currency is selected. This could be solved if the WooCommerce geolocation would set a cookie, but this is not the case because the information is only in the session. However, the cache function needs a cookie. You will therefore have to look for an alternative for WooCommerce Geolocation.

    There is still the possibility to use the GeoIP database of the LiteSpeed web server, but I assume that you have shared hosting and with this type of hosting the GeoIP database is very often not available. You would therefore have to ask your hosting provider whether the GeoIP database is available on your server.

    Thread Starter sotnasonun

    (@sotnasonun)

    Thanks for the quick reply. For now I will deactivate again the plugin unfortunately.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘woocommerce geolocation not working properly/incl./excl. VAT prices not working’ is closed to new replies.