 zakW
|
Hi Andreas,
I tried using the example website you sent, but when I try the currency conversion, it's not working, as you can see on the video - hidden link
At the staging site, I have disabled the cache, and it's still not working.
I know the live site will use Cloudflare and not Breeze as the caching plugin so hopefully it will work but I need it to work for me on the staging site so I can present it to the client and once approved move it to the live website
Does the currency switcher depend on user location?
Like I said I need it to work for me on the staging site to show the client
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
I can sadly no longer log into the staging site, as the domain verification of the ReCaptcha features appears to fail.
Can you please disable this feature or the responsible plugin on the staging site?
Make sure to leave me a comment on this ticket, once you are done with this task.
|
 zakW
|
Hi Andreas.
I have disabled the feature, and you can log in again.
Looking forward to seeing what else you can find.
The client will be doing some tests on the website today, the 14/05, so please don't disable any plugins, only Breeze if needed.
|
 zakW
|
Hi Andreas,
I don't know how, but the currency switcher seems to be working now. Breeze has been disabled.
Instead of using Breeze we can use WP Rocket as the cache plugin, so don't think this will be a problem as WP rocket is on the recommended list of plugins you have and I sure this will work first time. Testing it right now
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
Thank you for your confirmation!
After giving another visit to my test site and updating WooCommerce the switcher actually seems to work as expected now:
hidden link
I also would suggest using the File Optimization option Exclude JS for hidden link
|
 zakW
|
Hi Andreas,
Im sorry to say but your testing site it still not working for me.
For the Bofi staging site after disabling Breeze and removing the plugin I can say that is working now. The only thing that is not showing is the spin animation in front of the switcher. We have now WP Rocket as our cache plugin.
You mention to exclude the JS but where should I add that option?
Is this going to help with the spin animation icon?
Can you have one final look at this, please?
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
My apologies, as I can see that the issue persists on my test site while not being logged in.
Note, that even if you decide to not longer use "Breeze" I am about to escalate this issue so that our compatilbity team can take a closer look into it.
---
About the loading circle:
On my test site, I can neither confirm a loading circle if the currency switcher is placed inside the product's "Add to cart" section:
hidden link
If you scroll down to the product's description you can see that I added another switcher per shortcode, and here it works.
I am not sure what is expected at this point and will consult my colleagues from second-tier support.
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
Further tests result in, that the loading circle will not show up if there is more than one dropdown switcher used on the same page.
This issue occurred as I enabled the global single-product language switcher option in WCML.
|
 zakW
|
Hi
Thank you for the help with this and escalating this as well so we can see why this problem is presenting itself again and again.
Please do keep me updated with anything your team and yourself find relative to this subject
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
The compatilbity team replied:
- Breeze cache is not listed as compatible, which is why we recommend using another plugin
Recommendations:
https://wpml.org/plugin-functionality/caching/
If you want to continue with Breeze, we found an old article describing exactly the same issue: hidden link
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
We would like to provide the following solution for this issue.
Please add this hook to the functions.php file of your Child Theme:
add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );
This will solve the issue for non-logged-in users.
|
 zakW
|
Hi Andreas,
Thank you very much for the help with this and to providing a solution for us in case we want to continue using Breeze as our caching plugin.
We decided to use for now WP Rocket caching as its one of the compatables caching plugins so we shouldn't have any major problems.
Saying that I have noticed that if I change the currency in the product page and add the product to the basket, when visiting the basket, the currency changes back to the default. Do you know why this is the case?
Kind Regards
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
This seems not to happen on my test site and I also can not confirm this on your site.
I went to:
hidden link
Switched to CAD and opened the cart. I still see the price in CAD.
Can you please give it a try to check if you can recreate the issue on this test site and provide me with the detailed steps?
One-Click-Login:
hidden link
|
 zakW
|
Hi Andreas.
Thank you very much for your message.
Its working with no issues in incognito (not logged in) but when I'm logged in and I go to the checkout page it defaults to the language currency.
I have tried in your test site and its working with me not being logged in.
Can you please tried our site when logged in to see if you can replicate the error?
Thanks in advance for all the help so far
|
 Andreas W.
WPML Supporter since 12/2018
Languages:
English (English )
Spanish (Español )
German (Deutsch )
Timezone:
America/Lima (GMT-05:00)
|
I ran a test on your staging site while being logged in.
I used this product:
hidden link
I switched the currency to YEN, then entered the cart and still saw YEN.
Before testing this, I made sure that the cart was empty.
--
Please provide me exact steps about how to recreate the issue.
|