Skip to main content
Reference

Currency SFO

info

The Currency object differs from the CartCurrency object. The cart currency is a simple object that is mainly supplied as a list of possible currencies so a select box can be created which allows the customer to change the currency. The Currency object has additional methods that help with conversion rates, etc. The Currency object is used on Catalog pages, and the CartCurrency object is found within Checkout pages.

Properties

FieldTypeComment/Sample

Methods

MethodSignatureComments/Sample
addCurrency add(Currency val)
compareTointeger compareTo(Currency val)
getConversionRate[BigDecimal](./bigdecimal-sfo.md) getConversionRate(string fromCurrency, string toCurrency)
getInUOMCurrency getInUOM(string uom)
getUomstring getUom()
getValue[BigDecimal](./bigdecimal-sfo.md) getValue()
getValueInUOM[BigDecimal](./bigdecimal-sfo.md) getValueInUOM(string uom)
isNonZeroboolean isNonZero()
isZeroboolean isZero()
multiplyCurrency multiply(integer val)
multiplyCurrency multiply([BigDecimal](./bigdecimal-sfo.md) val)
subtractCurrency subtract(Currency val)

See Also

Was this page helpful?