Quote from rrosengreen on December 9, 2021, 12:33
Hi
Just setup the pro plugin.
Problem 1) URL problems
After each url in my website, I now get a weird url parameter like this:
kaerbygaard.com/shop/kaerbygaard/?v=dd65ef9a5579
This doesn't look great, and also it doesn't work with my caching plugin (using sitemap and url to define page-optimisation)
Problem 2) Weglot integration
I use this code provided, but when I switch language, I get an error and currency/price just goes to "zero / 0"
add_filter('wp_head', function() {
$lang = weglot_get_current_language();
global $WOOCS;
switch ($lang)
{
case 'en':
$WOOCS->set_currency('EUR');
break;
case 'se':
$WOOCS->set_currency('DKK');
break;
case 'no':
$WOOCS->set_currency('DKK');
break;
case 'de':
$WOOCS->set_currency('EUR');
break;
default:
$WOOCS->set_currency('DKK');
break;
}
});
Can you help me find the issue here?
Thank you,
Best regards
Rasmus
Hi
Just setup the pro plugin.
Problem 1) URL problems
After each url in my website, I now get a weird url parameter like this:
kaerbygaard.com/shop/kaerbygaard/?v=dd65ef9a5579
This doesn't look great, and also it doesn't work with my caching plugin (using sitemap and url to define page-optimisation)
Problem 2) Weglot integration
I use this code provided, but when I switch language, I get an error and currency/price just goes to"zero / 0"
add_filter('wp_head', function() {
$lang = weglot_get_current_language();
global $WOOCS;
switch ($lang)
{
case 'en':
$WOOCS->set_currency('EUR');
break;
case 'se':
$WOOCS->set_currency('DKK');
break;
case 'no':
$WOOCS->set_currency('DKK');
break;
case 'de':
$WOOCS->set_currency('EUR');
break;
default:
$WOOCS->set_currency('DKK');
break;
}
});
Can you help me find the issue here?
Thank you,
Best regards
Rasmus