{{ :logo-apl.png?nolink |}} ===== Adding Unassigned Seats - Implementation ===== ===== Product Automation Handler ===== ==== Description ==== This scenario suits the following use cases: * Training agreements are concluded and the customer does not know the training implementation dates in advance, and wants a quick way to add a candidate. * The training operator is not the payer, and it can be difficult to involve the payer each time there is a need. * The customer wants to benefit from an advantageous rate due to a bulk purchase, but the programme or the training objective is determined at the last moment and the training must be set up quickly. 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 ==== * [[:local:shop:structure:handlers:generateseats|See the structure documentation of this handler]] ==== Implementation ==== === Data to prepare (prerequisites) === You must know: * The set of short names (shortname) of the courses that can be accessed through this catalogue entry (courselist). You might know: * The short name of the course serving as customer support * The short name of the tutor role === 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...) ---- [[:local:shop:userguide:salesadmin|Back to setting up and running a commercial offer]] -[[:local:shop|Back to the Local Shop component summary]] - [[:start|Back to the catalogue]]