Products and how to manage them
Overview
Products are groups of one or more courses that are sold either singly or in bundles to users within a company. Access is managed through the following capabilities:
- To add a course to the shop: block/iomad_commerce:add_course
- To edit an existing course within the shop: block/iomad_commerce:edit_course
- To hide a course with the shop: block/iomad_commerce:hide_course
- To delete a course from the shop: block/iomad_commerce:delete_course
- To manage course templates: block/iomad_commerce:manage_default
Creating products
NOTE: You will first need to set up the IOMAD ecommerce block before you can begin selling products. You can find instructions on how to do this here: How to use the IOMAD ecommerce block.
Adding products to the shop
For all product management activities, go to the IOMAD dashboard, select the tenant, click the IOMAD eCommerce tab and then Products.
You will be presented with a list of the current products set up for this company (if there are any) with the option to show/hide, edit, delete or export the product. At the top of the page, there are four buttons:
- Create new product
- Manage template products
- Manage tags
- Cancel (takes you back to the IOMAD dashboard)
Click on Create new product, which brings up the following form:
Give the product a name, which, along with the Short description, will be how it will be listed within the shop; the Long description is used when viewing the product. Both long and short descriptions can include media and anything else that can be added to a standard Moodle label.
You can choose which courses the product is for from the list of courses that are available to the tenant. These can be manual or license enrolment courses. These are handled differently on purchase, with the user simply enrolled on the course where they are not licensed and a license created from the license options for license enrolment.
You also have the option to show a product in the shop or keep it hidden. This can be changed on the product listing page.
License options
The license options are the same as creating a license directly, except a duration from the time of purchase is used instead of chosen dates.
Single vs bulk purchase options
To allow for a single purchase from a user (controlled by the block/iomad_commerce:buyitnow capability), change the enable single purchase option to yes and set a price for it.
NOTE: If you have multiple courses within the product and this is not a program license, you will not be able to do this.
To enable bulk purchasing of courses by creating a new license, set the pricing for each banding.
NOTE: You can have as many tiers as you wish, but to enable this option, you need to start from a minimum of 1. Access to this in the shop is controlled by the capability block/iomad_commerce:buyinbulk.
Categories
Finally, set the categories which the shop which this product will be listed under. This is a comma-separated list of tags that can be used to describe the product. You can add existing categories to this product from the drop-down.
When you click save, the product will appear on the list of products in the shop:
Managing templates
To manage templates, click on the Manage template products button. This moves you out of the current tenant set of products and into the template list of products. Everything works in exactly the same way, except you can choose from all of the courses within the site for the product and in the product listing, there is an option to Import a product instead of Export, which is shown on the tenant listings.
- Export
- Clone the selected product to the set of default template products
- Import
- Clone the selected template product to the currently selected tenant. Any courses that the tenant does not have access to will be removed from the list of courses associated with the product, which is subsequently created in their set.