
內容簡介
與傳統的「計算器」式轉換器不同,Currencyr 使用「工具提示(tooltip)」的優勢並位於金額旁邊,讓使用者進行轉換。支援不同的匯率提供者 API 作為 WP Cron 任務執行,並能夠自動確定訪客的本地貨幣。Currencyr 還提供貨幣換算器小工具、短碼和功能。
在 http://demo.firmanw.com/wp/currencyr 查看實際效果。
注意:此外掛需要 PHP 5.3.0 或更高版本,如果您運行較舊版本,絕對不要嘗試安裝。
功能
使用 Currencyr for jQuery 輕鬆建立網頁內轉換器
多種匯率提供者 – Yahoo!、Google、Open Exchange Rates、歐洲中央銀行和 FoxRates
支援快取驅動的資料庫加速回應
啟用 WP Cron 任務排程器
短碼可快速進行轉換
貨幣表格和換算器小工具
面向主題開發人員的功能
使用 IP2C 透過 IP 檢測自動確定本地貨幣
支援與各種電子商務外掛整合 - WooCommerce、WP-eCommerce、Shopp 和 Easy Digital Downloads
翻譯支援
短碼
為啟用短碼,只需使用 [currencyr],並使用以下語法:
[currencyr amount=$amount <from=$code> to=$code<|$code>]
amount:您要轉換的金額。
to:貨幣代碼。使用「 |」作為多個轉換的分隔符。
from(可選):貨幣代碼。如果省略,則使用設定中的基礎貨幣。
範例:
[currencyr amount=99.99 to=gbp]
[currencyr amount=99.99 from=aud to=gbp]
[currencyr amount=99.99 to=gbp|eur|cad]
函數調用
轉換功能可在範本或代碼中使用 currencyr_exchange() 或 the_currencyr_exchange() 進行調用。這兩個函數具有相同的參數,不同之處在於 the_currencyr_exchange() 只會自動顯示結果。您可以使用以下參數以 WordPress 或 PHP 格式調用該函數:
amount:您要轉換的金額。
to:貨幣代碼。
from(可選):貨幣代碼。如果省略,則使用設定中的基礎貨幣。
以下程式碼類似:
<?php echo currencyr_exchange( array( 'amount' => 99.99, 'to' => 'cad' ) ); ?>
也類似於:
<?php echo currencyr_exchange( 99.99, 'cad' ); ?>
路線圖
添加匯率表頁面
添加自訂貨幣支援
回饋
如果您有任何回饋,請在 Twitter 上使用 @firmanw 以獲得快速回應,或前往 支援論壇。
外掛標籤
開發者團隊
原文外掛簡介
Instead of traditional “calculator” looks converter, Currencyr take the advance of “tooltip” and sit right at the amount to allow user convert it. Support various exchange rates provider API running as WP Cron task and able to auto-determinate local currency of visitor. Currencyr also offers currency converter widget, shortcode and function.
See it in action at http://demo.firmanw.com/wp/currencyr.
Note: This plugin requires PHP 5.3.0 or later, do not ever try to install if you running the older version.
Features
Inline converter using Currencyr for jQuery
Various exchange rates providers – Yahoo!, Google, Open Exchange Rates, European Central Bank and FoxRates
Support database cache driven for fast response
WP Cron task scheduler enabled
Shortcode quick conversion support
Currency table and converter widget
Function for theme developer
Auto-determinate local currency via IP detection using IP2C
Support integration with various ecommerce plugins – WooCommerce, WP-eCommerce, Shopp and Easy Digital Downloads
Translation support
Shortcode
To enable the shortcode simply use [currencyr] and use the following syntax:
[currencyr amount=$amount
amount – The number that you wish to convert.
to – The currency code. Use “|” as separator for multiple conversion.
from (optional) – The currency code. If omitted the Base Currency from setting will be use.
Examples:
[currencyr amount=99.99 to=gbp]
[currencyr amount=99.99 from=aud to=gbp]
[currencyr amount=99.99 to=gbp|eur|cad]
Function Call
The conversion feature is available to call within templates or codes using either currencyr_exchange() or the_currencyr_exchange(). Both functions share the same arguments, the diferrent is the_currencyr_exchange() is only echoes the result automatically. You can call the functions as WordPress style or PHP with the following arguments:
amount – The number that you wish to convert.
to – The currency code.
from (optional) – The currency code. If omitted the Base Currency from setting will be use.
The code above is similar to:
99.99, 'to' => 'cad' ) ); ?>
Also similar to:
Roadmap
Add exchange rates table page
Add custom currency support
Feedback
If you have any feedback, tweet @firmanw for fast response, or head over to the support forum.
