Currency Switcher for WooCommerce

Currency Switcher for WooCommerce

توسط

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

  1. Upload the entire ‘currency-switcher-woocommerce’ folder to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Start by visiting plugin settings at WooCommerce > Settings > Currency Switcher.

سوالات متداول

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

×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
نسخه حجم فایل SHA256 تغییرات دانلود
2.16.6 283 کیلوبایت -
دانلود
×
★★★★★
★★★★★
4.2 /5 (43 نظر)

قیمت:

رایگان

نگارش

2.16.6

آخرین انتشار

11 اردیبهشت 1405

آخرین بروزرسانی

4 ماه پیش

نصب های فعال

10,000+

نگارش وردپرس

وردپرس 4.4+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

-

نسخه ها

1 نسخه