Moodle Akeneo PIM Connector: With the help of this module, you can connect your Moodle LMS (Learning platform or Course Management System) with the Akeneo PIM (Product Information Management) platform and manage content easily. You can push data from Akeneo into the Moodle admin. It works with simple products. Moodle Akeneo Connector also exports the Akeneo categories as course categories.
What is Moodle? – Moodle is an open source learning platform created to provide instructors, learners with a single powerful, secure, and personalized learning environment. Anyone can download the software on the web server and meet their needs.
Please Note – Moodle Akeneo Connector module is compatible with Community Edition, Enterprise Edition, and Cloud (PaaS/Flexibility) Edition of Akeneo.
- This module works with Akeneo 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x and 3.2.x. Download Akeneo from here
- Node and Yarn packages need to be installed.
- Also works with Akeneo Cloud Flexibility Mode which is a PAAS Edition of Akeneo
- Export categories from Akeneo to Moodle as Moodle categories
- Products Export from Akeneo to Moodle as courses.
- Export product images as course summary images.
- Filter data to be exported based on category, family, completeness, time conditions, Identifier (SKU).
- Export data on the base of language.
Check out the following video tutorials below:
How to create Moodle credentials?
How to do module configuration in Akeneo?
How to add courses from Akeneo to Moodle?
Setup Credentials In Moodle
Follow the below steps to create Moodle Credentials to be used in Akeneo
- Sign up in Moodle account and go to Dashboard.
- Create external services from your Moodle Admin Panel. Go to Site Administration > Plugins > Web Services > External Services > Add
- Generate a token from the Moodle Admin panel. Go to Site Administration > Plugins > Web Services > Manage Tokens > Add
- Enable Rest Protocol from the Moodle Admin Panel. Go to Site Administration > Plugins > Web Services > Manage Tokens > Manage Protocols
- Add needed function in the created external services. Go to Site Administration > Plugins > Web Services > External Services > Click on Functions in your service name
Add these functions to your customer services.
- Find Your External Service Token and domain name and put in the Moodle Akeneo connector.
- Now your connector is ready to use.
Please follow these steps for installing Moodle Akeneo Connector module in your Akeneo PIM platform.
- Unzip the respective extension zip and then merge “src” folder into akeneo project root directory.
- Goto app/AppKernel.php and add the following line in function registerProjectBundles()
- Goto app/config/routing.yml and add these lines at top of the file
- You have to navigate to Akeneo Installation Directory(Ex. cd /opt/bitnami/apps/akeneo/htdocs ). Run this command after ssh to your akeneo server by the terminal.
rm -rf ./var/cache/** && php bin/console pim:install:asset --env=prod && php bin/console assets:install web --symlink && yarn run webpack && php bin/console d:s:u --force
php bin/console moodle:batch:quick_export
- You have to restart your web server like Apache, Nginx. Run the command for Apache web server.
sudo service apache2 restart
If you are using php-fpm. Then you need to restart the php-fpm services.1sudo service php-fpm7.2 restart
Common Issues After Installation
It might happen that even after proper installation, upon opening your Akeneo admin dashboard, you see a loading screen. In that case, do check for the following solution:
- Webpack Installation: If you get the below error It means that web pack is not installed in your system. Run the following command
12npm install --save-prod webpacknpm install
- Module routing.yml is not configured properly. Re-check the routing.yml file as mentioned in the 3rd step of Module Installation
- Clear your browser cache.
SETUP CREDENTIAL IN AKENEO
After successfully installing the module in Akeneo, you need to set up the Moodle API credentials in Akeneo. Please log into Akeneo and follow Moodle Connector>Setup Credentials. In this, you need to enter the External Service Token and Domain name of your Moodle.
- External Service Token
- Domain name
Moodle Mapping Setting
In the Moodle Mapping Setting tab, you need to match the product fields between Moodle and Akeneo. You need to select the correct Akeneo attribute that matches to the Moodle product information.
- Full Name
- Course Start Date
- Course End Date
- number of weeks/topics
- The largest size of the file that can be uploaded into the course
- Report shown
- Available to Student
- Completion Notify
- Enable Completion
- Name of the Force Theme
Status mapping information remains the same on both ends. So if a product is disabled in Akeneo, it will be disabled in Moodle as well.
In the other mapping, we can manage attributes to be used as Image and File.
Locale Mapping Setting
A locale is a set of parameters that define the merchant language, country, and any special variant that the user wants to see. A merchant can set his locale accordingly.
- Akeneo Locale
- Moodle Locale Id
Creating a product in Akeneo
To create a product in Akeneo, go to navigate to Products and click Create button. Now, you need to choose product type – as Product or Product Model.
Product – Select this type for creating simple and virtual products.
Product Model – Select this type for creating a configurable product with variations.
Now enter the required SKU, choose a family, and click the Save button.
Product Family – A family is a set of attributes that will be the same for all products belonging to a family. The product family represents products type, imposes product information structure and defines the list of attributes for a product that it belongs.
Add Product Details
Now you need to provide information about the product. First, select the Channel and Locale and then enter the SKU and name.
For adding product information, select attribute options you require. You can also create new options for the attribute. Following Attributes from Akeneo are supported for export:
Click the upload picture section or use the drag and drop feature to add product image.
Add information to other languages and store views.
Add New Attribute Option
If an attribute option is missing for a select attribute type (simple or multi-select), you can directly add it to the Product Edit Form. Enter a Code and Label values, then click Save.
After entering all the product information, save your changes and go to Product Navigation and select Categories.
Moodle Export Job
Now to export your product data you need to create a job profile and execute it. First, go to Exports>Create Export Profile and enter a unique code, label and select a job profile.
Moodle Product Export: Exports everything (categories, course, export all) based on filters in a job. A product must have a category to be included in the export job.
Here you will find three different types of export job profiles for every use case:-
Moodle Export All – Exports everything (categories, course, export all) based on filters in a job. A product must have a category to be included in the export job.
Moodle Export Course – It Exports only the courses in a category. You can choose the course that you want to export to Moodle.
Moodle Export Category – It exports only the category. If you have more than one category then you can export each category. If you choose the parent category it will export all the category. You can use the filter to send a single category.
Filter The Data
Now go to the Content section and select the following options:
Channel – Each export job can only be linked to one channel, please select the relevant channel of products to
Locales – Select one or more Locales depending on your requirements.
Attributes – You can select which product attributes you want to export all or few of them. Click the Edit button to select the attributes.
Filter The Products
Now you need to decide which products to export on Moodle.
Select one or more product family to export to Moodle. If you want to export products belonging to specific families, click on the drop-down list and click on the families to add in the field.
You can also filter on the status of your products, three options available:
• All – to export all products whatever their status is
• Enabled (default option) – to only export enabled products
• Disabled – to only export disabled products
This enables you to filter on completeness of selected locales. Four options on completeness are proposed:
• No condition on completeness – all products will be exported whatever their completeness is.
• Complete on at least one selected locale (default option) – products must be complete on at least one locale
• Complete on all selected locales – products must be complete on all locales (if you have selected more than
• Not complete on all selected locales – products must not be complete on all locales (if you have selected
more than one locale).
You can now export your product within a specific time condition.
- No date condition (default option) – Products are not filtered using time condition.
- Updated products over the last n days (e.g. 6) – To filter the products that were updated during the last six days, enter 6 value.
- Updated products since this date – To filter the products that were updated during a specific date, select a date.
- Updated products since last export –
You can configure the categories of the channel tree you want to export. For example, you want to export the clothing products to update.
By default, all categories are exported. To select a category, click on the Edit button the categories of the channel tree are displayed.
You can make a selection of identifiers to export by adding them to the SKU field. You can copy and paste a list of identifiers, separated them by using comma, space or line breaks.
After that click Save button and follow the next step to execute this profile.
After creating the export profile, click on the Export Now button. The execution of the export process will begin, the page will refresh continually to update the information.
Wait for the execution process to complete and check the errors. After the completion of the export job, the products will appear in Moodle product list as courses.
Moodle Courses Category List
As you can see that the following courses category have been imported from Akeneo. The merchant can view the courses category in Moodle.
In the Moodle dashboard, your course is visible like this.
For any issues related to this module, please create a support ticket at- https://webkul.uvdesk.com/en/customer/create-ticket Also, for any pre-sales queries or customization discussion, please drop an email to email@example.com
Current Product Version - Product Version 1.1.2
Supported Framework Version - Moodle Shopping Akeneo connector version 2.0.x, 2.1.x, 2.2.x, 2.3.x, 3.0.x, 3.1.x and 3.2.x