Your account expired support, please renew to get your support.

Home Forums Themes Support Claue Currecy Switcher

Viewing 6 reply threads
  • Author
    Posts
    • #29887
      LeoBalicas
      Support 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.

       

       

       

    • #29891
      Harry
      Support 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

    • #29993
      LeoBalicas
      Support 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?

    • #29998
      LeoBalicas
      Support 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.

    • #30003
      Harry
      Support 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

    • #30029
      LeoBalicas
      Support Expired
      This reply has been marked as private.
    • #30180
      Harry
      Support 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

Viewing 6 reply threads

You must be logged in to reply to this topic.