
Restriction by credit
- Moodle 4.1–5.0
- 更新 2025-08-04
Pay with credits for course contents
Credit Availability Condition for Moodle
With this plugin, you can put a price on any course content and ask for a credit payment to allow access.
Usage
This works like the Credit enrol plugin , but instead of restricting the full course, you can restrict individual activities, resources or sections (and you can combine it with other availability conditions, for example, to exclude some group from paying using an “or” restriction set).
Please note: The support to “course sections” or “topics” is not yet implemented. It works only with “course modules and resources”.
Setup Instructions
Before you can use the availability condtion, you have to do the following steps:
Install Course Credit Enrolment ( https://moodle.org/plugins/enrol_credit )
Create a custom profile field of the type “input field” and name it e.g. “Credits” (can be anything you want)
Set the custom profile field to “locked” to avoid that users change the amount of credits themselves
Add the credits to that field either via the csv user upload, manually or via a webservice
Go to Site administration > Plugins > Enrolments > Manage enrol plugins and make sure Course Credit Enrolments is enabled
On the same screen, open the settings of the enrolment method and choose the profile field you’ve created in the first setting “Profile field mapping”.
Try it out
You can see the plugin in action on our test site: https://labs.bdecent.de/
Potential privacy issues
None. This plugin does not store any personal data.