Restriction by credit

Availability restriction ::: availability_credit
Maintained by Stefan Scholz, bdecent gmbh
Pay with credits for course contents

Restriction by credit Version 1 R2

Moodle 4.1, 4.2, 4.3, 4.4, 4.5, 5.0
Released: Monday, 4 August 2025, 6:23 PM

With this plugin, you can put a price on any course content and ask for a Credit payment to allow access. It works only with "course modules and resources". The support to "course sections" or "topics" is not yet implemented.

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).

Setup Instructions

Before you can use the availability condtion, you have to do the following steps:

  1. Install Course Credit Enrolment (https://moodle.org/plugins/enrol_credit)
  2. Create a custom profile field of the type "input field" and name it e.g. "Credits" (can be anything you want)
  3. Set the custom profile field to "locked" to avoid that users change the amount of credits themselves
  4. Add the credits to that field either via the csv user upload, manually or via a webservice
  5. Go to Site administration > Plugins > Enrolments > Manage enrol plugins and make sure Course Credit Enrolments is enabled
  6. 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".

Dev Info

Version information

Version build number
2025042900
Version release name
Version 1 R2
Maturity
Stable version
MD5 Sum
5d721dd241a221bf1cc254d303c8d516
Supported software
Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0
  • Latest release for Moodle 4.1
  • Latest release for Moodle 4.2
  • Latest release for Moodle 4.3
  • Latest release for Moodle 4.4
  • Latest release for Moodle 4.5
  • Latest release for Moodle 5.0

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v1.0-r2