
Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 5, 2024, 09:39
Hello
GEOIP this only works for the user's first visit
Hello
GEOIP this only works for the user's first visit

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 5, 2024, 12:19
I think it's possible. In this case, you need code customization.
From my side, I can tell you how to switch the currency in PHP - https://currency-switcher.com/function/woocs-set_currency
The other code will depend on your country selector.
I think it's possible. In this case, you need code customization.
From my side, I can tell you how to switch the currency in PHP - https://currency-switcher.com/function/woocs-set_currency
The other code will depend on your country selector.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 7, 2024, 11:40
Hello
ok! how do you get this data "UK" "US"?
An example:
$country_code = // your function to get country code
$global $WOOCS;
switch($country_code){
case "UK" :
$WOOCS->set_currency('GBP');
break;
case "US" :
$WOOCS->set_currency('USD');
break;
}
Hello
ok! how do you get this data"UK""US"?
An example:
$country_code = // your function to get country code
$global $WOOCS;
switch($country_code){
case"UK" :
$WOOCS->set_currency('GBP');
break;
case"US" :
$WOOCS->set_currency('USD');
break;
}

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on August 8, 2024, 10:02
Hello
If you don't have any programming experience - You should hire a developer to customize your code.
What should I enter here? - I gave all the code from my side. How you will determine this data (country code) I do not know - https://share.pluginus.net/image/i20240808110227.png
Hello
If you don't have any programming experience - You should hire a developer to customize your code.
What should I enter here? - I gave all the code from my side. How you will determine this data (country code) I do not know - https://share.pluginus.net/image/i20240808110227.png