fox integration with both translatepress, shoptimizer (theme) and wp-rocket
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 skysolution on May 13, 2024, 13:50Hi Support
I have some issues on a staging site using theme shoptimizer, and fox integrated with translatepress (php function code) and also wprocket
The running site is using shoptimizer, translatepress and wp-rocket without any problem (tibladin.dk)
I have maked a stagingsite: staging.tibladin.dk and installed fox and connected to translatepress (php code) and setup automatically language/currency switch. But after this i have an issue, with currency change, it change but go back to another currency ex. change to swedish language and curency change to SEK but after some seconds it change to euro. All is functioning if I deactivate wp-rocket, and if I change the theme ex to storefront and activate wp-rocket all is functioning. But fox , shoptimizer and wp-rocket together give the issues.
Hope you can help, shoptimizer have said the problem are coming from fox, because the site (live site tilbladin.dk run without any problem, without fox??)
I will add credentials for the staging site
Hi Support
I have some issues on a staging site using theme shoptimizer, and fox integrated with translatepress (php function code) and also wprocket
The running site is using shoptimizer, translatepress and wp-rocket without any problem (tibladin.dk)
I have maked a stagingsite: staging.tibladin.dk and installed fox and connected to translatepress (php code) and setup automatically language/currency switch. But after this i have an issue, with currency change, it change but go back to another currency ex. change to swedish language and curency change to SEK but after some seconds it change to euro. All is functioning if I deactivate wp-rocket, and if I change the theme ex to storefront and activate wp-rocket all is functioning. But fox , shoptimizer and wp-rocket together give the issues.
Hope you can help, shoptimizer have said the problem are coming from fox, because the site (live site tilbladin.dk run without any problem, without fox??)
I will add credentials for the staging site
Quote from skysolution on May 13, 2024, 15:12Hi Support
I found this https://pluginus.net/support/topic/fox-doesn-t-work-while-wp-rocket-is-active/ and it solved the problem
regards
Ole
Hi Support
I found this https://pluginus.net/support/topic/fox-doesn-t-work-while-wp-rocket-is-active/ and it solved the problem
regards
Ole
Quote from Pablo Borysenco on May 14, 2024, 10:22Hello Ole
Ok! Great!
Hello Ole
Ok! Great!
Quote from skysolution on May 14, 2024, 11:11Hi Pablo
The advice using phpsession and make a setup in wprocket solved the problem but, the respons time on the site is now very poor, can see others have had the same problem (https://wordpress.org/support/topic/wp-rocket-caching-4/). Do you have another solution?
regards
Ole
Hi Pablo
The advice using phpsession and make a setup in wprocket solved the problem but, the respons time on the site is now very poor, can see others have had the same problem (https://wordpress.org/support/topic/wp-rocket-caching-4/). Do you have another solution?
regards
Ole
Quote from Pablo Borysenco on May 14, 2024, 11:53Hello
The advice using phpsession and make a setup in wprocket solved the problem but, - turn it off
Please check options - https://share.pluginus.net/image/i20240514125244.png and https://share.pluginus.net/image/i20240514125313.png
Hello
The advice using phpsession and make a setup in wprocket solved the problem but, - turn it off
Please check options - https://share.pluginus.net/image/i20240514125244.png and https://share.pluginus.net/image/i20240514125313.png
Quote from skysolution on May 14, 2024, 12:20Hi Pablo
I have changed back to fox session and "use" cache plugin. And now the respons time is fine again. But the issue changing currency correct with language change is now back to having a change issue. Sometimes changing to danish language (first change) to currency DKK but after a while euro . can do same on other language change. You can try on staging site
regards
Ole
Hi Pablo
I have changed back to fox session and"use" cache plugin. And now the respons time is fine again. But the issue changing currency correct with language change is now back to having a change issue. Sometimes changing to danish language (first change) to currency DKK but after a while euro . can do same on other language change. You can try on staging site
regards
Ole
Quote from Pablo Borysenco on May 15, 2024, 09:28Hello
You use custom code to change the currency depending on the language
Please drop me this code
Hello
You use custom code to change the currency depending on the language
Please drop me this code
Quote from skysolution on May 15, 2024, 12:48Hi Pablo
This code is placed in shoptimizer child theme function.php
add_filter('wp_head', function() {
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'de_DE':
$WOOCS->set_currency('EUR');
break;
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
case 'nl_NL':
$WOOCS->set_currency('EUR');
break;
case 'fr_FR':
$WOOCS->set_currency('EUR');
break;
case 'sv_SE':
$WOOCS->set_currency('SEK');
break;
default:
$WOOCS->set_currency('DKK');
break;
}
});
Hi Pablo
This code is placed in shoptimizer child theme function.php
add_filter('wp_head', function() {
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'de_DE':
$WOOCS->set_currency('EUR');
break;
case 'en_GB':
$WOOCS->set_currency('EUR');
break;
case 'nl_NL':
$WOOCS->set_currency('EUR');
break;
case 'fr_FR':
$WOOCS->set_currency('EUR');
break;
case 'sv_SE':
$WOOCS->set_currency('SEK');
break;
default:
$WOOCS->set_currency('DKK');
break;
}
});
Quote from Pablo Borysenco on May 16, 2024, 10:36Hello
Please try this code:
add_filter('wp_head', function() {
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'de_DE':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'en_GB':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'nl_NL':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'fr_FR':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'sv_SE':$_GET['currency'] = 'SEK';
$WOOCS->set_currency('SEK');
break;
default:$_GET['currency'] = 'DKK';
$WOOCS->set_currency('DKK');
break;
}
});
clear all cache and do a test
Hello
Please try this code:
add_filter('wp_head', function() {
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'de_DE':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'en_GB':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'nl_NL':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'fr_FR':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'sv_SE':
$_GET['currency'] = 'SEK';
$WOOCS->set_currency('SEK');
break;
default:
$_GET['currency'] = 'DKK';
$WOOCS->set_currency('DKK');
break;
}
});
clear all cache and do a test
Quote from skysolution on May 16, 2024, 11:20Hi Pablo
It's better now, but still some issues first call staging.tibladin.dk should give danish language and danish DKK currency (fox currency is dkk) but as you can see in menu line the the euro currecy symbol is shown. If you start changing language the currency is corectly set. The is also one more issue if you add ex a product in the basket lets say in DKK and change language to ex english( euro currency) price in basket is not recalculated at currency symbol is not changed from dkk to euro
regards
ole
Hi Pablo
It's better now, but still some issues first call staging.tibladin.dk should give danish language and danish DKK currency (fox currency is dkk) but as you can see in menu line the the euro currecy symbol is shown. If you start changing language the currency is corectly set. The is also one more issue if you add ex a product in the basket lets say in DKK and change language to ex english( euro currency) price in basket is not recalculated at currency symbol is not changed from dkk to euro
regards
ole
Quote from Pablo Borysenco on May 16, 2024, 12:23Please try to add this code here - https://share.pluginus.net/image/i20240516132245.png
if (wp_doing_ajax()) {
return false;
}
Please try to add this code here - https://share.pluginus.net/image/i20240516132245.png
if (wp_doing_ajax()) {
return false;
}
Quote from skysolution on May 16, 2024, 12:51Hi Pablo
The code look like this now, but the issue is still there wrong currency symbol (not in fox) and prices are not recalculated if changing currency
add_filter('wp_head', function() {
if (wp_doing_ajax()) {return false;
}
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'de_DE':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'en_GB':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'nl_NL':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'fr_FR':$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'sv_SE':$_GET['currency'] = 'SEK';
$WOOCS->set_currency('SEK');
break;
default:$_GET['currency'] = 'DKK';
$WOOCS->set_currency('DKK');
break;
}
});
Hi Pablo
The code look like this now, but the issue is still there wrong currency symbol (not in fox) and prices are not recalculated if changing currency
add_filter('wp_head', function() {
if (wp_doing_ajax()) {
return false;
}
$lang = get_locale();
global $WOOCS;
switch ($lang)
{
case 'de_DE':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'en_GB':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'nl_NL':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'fr_FR':
$_GET['currency'] = 'EUR';
$WOOCS->set_currency('EUR');
break;
case 'sv_SE':
$_GET['currency'] = 'SEK';
$WOOCS->set_currency('SEK');
break;
default:
$_GET['currency'] = 'DKK';
$WOOCS->set_currency('DKK');
break;
}
});
Quote from Pablo Borysenco on May 17, 2024, 11:20Hello
Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png
If you have configured caching of JS files, add this to the exception - \wp-content\plugins\woocommerce-currency-switcher\js\front.js
Hello
Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png
If you have configured caching of JS files, add this to the exception - \wp-content\plugins\woocommerce-currency-switcher\js\front.js
Quote from skysolution on May 17, 2024, 13:04Hi Pablo
I have added licens key. I dont use caching javascript. Hope you can find a solution. I have one customer site more with exactly same setup need fox integration with both translatepress, shoptimizer (theme) and wp-rocket)
regards
Ole
Hi Pablo
I have added licens key. I dont use caching javascript. Hope you can find a solution. I have one customer site more with exactly same setup need fox integration with both translatepress, shoptimizer (theme) and wp-rocket)
regards
Ole
Quote from Pablo Borysenco on May 20, 2024, 16:59Hello Ole
please do a test
Hello Ole
please do a test
Quote from skysolution on May 21, 2024, 11:13Hi Pablo
Still some issue. The first open of the site is danish language and fox currency is dkk but icon before basket icon is dkk but after few seconds changed to euro. I i start changing language all is fine so only first open of site. If i start a s product to basket all is fine on fornt page (menu icon and value) and also in minicart and cart and checkout. If I change language i cart page all is changed and value is recalculated. But if i go back to front page and change language (value is not recalculated) and the same in minicart. It's is first recalculated when adding a new product to order the frontpage menu line and minicart is recalculated
regards
Ole
Hi Pablo
Still some issue. The first open of the site is danish language and fox currency is dkk but icon before basket icon is dkk but after few seconds changed to euro. I i start changing language all is fine so only first open of site. If i start a s product to basket all is fine on fornt page (menu icon and value) and also in minicart and cart and checkout. If I change language i cart page all is changed and value is recalculated. But if i go back to front page and change language (value is not recalculated) and the same in minicart. It's is first recalculated when adding a new product to order the frontpage menu line and minicart is recalculated
regards
Ole
Quote from Pablo Borysenco on May 21, 2024, 12:48Hello Ole
I completely disabled the ability to redraw prices - it's simply impossible
Please clear all cache and Ctrl+F5
Hello Ole
I completely disabled the ability to redraw prices - it's simply impossible
Please clear all cache and Ctrl+F5
Quote from skysolution on May 21, 2024, 13:13Hi Pablo
Thanks for your great help. Can you recommend a plugin replacing wprocket, which can run together with fox, translatepress and shoptimizer theme. If so i will go for this solution. All is fine if I deactivate wprocket !!!
regards
Ole
Hi Pablo
Thanks for your great help. Can you recommend a plugin replacing wprocket, which can run together with fox, translatepress and shoptimizer theme. If so i will go for this solution. All is fine if I deactivate wprocket !!!
regards
Ole
Quote from Pablo Borysenco on May 22, 2024, 09:24Hello Ole
I think the problem is not in the caching plugin. It is more likely that the problem is a conflict between custom code (switching currencies depending on the language) and caching
I took the test again. This works correctly for me and all prices are in DKK
Hello Ole
I think the problem is not in the caching plugin. It is more likely that the problem is a conflict between custom code (switching currencies depending on the language) and caching
I took the test again. This works correctly for me and all prices are in DKK
Quote from skysolution on May 22, 2024, 14:49Hi Pablo
We have maked some changes in wp-roket and deactivated page caching. After that there was only a problem with currency symbol and value in basket in the menu line (we hide this function, accepted by our customer, and now all is running. Our customer is doing a live test today, and if ok, we will go live tomorrow.
Many many thanks for your great help and support. We will start next project within 2 weeks (this project include same software and theme but also woocommerce conditional product and some other woocommerce addons. we look forward starting this projekt to.
regards
Ole
Hi Pablo
We have maked some changes in wp-roket and deactivated page caching. After that there was only a problem with currency symbol and value in basket in the menu line (we hide this function, accepted by our customer, and now all is running. Our customer is doing a live test today, and if ok, we will go live tomorrow.
Many many thanks for your great help and support. We will start next project within 2 weeks (this project include same software and theme but also woocommerce conditional product and some other woocommerce addons. we look forward starting this projekt to.
regards
Ole