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.

About the author

Marc is the Founder of HybrisArchitect.com. He enjoys helping others learn more about SAP Hybris Commerce. Marc has held the role of Hybris Architect at Exemplis and Nasty Gal. He is a long-time Java/Spring developer. 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: info@hybrisarchitect.com

Add a Comment

Your email address will not be published. Required fields are marked *