Skip to content

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.

THE HYBRIS ARCHITECT NEWSLETTER

Keep your commerce thinking sharp.

Occasional SAP Commerce insights on performance, architecture, search, and storefront reliability. Practical ideas to read when it suits you.

Confirm by email to join. Unsubscribe at any time. Privacy Policy

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

Hybris Architect
Cookie preferences

Choose whether HybrisArchitect.com may load optional Analytics and Chat. Necessary cookies support site functions and remember your choice. Both optional services remain blocked until you accept.

Enable Analytics and Chat separately, or reject both and keep browsing. Change or withdraw your choice through Cookie settings. Your preference is remembered for 180 days. Withdrawal stops future loading of the disabled service after reload; it does not delete previously collected information.

Read our Privacy Policy.