
kevlawrencedesign(@kevlawrencedesign)
3 Posts
Customers
Quote from kevlawrencedesign on July 1, 2021, 00:45
Hi - I have WP Rocket installed with cloudflare enabled.
The currency switcher is not working correctly. Clicking the dropdown and changing currency does not refresh the page. I disabled WP rocket and tested and works fine which leads me to believe it is to do with Caching
Getting the following errors in console:
jQuery.Deferred exception: woocs_array_of_get is not defined @https://amourdigital.design/wp-content/cache/min/1/wp-content/plugins/woocommerce-currency-switcher/js/front.js?ver=1625090090:1:103
Uncaught ReferenceError: woocs_array_of_get is not defined
at HTMLDocument.<anonymous> (front.js?ver=2.3.5:1)
at e (jquery.min.js?ver=3.5.1:2)
at t (jquery.min.js?ver=3.5.1:2)
front.js?ver=2.3.5:27 Uncaught TypeError: Cannot create property 'currency' on string '{}'
at woocs_redirect (front.js?ver=2.3.5:27)
at HTMLSelectElement.onchange ((index):183)
Hi - I have WP Rocket installed with cloudflare enabled.
The currency switcher is not working correctly. Clicking the dropdown and changing currency does not refresh the page. I disabled WP rocket and tested and works fine which leads me to believe it is to do with Caching
Getting the following errors in console:
jQuery.Deferred exception: woocs_array_of_get is not defined @https://amourdigital.design/wp-content/cache/min/1/wp-content/plugins/woocommerce-currency-switcher/js/front.js?ver=1625090090:1:103
Uncaught ReferenceError: woocs_array_of_get is not defined
at HTMLDocument.<anonymous> (front.js?ver=2.3.5:1)
at e (jquery.min.js?ver=3.5.1:2)
at t (jquery.min.js?ver=3.5.1:2)
front.js?ver=2.3.5:27 Uncaught TypeError: Cannot create property 'currency' on string '{}'
at woocs_redirect (front.js?ver=2.3.5:27)
at HTMLSelectElement.onchange ((index):183)

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 1, 2021, 11:11
Hello
Please update the plugin to latest version - https://currency-switcher.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato/
Paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png and wp-admin access - https://share.pluginus.net/image/i20210618130637.png
I think this is a problem with JS code optimization
Hello
Please update the plugin to latest version - https://currency-switcher.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato/
Paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png and wp-admin access - https://share.pluginus.net/image/i20210618130637.png
I think this is a problem with JS code optimization

kevlawrencedesign(@kevlawrencedesign)
3 PostsTopic Author
Customers
Quote from kevlawrencedesign on July 1, 2021, 11:46
Hi there - I have completed the above steps and setup admin for you
thanks
Hi there - I have completed the above steps and setup admin for you
thanks

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 1, 2021, 12:45
please do a test
please do a test

kevlawrencedesign(@kevlawrencedesign)
3 PostsTopic Author
Customers
Quote from kevlawrencedesign on July 1, 2021, 13:23
Hi - tested and looks like its working. Can you confirm what the problem was and how you solved it?
Did you need to adjust WP Rocket settings?
Hi - tested and looks like its working. Can you confirm what the problem was and how you solved it?
Did you need to adjust WP Rocket settings?

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on July 2, 2021, 10:50
Hello
I have set these js optimization settings - https://share.pluginus.net/image/i20210702114529.png
Hello
I have set these js optimization settings - https://share.pluginus.net/image/i20210702114529.png