How do I change the currency for open edx ecommerce

I worked this out. The situation below is for changing USD to EUR. You will have to use the ISO standard for the currency you wish to change to.

In LMS Service

1)- First changes in lms.env.json PAID_COURSE_REGISTRATION_CURRENCY
- “EUR”,
- “€”
2) - Goto edx-platform/lms/djangoapps/shoppingcart/models.py
- Replace all ‘usd’ to ‘EUR’
3) - Goto edx-platform/common/djangoapps/course_modes/models.py
- Replace all ‘usd’ to ‘EUR’

  1. ./manage.py lms makemigrations --settings=aws
    ./manage.py lms migrate --settings=aws

Restart lms service:
sudo /edx/bin/supervisorctl restart lms

In Ecommerce Service

  1. ecommerce/ecommerce/settings/_oscar.py
    OSCAR_DEFAULT_CURRENCY = ‘EUR’

  2. delete all course modes from lms admin

  3. Edit course in ecommerce “/courses” and save again

Then migrate:

sudo -H -u edxapp -s bash
cd ~
source /edx/app/edxapp/edxapp_env
python /edx/app/edxapp/edx-platform/manage.py lms makemigrations --settings=aws
python /edx/app/edxapp/edx-platform/manage.py lms migrate --settings=aws
python /edx/app/edxapp/edx-platform/manage.py cms makemigrations --settings=aws
python /edx/app/edxapp/edx-platform/manage.py cms migrate --settings=aws
1 Like