Translate Press + Caching issues
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Zubek on August 8, 2023, 12:46I am using a 1.40 version of FOX - Currency Switcher Professional for WooCoommerce and I'm also using TranslatePress to translate my website.
I added some custom code (that I found on Fox forums) to switch currency automatically based on selected language in translatePress. My base currency is EUR and the additional one is PLN. So when the user enters a website they see prices in EUR and they can switch the language to Polish to see PLN prices. This works fine, but if you then switch to English and then to Polish again the prices remain in EUR for ever (until cache is cleaned). I have turned on the 'I am using cache plugin' setting in FOX, but it doesn't seem to do anything.Any ideas on what might be causing that? I assume it might be the CDN + Caching.
The other issue is, the mini cart in the header gets it's currency symbol updated on currency change (so €199 -> 199zł), but the amount isn't converted until cart page is visited.
Thanks for any ideas and possible solutions for the issue.
I am using a 1.40 version of FOX - Currency Switcher Professional for WooCoommerce and I'm also using TranslatePress to translate my website.
I added some custom code (that I found on Fox forums) to switch currency automatically based on selected language in translatePress. My base currency is EUR and the additional one is PLN. So when the user enters a website they see prices in EUR and they can switch the language to Polish to see PLN prices. This works fine, but if you then switch to English and then to Polish again the prices remain in EUR for ever (until cache is cleaned). I have turned on the 'I am using cache plugin' setting in FOX, but it doesn't seem to do anything.
Any ideas on what might be causing that? I assume it might be the CDN + Caching.
The other issue is, the mini cart in the header gets it's currency symbol updated on currency change (so €199 -> 199zł), but the amount isn't converted until cart page is visited.
Thanks for any ideas and possible solutions for the issue.
Quote from Zubek on August 8, 2023, 16:03I managed to somehow work around the problem. I disabled liteSpeed cache and now everytime the currency is changed it is working as intended. But the cart in header problem still remains. Any idea on how to update the cart subtotal on page load? Once the language is changed the page gets reloaded, but it doesn't reload the cart total and just changes the currency symbol.
I managed to somehow work around the problem. I disabled liteSpeed cache and now everytime the currency is changed it is working as intended. But the cart in header problem still remains. Any idea on how to update the cart subtotal on page load? Once the language is changed the page gets reloaded, but it doesn't reload the cart total and just changes the currency symbol.
Quote from Alex Dovlatov on August 9, 2023, 12:13Hello Zubek
Yes, CDN can be the reason, also for cart cache can be, and data there should be refreshed after the page loading, for example https://stackoverflow.com/questions/69672441/how-to-refresh-cart-and-checkout-in-every-5-seconds-in-woocommerce
Give me please exact link to the site, you can add it into the secret area https://share.pluginus.net/image/i20230807131625.png
Hello Zubek
Yes, CDN can be the reason, also for cart cache can be, and data there should be refreshed after the page loading, for example https://stackoverflow.com/questions/69672441/how-to-refresh-cart-and-checkout-in-every-5-seconds-in-woocommerce
Give me please exact link to the site, you can add it into the secret area https://share.pluginus.net/image/i20230807131625.png
Quote from Zubek on August 9, 2023, 12:31I have shared my details so you can see the issue yourself. To replicate it, please add any item to basket, go back to the homepage (or any other page except cart or checkout) and switch currency by using the flag in the top left corner. You'll notice the currency symbol changes in the menu cart on the right side of the header, but the amount does not. The prices on the site itself will be displayed correctly. Thanks for sharing any knowledge. Just so you know, I have tried the solution you posted, but it doesn't seem to work.
Thanks,
Zubek
I have shared my details so you can see the issue yourself. To replicate it, please add any item to basket, go back to the homepage (or any other page except cart or checkout) and switch currency by using the flag in the top left corner. You'll notice the currency symbol changes in the menu cart on the right side of the header, but the amount does not. The prices on the site itself will be displayed correctly. Thanks for sharing any knowledge. Just so you know, I have tried the solution you posted, but it doesn't seem to work.
Thanks,
Zubek
Quote from Pablo Borysenco on August 14, 2023, 11:52Hello Zubek
https://share.pluginus.net/image/i20230814125043.png - this is a third party functionality.
Please try to do a test with native mini cart
Hello Zubek
https://share.pluginus.net/image/i20230814125043.png - this is a third party functionality.
Please try to do a test with native mini cart