Support » Plugin: WooCommerce Multilingual - run WooCommerce with WPML » Product page currency switcher behaviour

  • Resolved gore.m

    (@gorem)


    Hello,

    I have one issue with currency switcher on product page.
    If Im on default language (CS) and I change currency on product page (meta block), than whole shop is set to that currency – that is fine. But If I switch language (lets say to EN) and than I change currency, currency is changed only on that product page, but rest of shop is in default currency for that language.
    I have “Currencies to display for each language” ticked all options.

    Is this bug?
    Thanks you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support George Botsev

    (@botzev)

    Hello!
    Changing the currency should affect the whole shop.
    I need to check that issue that you have reported in a testing setup if I can reproduce it.
    I can only suspect and guess at this time, but perhaps you might have caching issues?
    Perhaps checking if you have cache plugins and disabling them could be the fix?
    You also might have a server-side cache (Opcache, Memcache) that might affect that functionality too.

    Plugin Support George Botsev

    (@botzev)

    I tried to test this in a new setup, locally on my machine, but I cannot reproduce the issue.
    Please provide more details if possible.

    Hello.
    It is working now. I forget that I was playing with Cometcache… so most probably you are right.
    May I know if are there any specific needs for using caching plugins to prevent issue I had?

    Thanks you

    Plugin Support George Botsev

    (@botzev)

    If a caching plugin works properly with WPML, then it should work also with WooCommerce Multilingual.
    Caching plugin should make the proper cache groups for the different languages – so that they don’t share the same cached values from other languages.
    Also in regards to multicurrency, we are detecting if W3 Total Cache is running (as we are compatible with it) and using GET parameter when switching the currency, so in essence, this should also work properly.

    Thanks you. As I wrote above WPML was working fine, I had only problem with currency switcher in second language. I looked to Comet cache settings (I had) and I had set up to not cache GET parameter.
    Anyway W3 Total Cache is only one caching plugin WPML supports?

    Plugin Support George Botsev

    (@botzev)

    WPML should be compatible not only W3 Total Cache, but also with other plugins too.
    I know for WP Rocket too, but probably others too.
    You can check here: https://wpml.org/documentation/plugins-compatibility/
    If you have a plugin that is listed as compatible, but you have issues, I encourage you to open a new ticket so that we can investigate it.

    Thanks you, I had time now to check it deeper and unfortunately I have to say, I cant get it work with any caching plugin.
    I found out this topic on WPML forum https://wpml.org/forums/topic/cache-problem-with-currency-switcher/
    But… it seems to be know issue for almost one month, was this issue already fixed?

    Thanks you

    Plugin Support George Botsev

    (@botzev)

    As far as I know it should be fixed.
    Perhaps you can try and hook to enable the currency switcher parameters to be used:
    add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );
    Something like that should help ^
    Be sure to use latest versions of our plugins.

    Unfortunately, no… it doesnt work.
    I still have mishmash of currencies, strange is that is happening only in secondary language.

    If I switch currency to EUR in category “Toys” on product page Toy1, so category “Toys” is in EUR and only one thing that I can do is go to Toy1 again and change currency to lets say USD, but if I go back to Toys category there is still EUR (same for rest of categories and also cart is in EUR).
    It looks like cached is first currency change and that is served everytime, until I delete cache.

    Plugin Support George Botsev

    (@botzev)

    That hook that I provided you above, should’ve enabled the parameter for switching the currency and usually these requests even cached – would be to the proper currency.
    I suggest that you escalate a ticket to our forum at wpml.org so that we can check this on your site.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Product page currency switcher behaviour’ is closed to new replies.