Cart Currency Problem
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 Jonas on October 10, 2023, 18:24I'm having problems with currency. When adding products to cart and changing language from Danish to English the problem accours.
When viewing the cart prices and subtotal are displayed in DKK (previous selected language) and not EURO as the selected language.
It seems like the off-canvas cart is cached or fixed in currency?
https://www.youtube.com/shorts/Qz3jOgL7Owo
https://gallerifusion.dk/
I'm having problems with currency. When adding products to cart and changing language from Danish to English the problem accours.
When viewing the cart prices and subtotal are displayed in DKK (previous selected language) and not EURO as the selected language.
It seems like the off-canvas cart is cached or fixed in currency?
Quote from Jonas on October 11, 2023, 11:00I have updated the "Private data for this topic" with login details for further investigation.
Have a nice day.
I have updated the"Private data for this topic" with login details for further investigation.
Have a nice day.
Quote from Pablo Borysenco on October 11, 2023, 12:30Hello
My plugin does not have functionality for switching currencies depending on the language
What plugin version number are you using?
Hello
My plugin does not have functionality for switching currencies depending on the language
What plugin version number are you using?
Quote from Jonas on October 11, 2023, 13:02Hello,
I am using version 1.4.1.3 and TranslatePress. When changing language from Danish and English and viewing cart items. Their currency is shown in the opposite languages currency (DKK) and not in EURO (English).
Hello,
I am using version 1.4.1.3 and TranslatePress. When changing language from Danish and English and viewing cart items. Their currency is shown in the opposite languages currency (DKK) and not in EURO (English).
Quote from Jonas on October 11, 2023, 13:06Please watch video for documation: https://youtube.com/shorts/_qTOflki1c0?feature=share
Please watch video for documation: https://youtube.com/shorts/_qTOflki1c0?feature=share
Quote from Pablo Borysenco on October 12, 2023, 09:26Hello
I saw the video! But my plugin does not have functionality for switching currencies depending on the language. This is a third party functionality
What do you use to switch currencies?
Hello
I saw the video! But my plugin does not have functionality for switching currencies depending on the language. This is a third party functionality
What do you use to switch currencies?
Quote from Jonas on October 12, 2023, 09:46Hello,
I am confused with your anwser. I thought that was what your plugin is doing for multilangual sites as mine www.gallerifusion.dk/kunst/.
I'm using FOX - Currency Switcher and TranslatePress for translation and currency display.
I have added your custom javascript to my functions.php for your plugin to work with TranslatePress language switcher: https://currency-switcher.com/switch-currency-with-language-change
But it's not working perfect when adding product to cart and then switching language as it shows previous selected currency and not the current currency. Hope you understand and thanks for your time!
Hello,
I am confused with your anwser. I thought that was what your plugin is doing for multilangual sites as mine http://www.gallerifusion.dk/kunst/.
I'm using FOX - Currency Switcher and TranslatePress for translation and currency display.
I have added your custom javascript to my functions.php for your plugin to work with TranslatePress language switcher: https://currency-switcher.com/switch-currency-with-language-change
But it's not working perfect when adding product to cart and then switching language as it shows previous selected currency and not the current currency. Hope you understand and thanks for your time!
Quote from Pablo Borysenco on October 12, 2023, 12:25Hello
https://currency-switcher.com/switch-currency-with-language-change - These are recommendations for implementing a custom method for switching currencies. this code is not part of our plugin. And I wrote this because I don’t know how you implemented this functionality
the shopping cart on your website is also a third-party functionality (not native woocommerce)
Possible reason for this behavior: third-party cart functionality takes data before this code switches currencies
In this case, you can try changing the hook - wp_head to get_header OR wp_enqueue_scripts
Hello
https://currency-switcher.com/switch-currency-with-language-change - These are recommendations for implementing a custom method for switching currencies. this code is not part of our plugin. And I wrote this because I don’t know how you implemented this functionality
the shopping cart on your website is also a third-party functionality (not native woocommerce)
Possible reason for this behavior: third-party cart functionality takes data before this code switches currencies
In this case, you can try changing the hook - wp_head to get_header OR wp_enqueue_scripts
Quote from Jonas on October 12, 2023, 12:52Hi,
Thanks for you response.
Im not talented with configuring javascript sadly. Can you or someone else help me implement this?
Hi,
Thanks for you response.
Im not talented with configuring javascript sadly. Can you or someone else help me implement this?
Quote from Pablo Borysenco on October 13, 2023, 09:41Hello
Ok! Please drop me the code you used for this functionality.
Can you write where you inserted this code?
Hello
Ok! Please drop me the code you used for this functionality.
Can you write where you inserted this code?
Quote from Jonas on October 13, 2023, 10:30Hello Pablo,
Thank you so much!
I'm using TranslatePress for language and FOX - Currency Switcher for currency.
I have used coode from this documentation and edited it to my needs: https://currency-switcher.com/switch-currency-with-language-change
add_filter('wp_head', function() { // TranslatePress/Currency Switcher$lang = get_locale();global $WOOCS;switch ($lang){case 'en_GB':$WOOCS->set_currency('EUR');break;default:$WOOCS->set_currency('DKK');break;}} );The code is placed inside my OceanWP child theme functions.php file. My logins are shared in "Private data for this topic" section if needed.
Hello Pablo,
Thank you so much!
I'm using TranslatePress for language and FOX - Currency Switcher for currency.
I have used coode from this documentation and edited it to my needs: https://currency-switcher.com/switch-currency-with-language-change
The code is placed inside my OceanWP child theme functions.php file. My logins are shared in "Private data for this topic" section if needed.
Quote from Jonas on October 13, 2023, 10:31Above is my reply :)
Above is my reply :)
Quote from Pablo Borysenco on October 13, 2023, 10:48Please try this code:
add_filter('get_header', function() { // TranslatePress/Currency Switcher$lang = get_locale();global $WOOCS;switch ($lang){case 'en_GB':$WOOCS->set_currency('EUR');break;default:$WOOCS->set_currency('DKK');break;}} );ORadd_filter('wp_enqueue_scripts', function() { // TranslatePress/Currency Switcher$lang = get_locale();global $WOOCS;switch ($lang){case 'en_GB':$WOOCS->set_currency('EUR');break;default:$WOOCS->set_currency('DKK');break;}} );
Please try this code:
Quote from Jonas on October 13, 2023, 11:35Hi Pablo,
It still doesn't work. I've tried with both codes you suggested. Can you try again?
Nina Kleivan Moderne Oliemaleri | GALLERI FUSION
Documentation:
https://gallerifusion.dk/wp-content/uploads/2023/10/2023-10-13-11_32_09-Nina-Kleivan-Moderne-Oliemaleri-_-GALLERI-FUSION-Personal-Microsoft-Edge.png
https://gallerifusion.dk/wp-content/uploads/2023/10/2023-10-13-11_32_21-Nina-Kleivan-Moderne-Oliemaleri-_-GALLERI-FUSION-Personal-Microsoft-Edge.png
Hi Pablo,
It still doesn't work. I've tried with both codes you suggested. Can you try again?
Nina Kleivan Moderne Oliemaleri | GALLERI FUSION
Documentation:
Quote from Pablo Borysenco on October 13, 2023, 13:48My test - https://c2n.me/4jxIEhO - Perhaps I did something wrong?
My test - https://c2n.me/4jxIEhO - Perhaps I did something wrong?
Quote from Jonas on October 13, 2023, 14:36Hey Pablo,
Please look at the subtotal. It isn't updated with the selected language/currency. Also try to change back to the oppposite language afterwards and the currency is still shown in EURO and not DKK (selected language).
Hey Pablo,
Please look at the subtotal. It isn't updated with the selected language/currency. Also try to change back to the oppposite language afterwards and the currency is still shown in EURO and not DKK (selected language).
Quote from Pablo Borysenco on October 16, 2023, 10:40Hello
Ok. Try this code:
add_filter('wp_head', function() { // TranslatePress/Currency Switcher$lang = get_locale();global $WOOCS;switch ($lang){case 'en_GB':$WOOCS->set_currency('EUR');$_GET['currency'] = 'EUR';break;default:$WOOCS->set_currency('DKK');$_GET['currency'] = 'DKK';break;}} );
Hello
Ok. Try this code:
Quote from Jonas on October 16, 2023, 11:18Hello Pablo,
I tried with the new code, cleared cache and deleted history. But the problem isn't solved. Can you please try once again?
The code you gave me is still applied.
Wiliam Skotte Olsen Moderne Oliemaleri | GALLERI FUSION
Hello Pablo,
I tried with the new code, cleared cache and deleted history. But the problem isn't solved. Can you please try once again?
The code you gave me is still applied.
Wiliam Skotte Olsen Moderne Oliemaleri | GALLERI FUSION
Quote from Pablo Borysenco on October 16, 2023, 11:57Ok! there is another possibility to solve this
You need to change the language switching link - https://share.pluginus.net/image/i20231016125425.png
add ?currency=EUR OR ?currency=DKK - depending on language
an example:
https://gallerifusion.dk/en/wiliam-skotte-olsen-maleri-7/?currency=EUR
How to change the link - You can ask TranslatePress support
Ok! there is another possibility to solve this
You need to change the language switching link - https://share.pluginus.net/image/i20231016125425.png
add ?currency=EUR OR ?currency=DKK - depending on language
an example:
https://gallerifusion.dk/en/wiliam-skotte-olsen-maleri-7/?currency=EUR
How to change the link - You can ask TranslatePress support
Quote from Jonas on October 16, 2023, 12:24Hey,
That solution wont work for me, sorry. I would like to preserve my link integrity/structure for my website.
Do you have another solution in mind?
Hey,
That solution wont work for me, sorry. I would like to preserve my link integrity/structure for my website.
Do you have another solution in mind?