Home › Forums › Themes Support › Claue › Currecy Switcher
- This topic has 6 replies, 2 voices, and was last updated 5 years, 8 months ago by Harry.
-
AuthorPosts
-
-
March 25, 2019 at 3:23 am #29887LeoBalicasSupport Expired
Hi, as I said in the comments. My store is already in BRL, but continues with the USD as default. I deleted all currencies and set up one by one again and gave a browser refresh every time. GBP remains BRL as default, the same for EUR. But when I put USD, it becomes default. I tried changing the currency of woocommerce to other currencies, but it always remains USD as default.
-
March 25, 2019 at 12:08 pm #29891HarrySupport Expired
Hi,
I’m sorry the currency switcher function integrated in our theme now work not well. Please change to this plugin https://wordpress.org/plugins/woocommerce-currency-switcher/
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 28, 2019 at 8:37 am #29993LeoBalicasSupport Expired
Hi! I got it! I changed this line of code and BRL stays as default.:
$client = WC_Geolocation::get_external_ip_address();
$result = array( ‘currency’ => ” );
$currencies = Claue_Addons_Currency::getCurrencies();
$default = Claue_Addons_Currency::woo_currency();$ip_data = @json_decode(file_get_contents( ‘http://www.geoplugin.net/json.gp?ip=’ . $client ) );
if ( $ip_data && $ip_data->geoplugin_currencyCode != null ) {
$result[‘currency’] = $ip_data->geoplugin_currencyCode;
if ( isset( $currencies[$result[‘<strong style=”color: red;”>current‘]] ) ) {
$default = $result;
}
}But there is a problem, even without doing this when I change currency the price does not change automatically, I have to choose another page / product to see the price in the chosen currency.
I changed ‘<strong style=”color: orange;”>currency‘ for ‘<strong style=”color: red;”>current‘ and it worked
Do you have any lines of code for this?
and one more thing, where do I put this changed code in the me child theme? in functions.php or do I copy the path of the original file?
-
March 28, 2019 at 10:43 am #29998LeoBalicasSupport Expired
Hi I came back to the original configuration of the code and chose in the woocomerce Geolocation based on page cache and it worked. But you’re still having trouble updating automatically.
-
March 28, 2019 at 3:55 pm #30003HarrySupport Expired
Hi,
I see you disable currency switcher on your site and change account. Could you send me account to check again.
Thanks
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
March 30, 2019 at 3:38 am #30029LeoBalicasSupport ExpiredThis reply has been marked as private.
-
April 7, 2019 at 12:57 pm #30180HarrySupport Expired
Hi,
Sorry for reply.
We fixed issue on your site.
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio
-
-
AuthorPosts
You must be logged in to reply to this topic.