User Tools

Site Tools


en:public:developer:template_system:tags:parameters:convertcurrency

Table of Contents

ConvertCurrency

Convert the result of a called function (or var) from one currency to another currency. If the result is empty, no operation is done. If the result is not a numeric field, an error is raised.

NOTE: By default the resulting content and the content of the parameter “ConvertCurrency” will be parsed (all <#..> tags will be evaluated) before to apply this filter. You can control this behavior throught the parameter AnalyzeTagParams

Values

Value Description
From=xxx;To=yyy Convert the result from the currency xxx to the currency yyy

Example

<#MyCurrencyVar setValue="1">
<#MyCurrencyVar CurrencyConvert="From=USD;to=EUR">

Output (with a rate of 1 USD = 0.75 EUR):

0.75
en/public/developer/template_system/tags/parameters/convertcurrency.txt · Last modified: 2013/01/28 16:53 by admin