Topics

Function ipFormatPrice()

ipFormatPrice — Get formatted currency string. If you don't like the way the price is formatted by default, catch ipFormatPrice job and provide your own formatting method.

Description:

string ipFormatPrice ( integer $price , string $currency , string $context , [ string $languageCode ] )

Get formatted currency string. If you don't like the way the price is formatted by default, catch ipFormatPrice job and provide your own formatting method.

Package: ImpressPages

Parameters:

integer $price Numeric price. Multiplied by 100.
string $currency Three letter currency code. E.g. "EUR".
string $context Plugins name that's requesting the operation. This makes it possible to render the price differently for each plugin.
string $languageCode = null

Return values:

string A currency string in specific country format.
comments powered by Disqus