Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

WP Currency Converter

Descrizione

This plugin adds a fancy ajax currency converter widget to provide your visitors with a convenient on the spot currency conversions powered by Google Finance.

You can add as many currencies as you like. It uses Google Finance to get up to date foreign exchange information.

Because it’s all ajax powered, it doesn’t require your visitors to refresh the page, providing a seemless user experience.

This is the perfect addition to your shopping cart page if you’re looking for a reliable currency conversion widget that works.

This plugin also support localization, so if you have any translations please submit them via the support forum.

Installazione

To install WP Currency Converter:

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

To use this plugin, configure your currency lists in the Settings -> WP Currency Converter menu.

Now drag the widget to your desired sidebar and enjoy.

You can also use the Shortcode option, for example:
[wpcc title=”Currency Converter” pretool_paragraph=”Try this handy currency converter tool:” from_default=USD to_default=AUD]

Minimal styling is included so you can make it look as fancy as you like and match your shopping cart experience.

FAQ

I don’t have any currencies in the drop downs

Check your currency lists have data in them in the WP Currency Converter settings page found at Settings -> WP Currency Converter.

Make sure you use the three letter currency acronym as per the ISO 4217 standard

This plugin uses Google Finance for it’s calculations so ensure the currency is one they support.

Can I add more currencies?

You can add any currency by it’s currency acronym as long as it’s in the ISO 4217 standard list.

I always see the error: “Error: Currency conversion temporarily not available. Please try again.”

It’s likely that you’re not using a currency code that Google Finance recognises. To check you can try Googling for the currency conversion, eg. 25 AUD to USD (replace with your currency codes).

Recensioni

3 Maggio 2018
If you want to use this plugin still then you need to change the function wpccAjaxConvert to the code below as the google financial api is deprecated. function wpccAjaxConvert(){ require_once('wpccSymbols.php'); // currency symbols for conversions $currency_from = $_POST['wpcc_currency_from']; $currency_to = $_POST['wpcc_currency_to']; $amount = $_POST['wpcc_currency_amount']; $url = file_get_contents('https://free.currencyconverterapi.com/api/v5/convert?q=' . $currency_from . '_' . $currency_to . '&compact=ultra'); $json = json_decode($url, true); $rate = implode(" ",$json); $total = $rate * $amount; $rounded = round($total); //optional, rounds to a whole number // return $rounded //or return $rounded if you kept the rounding bit from above if (!empty($rounded)){ echo '<p>' . __('Amount', 'wpcc') . ' (' . $currency_to . '): ' . $currency[$currency_to] . $rounded . '</p>'; } else { echo '<p class="wpcc_error">' . __('Error: Currency conversion temporarily not available. Please try again.', 'wpcc') . '</p>'; } exit(); }
8 Novembre 2017
this plugin was FANTASTIC however due to a url change with google it quit working October 2017. it can be fixed manually by changing the url to https://finance.google.com/finance/converter in the wp-currency-converter.php file. more detials here: https://gist.github.com/daveismyname/8067095
Leggi tutte le recensioni di 13

Crediti e riconoscimenti

“WP Currency Converter” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

Traduci “WP Currency Converter” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il Codice segui il Repository SVN iscriviti al Log delle Modifiche. Puoi farlo tramite RSS con un lettore di feed.

Changelog (registro delle modifiche)

  • 1.4 Adding internationalization capabilities

    • Fix all echo output statements to be localizable
    • Add text domain wpcc
    • Added /lang folder to house .mo .po files
  • 1.3 Changing to Google Finance

    • Switching API services from iGoogle to Google Finance (iGoogle was deactivated on 1st Nov 2013)
    • Added more sophisticated curl processing
    • Added backup to use file_get_content in cases where curl isn’t available
  • 1.2 Adding shortcode

    • Added shortcode “wpcc”
    • Added default currency list on activation on plugin activation for new installs
  • 1.1 Fixing conversion widget

    • Ajax bug when user logged out
  • 1.0 Initial version

    • Initial commit of WP Currency Converter