• Resolved subrato312

    (@subrato312)


    Hi, thanks for this awesome plugin. I am having one issue. I want to show the price and currency based on geo-location but now price is appearing for all users based on the location of the first user after purging all caches. Any help would be really appreciated. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @subrato312

    Thank you for your inquiry and I am happy to assist you with this.
    Yes, Geotargeting in most cases is not working with Page cache enabled. It is possible to use Page Fragment Cache and wrap the code with mfunc in W3 Total Cache. But the best way is to use ajax-calls directly in the plugin you are using for geotargeting. For example, Geotargeting lite does not work with caching but the premium feature of that plugin is using ajax calls and working with caching plugins or to be exact Page Cache.
    And this is the case with most of the Geotargeting plugins.
    So depending on which plugin you are using for geotargeting, they should be compatible with caching plugins.
    The other solutions are to exclude the pages that you have the code for geotargeting on from being cached in Performance>Page Cache>Advanced>”Never Cache following Pages”, or as I mentioned before to use Page Fragment Cache and wrap the code with mfunc which will ensure that that part of the page is not being cached.
    I hope this helps.
    Thank you!

    Thread Starter subrato312

    (@subrato312)

    Thanks, Marko!
    Will try to implement the solutions you suggested.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price & currency based on Geo location’ is closed to new replies.