• Resolved edzz83

    (@edzz83)


    Hi there, we cannot get multi currency working with booster.io plugin, we are using the feature currency by country.

    It seems page caches first load then it uses that for each further load. Please advise how we can get thits working, i see there was a previous fix for other plugins that use multi currency, booster is very popular i hope we can get a solution as we have tried everything and it only works when litespeed is disabled!

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

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    In order to make currency vary work , it will require a cookie to vary.

    Depends on the plugin , some plugin using cookie to define the currency , in this case, we can easily set up a cache vary to show different currency depends on cookie value.

    but in certain plugin , it uses PHP session to store the currency info , in this case, we can not make it work without the plugin developer integrate our API to vary it.

    I was checking your site , saw this cookie might be able to be used on vary , but I can not be sure, please try this solution and see if it works:

    edit .htaccess file

    find

    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]

    replace it to

    <IfModule LiteSpeed>
    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=Cache-Control:no-autoflush]
    RewriteRule .* - [E=Cache-Vary:tk_ai]

    Best regards,

    Thread Starter edzz83

    (@edzz83)

    Per the other thread i see of someone posting same issue=

    It is not working on this site, i can see it uses woocommerce geolocate to define country, proposed fix was to set geolocate (page cache friendly) this is found in general woo commerce settings, however, this is not an elegant fix and causes massive issues: let me explain:

    When turning this setting on, it adds V session variable in url, we don’t wish to have the v variables in our page URL’s because it is a huge problem.
    1) It looks terrible,
    2) it also causes issues with page sharing on social media (people have already started sharing the variable url instead of the normal domain url, which is having have obvious major ramifications with our international customer base)…
    3) it also causes possible MAJOR issues with SEO.

    So to confirm, this plugin uses the woocommerce store location (geolocate) setting. We request that this would work with litespeed natively, perhaps you can add hook/setting into litespeed cache to ensure this works properly, as currently it is caching the location which is not right!

    With Woocommerce being one of the biggest shopping platforms online, i would hope that you can patch a fix/setting into litespeed asap for this, as this is a major issue for any shop owner (even those not using multi currency, and just using location function)

    Hi @edzz83, we are working on a fix on Woocommerce multi-currency bug, will get you back and let you test on it in few weeks when the patch is ready.

    Thread Starter edzz83

    (@edzz83)

    Hey @stanleylitespeed – I know its only been a week but any update on this, not having multi currency on our sites is destroying our conversions. We have had to turn the whole thing off now as the session value is causing random page load loops with litespeed enabled.

    Hi @edzz83, we just go through booster.io app, it is using PHP-wise IP location detector, you need to install server-side GeoLocation tools to create cookies vary for the user. Here’s the article for installation.

    May I know which hosting server/panel are you using? We may share more information about the vary setup.

    Thread Starter edzz83

    (@edzz83)

    We are using a managed server which runs on cpanel. The company is synergy wholesale, a hugely popular Australian hosting provider.

    The linked article only shows how to setup redirects after install of geoip which does not help us i will need to check if we are even able to get this installed on our server as we may not be able to.

    We do have access to htaccess

    Thread Starter edzz83

    (@edzz83)

    Our team have got this enabled on our server now,

    We can use “GeoIPEnable On” in our HTACCESS to turn this function on. We do not have acess in our enbvironment to WHM etc. So if need changes in there need to ask our server managemnet team/service provider.

    Please let me know what setting we now need to set to get this working.

    Hi @edzz83, could you put GeoIPEnable On and check what is location cookies’ name first?

    Then you can set up RewriteRule .* - [E=Cache-Vary:YOUR_COOKIES_NAME].

    Thread Starter edzz83

    (@edzz83)

    Can you advise how I find cookie location name. Please provide steps I have already turn replication on in htaccess

    @edzz83 Please try to create a phpinfo page and check the PHP Variables section

    Thread Starter edzz83

    (@edzz83)

    Sorry this is not specific enough ,there are dozens of cookie entries in the variables list, how do i know which one you are referring to??

    Can you please provide me with a full set of very specific instructions so we can get this done without having to wait for days please due to different timezones.

    Thanks

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    The problem is that we don’t know the name of the cookie, either. It’s set by the booster.io plugin. The quickest way to get your answer might be to ask them what the name of the cookie is that they use for currency by country.

    I remember another similar question in the past, and in that case, the user had some success with the show_prices_by_country cookie. If you see that cookie listed among the variables, please try that one.

    Thread Starter edzz83

    (@edzz83)

    I dont see any currency by country cookie in there.

    However, i do see in the settings for currency by country that the IP DETECTION method for this feature can be set to BOOSTER or WOOCOMMERCE. I feel like this would have bearing on the situation? Please advise.

    I will also ask on booster support regarding your query.

    The currency by country setting is for price display but it cannot use for cache separation. For the cookie’s name, as it’s defined by GeoIPEnable function, maybe you can ask with your hosting provider.

    Thread Starter edzz83

    (@edzz83)

    Hi Stanley,

    Every time I get a message from you i am put up against another wall… simply put, what you’re telling me is not concise and i simply don’t understand it as im getting conflicting information from other sources.

    If you give me a proper set of instructions on the process from start to finish, I should be able to easily do this myself, however, i have yet to get those.

    I have contacted our hosting support who have advised me that:

    Thanks for your ticket.
    The GEOIP module for Apache is already installed.
    There is no cookie that is generated. What is sounds like you might be after, is the PHP variables that can be used when that module is enabled.
    There is some documentation on that here https://www.php.net/manual/en/geoip.constants.php

    Can you please explain the process/what is happening here as my understanding is not complete as you have not really advised on whats going on here and what we are trying to achieve.

    From my understanding, this is what is happening:
    1) Booster (or woo) produce a GEOIP cookie.
    2) We need to get htaccess to VARY the cookie produced by Booster/Woo using the Apache GEOIP module we have installed.

    Is this right? I still dont see how is this going to fix cached page HTML etc? Is there other steps here? Can you give me an exact use case scenario/set of steps of how i set this up this solution.?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘litespeed + booster.io multi currency cache issue’ is closed to new replies.