How to override lms.env.json?

Hi,
I wonder how to enable paid course mode. Following https://github.com/edx/edx-platform/wiki/Shopping-Cart, I put some configuration in config.yml since I know that lms.env.json will be replaced everytime we start tutor. But I got nothing change.

FEATURES:
- ENABLE_PAID_COURSE_REGISTRATION: true
- ENABLE_SHOPPING_CART: true

@vndee did you get any workaround to update lms.env.json file.

I published a few plugin examples to help you resolve this issue: https://docs.tutor.overhang.io/plugins/examples.html

Basically, you need to create a plugin with:

name: paidcoursemode
version: 0.1.0
patches:
  common-env-features: |
    "ENABLE_PAID_COURSE_REGISTRATION": true,
    "ENABLE_SHOPPING_CART": true

Note that I have no idea whether the shopping cart feature actually works.

3 Likes