Table des matières
Enrolment in a Course (for Oneself)
Moodle Shop: Production Handlers
Function: allows the buyer to enrol (themselves) in a course.
Pre-payment parameters
- customersupport: shortname of the customer support course
Post-payment parameters (execution)
Back-office parameters
- coursename(*): The short name of the target course.
- courseid(**): The short id of the target course.
- courseidnumber(**): The identification number of the target course.
- role: role short name, (by default 'student').
- enrolname: Resulting enrolment method (by default, 'manual')
- starttime: Enrolment start date expressed in Unix seconds (by default, purchase date)
- endtime: Enrolment end date expressed in Unix seconds (by default, unlimited)
- duration: Enrolment duration (alternatively to the end date, the end date is the start date plus the duration) expressed in days.
- group: Group in which the buyer will be enrolled.
For example, the product whose lifetime is set to 180 days for the customer: duration=180
(*) Mandatory parameters. (**) Alternative to coursename.
Front-office parameters
none.
Notes:
Renewal
This product can be renewed through the use of an enrolment period extension handler.
Availability restrictions
The product must not be purchasable if the buyer already has an active enrolment in this course, whatever the role. This can only be checked in the logged-in state. If the product is accessible to the logged-out public, then the restriction cannot be tested for logged-out buyers.
See the implementation sheet - Back to the structure summary - Back to setting up and running a commercial offer -Back to the Local Shop component summary - Back to the catalogue
