![]() Here’s an example… The retail price is $49.99. The template text must include %result% where you wish the output to appear. None of the template will be output if any error occurs, including any error messages, allowing you to suppress any conversion text in the case of a problem. The template option allows you to specify other information to be output along with the conversion result. If you wish to suppress these messages then you need to use a template (see the later section on this) – in this case no output will be generated in the case of an error. If the conversion can’t be done then an appropriate error message will be output instead. This would convert 50 from US dollars to UK pounds and output the result without any decimal places. This would convert 49.99 from UK pounds to US dollars and output the result to 2 decimal places. template – See the later section, “Using Templates”, for further informationĮxample of use are….The latter is the default and will mean that the output will match the number of decimal places that the number was. This should be numeric or the word “match”. dp – How many decimal places the output should be.If you do not specify this value then the default from the options screen will be used. to – The currency code that you wish to convert to (see the admin options for a list of valid codes).If you do not specify this value then the default from the options screen will be used from – The currency code that you wish to convert from (see the admin options for a list of valid codes).number – The number that you wish to convert from one currency to another.The shortcode of ‘’ has the following parameters that you may specify… You will also need to sign up for and enter an App Key before conversions will work. Exchange Rates – Shown under the “Tools” menu, this displays the current exchange rates along with a list of all the valid exchange codesīefore using this plugin it is highly recommended that you review the Options screen and change any values, as appropriate.Open Currency – This appears under “Settings” and allows you to specify default settings for any currency conversion.Once the plugin is activated two new administration screens will be present. Its accuracy and availability are never guaranteed, and there’s no warranty provided. The exchange rate data is provided for free via the Open Source Exchange Rates project. To add to your site simply use the shortcode. Paste the App ID into the equivalent field at the top of the settings screen.Head back to the admin of your website and select the Settings -> Open Currency menu.An App ID should be listed on the right hand side – copy this ID.Click on the “App IDs” option in the side menu. ![]() You should now be at your account screen.Sign up on the Open Exchange Rates site – this link will take you to the free option but the site does require personal information.Having a premium plan does not add any extra features to this plugin and is not a requirement. This is to prevent over-use of the exchange system and to provide premium features for users who wish to pay for them. This site requires an App Key to be specified for it to work. Open Currency Converter gets its data from the Open Exchange Rates website (which is not associated with this plugin nor the developer). □ Please visit the Github page for the latest code development, planned enhancements and known issues □ Getting Started Iconography is courtesy of the very talented Janki Rathod ♥️ ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |