Table des matières

Adding Unassigned Seats - Implementation

Product Automation Handler

Description

This scenario suits the following use cases:

This handler generates “unassigned” enrolment products in the customer account. The generated products can be seen as “training seat reservations”, each instance counting for one seat (one person) and one course, which can be determined later when the customer account assigns the seat.

Unassigned seats can be linked to a restricted course offer. Each catalogue product of this type can define to which subset of courses the seats it generates will be restricted. An unrestricted product allows assignment to all open Moodle courses.

In the current version, no check is made on the operator to know whether they have enrolment rights in the assigned course. Indeed, tracking all operators/customers on a platform to determine the accessible part of Moodle would probably be too heavy to manage. It was therefore preferred that the product definition records the set of possible courses for the seat.

Parameter details

Implementation

Data to prepare (prerequisites)

You must know:

You might know:

Date encoding

In a first version, “advanced” date input interfaces are not yet developed. Dates must be given as a number of seconds since the start of the universe date (for Linux fans, of course, this date is January 1st, 1970 at 00:00).

You can use an online tool such as http://www.timestamp.fr to find the integer that represents your date.

Parameter string encoding

The “internal” parameter string is encoded URL-style (key1=value1&key2=value2&etc…)


Back to setting up and running a commercial offer -Back to the Local Shop component summary - Back to the catalogue