getCurrencyId
function, since version 1.4.0
categories: currency, converting
getCurrencyId(currency)
this function extracts currency id part from currency field. It is similar to toNumber which returns amount part.
return type
number
examples
getCurrencyId(toCurrency(1, 2)) // 2
getCurrencyId(product.basePrice) // shop default currency
getCurrencyId(order.total) // order currency