This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
local:shop:setup:products [2018/02/14 20:56] florence |
local:shop:setup:products [2024/05/14 15:39] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <html><!-- nomoodle --></html>{{ :logo-apl.png?nolink |}}<html><!-- /nomoodle --></html> | ||
=====Back Office : Configuration and implementation of a commercial offer===== | =====Back Office : Configuration and implementation of a commercial offer===== | ||
=====Configurer des produits simples===== | =====Configurer des produits simples===== | ||
Line 108: | Line 109: | ||
- | **1/Generic handler: Enrol me to a course** | + | ===Generic handler: Enrol me to a course=== |
Settings | Settings | ||
- | 'coursename=<%course shortname%>' | + | 'coursename=<%course shortname%>' |
the course shortname as defined by course creator. this is supposed to be unique and always present. | the course shortname as defined by course creator. this is supposed to be unique and always present. | ||
- | 'role=<%role shortname%>' | + | //Exemple : coursename=courseshortname&customersupport=coursesupportshortname// |
- | the role that will be assigned to customer in the ocurse | ||
- | 'duration=<%enrol duration in days%>' | + | 'role=<%role shortname%>' |
+ | |||
+ | the role that will be assigned to customer in the course | ||
+ | |||
+ | //Exemple : coursename=courseshortname&supervisor=teacher2// | ||
+ | |||
+ | |||
+ | 'duration=<%enrol duration in days%>' | ||
the real start/end dates of the enrol will be calculated from the time the handler is run. | the real start/end dates of the enrol will be calculated from the time the handler is run. | ||
- | **2/Generic handler: Setup a course session** | + | //Exemple : coursename=courseshortname&duration=180// |
+ | |||
+ | |||
+ | ===Generic handler: Setup a course session=== | ||
Settings | Settings | ||
- | 'coursename=<%course shortname%>' | + | 'coursename=<%course shortname%>' |
the course shortname as defined by course creator. this is supposed to be unique and always present. | the course shortname as defined by course creator. this is supposed to be unique and always present. | ||
Line 136: | Line 146: | ||
This allows designating the exact role that will be assigned for supervisors. | This allows designating the exact role that will be assigned for supervisors. | ||
- | 'duration=<%enrol duration in days%>' | + | 'duration=<%enrol duration in days%>' |
the real start/end dates of the enrol will be calculated from the time the handler is run. | the real start/end dates of the enrol will be calculated from the time the handler is run. | ||
- | **Generic handler: Course creation (Pro version)** | + | ===Generic handler: Course creation (Pro version)=== |
Settings | Settings | ||
- | 'template=<%course template shortname%>' | + | 'template=<%course template shortname%>' |
The shortname of an existing course considered as template for course. The shortname is unique and is always present in Moodle. Check there is a prepared backup of the course in the ocurse backup area. | The shortname of an existing course considered as template for course. The shortname is unique and is always present in Moodle. Check there is a prepared backup of the course in the ocurse backup area. | ||
- | 'coursecategory=<%course category id%>' | + | 'coursecategory=<%course category id%>' |
This will tune where the new course will be created. Note that the product owner MUST have course creation capability in the designated category for the operation to succeed. | This will tune where the new course will be created. Note that the product owner MUST have course creation capability in the designated category for the operation to succeed. | ||
- | 'duration=<%duration in days%>' | + | 'duration=<%duration in days%>' |
Duration is calculated from the purchase date and affects the teacher account enrol and is stored in the product metadata stub to calculate product obsolescence and trigger end of life action. | Duration is calculated from the purchase date and affects the teacher account enrol and is stored in the product metadata stub to calculate product obsolescence and trigger end of life action. | ||
- | **3/Generic handler: Course category creation (Pro version)** | + | ===Generic handler: Course category creation (Pro version)=== |
Settings | Settings | ||
- | 'parentcategory=<%categoryid%>' | + | 'parentcategory=<%categoryid%>' |
The parent category to which the created category will be attached to. The product owner needs to be manager of the category or have the relevant permissions. | The parent category to which the created category will be attached to. The product owner needs to be manager of the category or have the relevant permissions. | ||
- | **4/Generic handler: Assign a role in a context** | + | ===Generic handler: Assign a role in a context=== |
Settings | Settings | ||
- | 'contextlevel=<%contextlevelID%>' (10 = system, 40 = category, 50 = course, 70 = module, 80 = block) | + | 'contextlevel=<%contextlevelID%>' (10 = system, 40 = category, 50 = course, 70 = module, 80 = block) |
The context level. | The context level. | ||
- | 'instance=<%instanceID%>' | + | 'instance=<%instanceID%>' |
The ID of the instance attached to the context. Irrelevant for system context. | The ID of the instance attached to the context. Irrelevant for system context. | ||
- | 'role=<%roleshortname%>' | + | 'role=<%roleshortname%>' |
the shortname of the role to assign. A capability check will be performed on product owner to actually execute the product handler. | the shortname of the role to assign. A capability check will be performed on product owner to actually execute the product handler. | ||
- | |||
- | //Exemple 1: coursename=courseshortname&customersupport=coursesupportshotname// | ||
- | |||
- | //Exemple 2 : coursename=courseshortname&supervisor=teacher2// | ||
Line 194: | Line 200: | ||
- | {{ :local:shop:setup:5-automation.png?nolink&850 |}} | + | {{ :local:shop:setup:5-automation.png?nolink |}} |
---- | ---- |