FormatPrice Method



 
The FormatPrice method adds the name of the current currency.


Syntax

    [str=] SiteKiosk.Plugins("SiteCash").ZoneDispatch.FormatPrice(currency)
    
Parameters
    currency Currency value to format.
Return Value
    Returns a String containing the formatted value including currency information.
Remarks Examples
    The following example shows the value 5 as formatted currency in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteKiosk.Plugins("SiteCash").ZoneDispatch.FormatPrice(5));
    </SCRIPT>
    

Applies to
    SiteKiosk v6.0 (and later versions).

Back to top