Hello. I want to modify the Enroll button in the course about page.
Based on the documentation, I can override its layout through comprehensive theming. But what if I want to modify how the button actually works? For example, when the Enroll button is clicked by a learner, instead of directing the learner into an e-commerce page for payment, it will automatically perform the API call of add_enrollment (refer to the api-docs). HOW CAN I ACHIEVE THIS?
You can disable ecommerce checkout by following these steps:
Login to your LMS as a superuser.
Visit your Django Admin > Commerce > Commerce configuration (https://<your-lms-url>/admin/commerce/commerceconfiguration/add/)
Edit the existing configuration, and un-check the “Checkout on ecommerce service” flag. Save.
If you don’t have an existing Commerce configuration, then ecommerce is already disabled on your deployment, and enrollments should already be going straight to the registration API (ref `course_about.html template file).