• Resolved orion1212

    (@orion1212)


    Hello,

    First thanks for the plugin!

    I am using W3TC in combination with the native WooCommerce payment currency switcher. It seems that after purging the cache, the first visitor more or less sets the currency for the next viewer. As a result, users can encounter a variety of currencies just by navigating between our pages.

    I understand that we could exclude pages with currency, but as a store, we unfortunately can’t do that since it constitutes the majority of our pages. Is there a way to keep a page cached and serve users the correct currency?

    Thank you

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

    (@vmarko)

    Hello @orion1212

    Thank you for reaching out and I am happy to help!
    Can you please confirm if you are using ?Geo Location-based currency switching? What is the page cache method you are using and can you please share the website URL?

    Thanks!

    Thread Starter orion1212

    (@orion1212)

    Hi @vmarko ,

    Thank you for your assistance!

    Yes, we are utilizing WooCommerce Payments with automatic currency conversion enabled for our customers.

    The caching method we employ is Disk: Enhanced.

    You can find our website at the following URL: https://tinyurl.com/393r6mk9

    Once again, thank you for your help!

    • This reply was modified 1 year, 2 months ago by orion1212.
    Thread Starter orion1212

    (@orion1212)

    Would Page Fragment Caching be a way to do it?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @orion1212

    Can you please switch to Disk: Basic, and in Performance>Page Cache enable the Late initialization: option, disable the expires header and cache control headers in Performance>Browser Cache, save all settings and purge the cache, and let me know if the issue persists?

    Thanks!

    Thread Starter orion1212

    (@orion1212)

    Hello @vmarko ,

    I appreciate the help. I switched to Disk: Basic and disabled Set expires header and Set cache control header but the issue unfortunately persists.

    • This reply was modified 1 year, 2 months ago by orion1212.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @orion1212

    Thank you for your feedback.
    We are working on some more elegant solutions which will include a couple of one-click Woocommerce options and one will be specific to this.

    You can try Page Fragment Caching and wrap the PHP code that changes the currency with <mfunc>

    I hope this helps!

    Thread Starter orion1212

    (@orion1212)

    Hi @vmarko,

    That would be fantastic! Do you have any estimates on when this update might be released?

    I looked a bit deeper into the page fragment caching option, even though my knowledge in this area is limited. As a possible workaround, I’m considering placing the entire “woocommerce-payments.php” under the <mfunc> tag as a quick and temporary solution. In the meantime, I’ve disabled the page cache.

    Thank you

    yazeedaloyoun

    (@yazeedaloyoun)

    Hi @vmarko,

    Also tried to get it to work with Basic page cache, but it didn’t work. So, I was wondering if there has been any update on this or if there’s a planned release to resolve it more natively.

    Also, was wondering if there’s any chance the plugin could shift the currency switcher auto-detect functionality to the client-side so that it works with Enhanced page cache?

    Thanks,

    Yazeed

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Currency Caching’ is closed to new replies.