sandywp / plugins / currency-switcher-woocommerce

Currency Switcher for WooCommerce

4.2 out of 5 stars. 4.2 43 reviews

Currency Switcher for WooCommerce.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v2.16.7 10,000+ installs WP 4.4+

your-sandbox.sandywp.com/wp-admin
Currency Switcher for WooCommerce running inside a SandyWP sandbox

What you get inside

8 screens
  • Currency Switcher for WooCommerce - Currencies.

  • Currency Switcher for WooCommerce - Exchange Rates.

  • Currency Switcher for WooCommerce - Currency Countries (by IP).

  • Currency Switcher for WooCommerce - General.

  • Currency Switcher for WooCommerce - General - Switcher Placement and Format.

  • Currency Switcher for WooCommerce - General - Exchange Rates Final Price Correction.

  • Currency Switcher for WooCommerce - General - Advanced Options.

  • Currency Switcher for WooCommerce - Price Formats.

About this plugin

Currency Switcher for WooCommerce.

Features

  • Automatic currency exchange rates updates.
  • Prices on per product basis.
  • Currency by country (i.e. by IP).
  • Currency by language (i.e. locale).
  • Option to revert to original currency on checkout.
  • Option to override currency by user selected billing or shipping country.
  • Various currency switcher placement and format options.
  • Option to add currency switcher as widget or as shortcodes.
  • Option to additionally change order currency by admin.

Currency Switcher Shortcodes

  • [woocommerce_currency_switcher_drop_down_box] – currency switcher in drop down box format.
  • [woocommerce_currency_switcher_radio_list] – currency switcher in radio list format.
  • [woocommerce_currency_switcher_link_list] – currency switcher in links list format.

More Shortcodes

  • [woocommerce_currency_switcher_product_price_table] – product prices preview in all currencies.
  • [woocommerce_currency_switcher_convert_price] – convert any price to another currency.
  • [woocommerce_currency_switcher_current_currency_symbol] – show current currency symbol.
  • [woocommerce_currency_switcher_current_currency_code] – show current currency code.

Feedback

  • We are open to your suggestions and feedback. Thank you for using or trying out one of our plugins!
  • Drop us a line at https://wpwham.com.

More

Questions

Issues regarding Paypal

  • If you are experiencing some sort of issue regarding paypal, like incorrect currency code displayed in notification emails or anything else, please try to disable the default paypal component bundled with WooCommerce and use this plugin instead

How to get the converted price

If you are trying to display the converted price on a custom template for example you can use our alg_get_product_price_by_currency() function.
e.g

add_action('woocommerce_single_product_summary', function(){
    if ( ! class_exists( 'Alg_WC_Currency_Switcher' ) ) {
        return;
    }
    global $product;
    $price = get_post_meta( get_the_ID(), '_regular_price', true);
    $converted_price = alg_get_product_price_by_currency( $price, alg_get_current_currency_code(), $product, true );
    $converted_price_formatted = wc_price( $converted_price );
    echo "<h1>{$converted_price}</h1>";
    echo "<h1>{$converted_price_formatted}</h1>";
});

CoinMarketCap not working?

Please make sure you are using at least one Cryptocurrency on your Currency settings.
You can install All Currencies for WooCommerce plugin to enable them

National Bank of Georgia

If you are trying the National Bank of Georgia server option with no success, make sure that your server has the SoapClient library installed and enabled

How to override rounding and pretty price per currency?

If you want for example to turn on the rounding for all products except for Bitcoin, supposing you’ve enabled rounding and pretty price on plugin’s settings:

add_filter( 'alg_wc_currency_switcher_correction', function ( $correction, $currency ) {
    if ( $currency == 'BTC' ) {
        $correction['rounding'] = 'no_round';
        $correction['pretty_price'] = 'no';
    }

    return $correction;
}, 10, 2 );

How to force currency by URL

If you want to set a currency just accessing an URL you can append the alg_currency variable with the currency code you want.
e.g

http://www.yoursite.com?alg_currency=USD

4.2

43 reviews

  • 5 ★ 31
  • 4 ★ 4
  • 3 ★ 0
  • 2 ★ 2
  • 1 ★ 6

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.