Package DE_EPAGES::Product::API::Resource::FromPriceFormatter
override formatter class for shop-dependend REST resources. to provide VariationPriceFromText attribute in formatted prices
Base |
DE_EPAGES::Shop::API::Resource::Formatter |
Functions
fromPrice
Returns a formatted price of amount and currency symbol as defined for the formatter locale. The formatted price includes a shop-specifix prefix (attribute Shop.VariationPriceFromText).
Syntax |
$hPrice = $Formatter->fromPrice($Amount, $CurrencyID, $TaxModel); |
Example |
$hPrice = $Formatter->fromPrice(27.25, 'EUR', undef); $hPrice = $Formatter->fromPrice(1, 'GBP', TAX_MODEL_GROSS); |
Input |
|
Return |
|