Quote from carlyl on October 2, 2024, 02:48
Hello, for #1)
I have activated my Maxmind license, and added the shortcode [woocs_geo_hello] to the website (in the footer), and it says that im located in Canada, but the currency is still coming up as USD.
I also have the country "Canada" added to the CAD currency in the Geo IP rules. And all of the other countries added in USD.
And I also added the snippets in the doc, but got a critical error adding the second snippet
/* Geo Locate snippet 1 */
add_filter("woocs_geobone_ip",function(){
return true;
});
/* Geo locate snippet 2 */
function geo_ip_locate () {
if ( isset( $_SERVER['REMOTE_ADDR'] ) && ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
$_SERVER['HTTP_X_FORWARDED_FOR'] = $_SERVER['REMOTE_ADDR'];
}
}
Thank you so much for your help
Hello, for #1)
I have activated my Maxmind license, and added the shortcode [woocs_geo_hello] to the website (in the footer), and it says that im located in Canada, but the currency is still coming up as USD.
I also have the country"Canada" added to the CAD currency in the Geo IP rules. And all of the other countries added in USD.
And I also added the snippets in the doc, but got a critical error adding the second snippet
/* Geo Locate snippet 1 */
add_filter("woocs_geobone_ip",function(){
return true;
});
/* Geo locate snippet 2 */
function geo_ip_locate () {
if ( isset( $_SERVER['REMOTE_ADDR'] ) && ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) {
$_SERVER['HTTP_X_FORWARDED_FOR'] = $_SERVER['REMOTE_ADDR'];
}
}
Thank you so much for your help