
hartmanncreate(@hartmanncreate)
2 Posts
Customers
Quote from hartmanncreate on January 18, 2022, 10:59
Hi, Great plugin. But we have a issue that we have written about on wordpress.org. Now we have purchase your Pro version and hope to get help here. We have setup the currency to change, when you change language. Works great on the cart and checkout page. But on the front page and other pages the currency symbol changes, but the amount in the header stays the same when you change the currency/language.
Our setup is Astra Theme / Elementor / TranslatePress
The code we are using is:
// CHANGE CURRENCY WHEN LANG CHANGE
add_filter('wp_head', function() {
global $TRP_LANGUAGE;
$lang = $TRP_LANGUAGE;
global $WOOCS;
switch ($lang)
{
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
case 'de_DE':
$WOOCS->set_currency('EUR');
break;
default:
$WOOCS->set_currency('DKK');
break;
}
});Stagging site: https://bylo.hartmanncreate.com/
Hi, Great plugin. But we have a issue that we have written about on wordpress.org. Now we have purchase your Pro version and hope to get help here. We have setup the currency to change, when you change language. Works great on the cart and checkout page. But on the front page and other pages the currency symbol changes, but the amount in the header stays the same when you change the currency/language.
Our setup is Astra Theme / Elementor / TranslatePress
The code we are using is:
// CHANGE CURRENCY WHEN LANG CHANGE
add_filter('wp_head', function() {
global $TRP_LANGUAGE;
$lang = $TRP_LANGUAGE;
global $WOOCS;
switch ($lang)
{
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
case 'de_DE':
$WOOCS->set_currency('EUR');
break;
default:
$WOOCS->set_currency('DKK');
break;
}
});Stagging site: https://bylo.hartmanncreate.com/

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 18, 2022, 12:02
Hello
This is a third party functionality( this is not a standard card ) - https://c2n.me/4eDGNtW.png
Read this - https://currency-switcher.com/woocs-labs
Hello
This is a third party functionality( this is not a standard card ) - https://c2n.me/4eDGNtW.png
Read this - https://currency-switcher.com/woocs-labs

hartmanncreate(@hartmanncreate)
2 PostsTopic Author
Customers
Quote from hartmanncreate on January 18, 2022, 15:43
Hi Pablo.
No, It's the standard Elementor Pro cart-widget that we display in the header.
https://elementor.com/help/woocommerce-cart-widget/
Hi Pablo.
No, It's the standard Elementor Pro cart-widget that we display in the header.
https://elementor.com/help/woocommerce-cart-widget/

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 19, 2022, 11:31
Hello
It's the standard Elementor Pro cart-widget - That's it! This is the card from a third-party author! This is a third party functionality. \
as I wrote before - https://currency-switcher.com/woocs-labs
Hello
It's the standard Elementor Pro cart-widget - That's it! This is the card from a third-party author! This is a third party functionality. \
as I wrote before - https://currency-switcher.com/woocs-labs