How Do I Set Foreign Exchange Rates Using an Impex Script?

 

# Currencies
$usaCurrency=USD
$ukCurrency=GBP
$audCurrency=AUD
$europeCurrency=EUR
$chinaCurrency=CNY
$canadaCurrency=CAD
$norwayCurrency=NOK
$swedenCurrency=SEK

# Currencies
INSERT_UPDATE Currency ;isocode[unique=true] ;conversion
;$usaCurrency ;1
;$ukCurrency ;0.75
;$audCurrency ;1.26
;$europeCurrency ;0.85
;$chinaCurrency ;6.59
;$canadaCurrency ;1.25
;$norwayCurrency ;7.89
;$swedenCurrency ;8.10

The foreign exchange rates are stored in the Currency item type Conversion attribute.  In practice, you would create a Cron Job to update the foreign exchange rates in Hybris Commerce as often as required to effectively run your business.

Marc Raygoza

Marc is the Founder of HybrisArchitect.com.
He enjoys helping others learn more about SAP Commerce Cloud (Hybris). Marc is a SAP Commerce Certified Professional and has held the role of SAP Commerce Cloud Architect at Deloitte, PwC, Brillio (a Bain Company), and Nasty Gal. Marc holds an M.S. Software Engineering from Carnegie Mellon University and a B.S. in Accountancy from California State University, Fresno. He can be reached at: mraygoza@hybrisarchitect.com

You may also like...

Popular Posts