MooWoodle Set Up Guide

Brief Introduction #

Educate the world and sell courses online with our easy to use MooWoodle Plugin. The responsive plugin is an extension of WooCommerce that acts as a bridge connecting Moodle and WordPress. This means, that MooWoodle lets you sell courses created in your moodle account on your WordPress page.  

Requirements  #

PHP is version 7.2 or greater (compatible with the latest PHP 8.2 too)

WordPress 6.0 or greater 

WooCommerce 

MooWoodle Version 3.0

MooWoodle (WordPress plugin)

Configure Moodle  #

You have to configure your Moodle account to use MooWoodle. Making changes to your Moodle account will make it easier for Moodle to exchange data with WordPress. Once the data exchange process is complete, you will be able to view your Moodle courses on your WordPress Page. Thus making it easier to sell.

Enable Web Service  #

As mentioned previously in this document, the configuration of Moodle is required to exchange data with WordPress. By enabling the web service you can now add functions that will allow Moodle to communicate with WordPress.

Since Moodle has Web Services disabled by default, we will have to enable it. The steps to enable Moodle Web Service are – 

  • Go to the Moodle Dashboard and then navigate to Site Administration.
  • On the Site Administration page present in the Development Section is the Advanced Features option. Click on the advanced features option
  • As the Advanced Features page loads, scroll down and tick the Web Service option.
  • Save your changes and proceed to External Services Settings. 
Reference 6: Enable Web Service

External Service Setting  #

Configuration of the External service means adding functions to Moodle that make open the communication channels to WordPress. This will make it easier for you to transfer course data.

Add External Service  #

To start the configuration of the external service let us take a look at the steps given below – 

  • Go to the Site Administration option of your Moodle Dashboard. Once there select the Server Tab
  • Scroll down the Server Tab and select External Services found beside the Web Service section. 
  • Once you have selected the External service option you will be directed to the External Service Page. On the External service page, go to the Custom Services section.
  • To add an external service select the Add button available under Custom Services section. Once you have selected the Add button you will be asked to provide a name for the service. Name your service as ‘MooWoodle” for convenience and select  Add Service
  • After you added the Service add the Functions. To do this simply return to the external service page click the Function button of your MooWoodle Service. You will notice you are being directed to the Functions page.
  • On the Function page, select the add option and copy-paste the codes given below – 
Sl.No.CodesFunctions
1core_user_create_usersThis code will help in creating users
2core_user_get_usersUsing this code the client can search for users meeting the parameters
3core_user_update_usersWith the help of this code, the client can update his/her users
4core_course_get_coursesClients can get courses by adding this course 
5core_course_get_categoriesCourse categories will be available once this code is added
6enrol_manual_enrol_userThis code is required to enrol new users.
  • Once all Functions are added return to the Site administration page. 

  Reference 7: Add External Service

Manage Protocol #

Managing Protocols links one website to another. In this case, we just need to enable the REST protocol. Requirements for easily completing this process is given below.

To enable REST protocol 

  • Go to Site Administration and then navigate to the Server tab.
  • Under the Server tab, you will find the Web Services option. Select Manage Protocols from the List of Web Services.
  • On the Manage Protocols page, click on the eye icon. Once selected, the REST protocol will be activated.
Reference 8: Manage Protocols

Access Token #

We are sure you remember how we promised to teach you how to generate the Access Token Required for your MooWoodle Settings. To do so all you have to do is – 

  • Go to Site Administration and then navigate to the Server tab.
  • Under the Server tab, you will find the Web Services option. From the list of web services select the Manage Tokens option. 
  • On the Manage Tokens page select Create Token. Once selected you will be directed to the Create Token page.
  • In the Create Token Page add the following option –
    • User – This refers to the person managing the Moodle. In this case, selected Admin user. 
    • Service – the service implies the external service added by you. In our case, it is the MooWoodle we had added previously. 
    • IP restriction – You can add an IP restriction if required or leave it blank. It is not mandatory and you can happily skip this option.
    • Valid Date – Enable and add the Date till which your courses would be available. In case you plan to make it available at all times skip this option. 
  • Once all required information is added select Save changes. After you have saved your changes you will be re-directed to the Manage Tokens page. 
  • In the Manage Tokens Page, the Token Code will be displayed. Copy this code and paste it to your MooWoodle Setting available on WordPress. 
Reference 9: Generate Access Token

Manage Mobile Settings  #

To give access to mobile users intending to purchase your courses, to will have to configure the mobile setting. This setting is easy to configure and will hardly take five seconds. 

To enable web services for mobile devices on the Moodle site, you have to –

  • Go to the Moodle Dashboard and select the Site administration option.
  • Once the Site Administration option is selected, go to the Mobile app section and select Mobile Settings 
  • Select Save Changes to complete the settings.
Reference 10: Mobile Settings

MooWoodle Setup  #

Installation of the MooWoodle extension in your Moodle account will help open the ‘gateway’ through which WordPress Can interact with Moodle. This is required to ensure that your Moodle account receives information about candidates purchasing your courses while they (candidates) receive information on courses available in Moodle. 

The MooWoodle Plugin is extremely easy to install and easy to activate. And to make this better there is no one way to install it. Given below are the two ways in which you can install the MooWoodle plugin. 

Download MooWoodle #

  • Download the plugin from the WordPress site https://downloads.wordpress.org/plugin/moowoodle.3.0.4.zip
  • Open your WordPress Dashboard and navigate to the Plugin menu option. From the Plugin menu list, select Add New sub-menu option. 
  • Once the Add New page Loads select the Upload option found on the top, near the Add New heading
  • Copy and paste the MooWoodle file downloaded from the WordPress site
  • Once installed select Activate to get started instantly 

Reference 1: Configure Connection Settings

User Information Settings  #

The user information setting helps you update the information of any new user purchasing your courses. So, information on new candidates would be available on your moodle account as soon as he/she signs in. The following steps are how you can accomplish this – 

  • Go to the Settings option available on the MooWoodle menu list and wait for the settings page to load.
  • On the Settings page, scroll down to the user information settings section
  • Once there, simply toggle the Overwrite Moodle User Data By WordPress Data option
  • After you have completed this step save this setting by selecting the  Save All Changes option.  
Reference 2: Toggle User Settings

Display Tab #

The configuration of the Display tab lets you decide about what and where your wish to present your courses. These details make it easier for your learners to know more about your courses. 

  • Go to the MooWoodle option available on the WordPress dashboard. From the list of MooWoodle options select the Settings option.
  • Once the Settings page appears, navigate to the Display Tab
  • Here you can decide to display the beginning time and date of courses by toggling the Display start date and end date in the shop page option. 
  • In the next section, you will find the My Courses Menu Position option.  This option lets you determine the position in which you want your courses to be displayed. 
  • You can save the following settings by simply clicking on the Save All Changes button.
Reference 3: Decide Display Option

Sync Moodle with WordPress #

As discussed MooWoodle is the bridge that connects Moodle to WordPress and WooCommerce. One of the prime tasks of this bridge is to synchronize your Moodle data with that of WordPress. This way you can don’t have to worry about transferring data back and forth. 

To synchronize your Moodle courses with WordPress, you must – 

  • Go to the WordPress dashboard and then navigate to the MooWoodle option. From the list of MooWoodle options, select the Synchronization option.
  • Once the Synchronization page appears you can manage the following settings –
    • Synchronize Courses – Enabling this option will let your moodle courses synchronise with that of WordPress. This way students purchasing your courses from the WordPress site can have access to data present in Moodle
    • Synchronize Course Categories – Similar to the previous settings, enabling this option will let you synchronize your moodle course categories with that of WordPress. So, if you are selling more than one course of two different categories that too would available to your users.
  • Automatically Creates Products From Courses – To convert your Moodle courses into WooCommerce ‘products’ you need to toggle this option. 
  • Once all required settings are completed, you can select the Sync Now button. 

Reference 4: Toggle to Synchronize

Create a Moodle Course Product  #

To create a course that can be sold on your website, you must follow the given method- 

  • Go to the Product Menu option available on your WordPress Dashboard. Once the Product option is selected, you can click on the All Product sub-menu option
  • On the All Product page, navigate to the course you wish to sell. Hover your cursor over the course of your choice and select the edit option after it appears. After you select the edit option will be transported to the Course page. 
  • Once the Course page appears, you can edit the price by dragging your mouse over the data meta box.
  • Scroll below, and you will see the Course Id field. As your WordPress is synced with Moodle, Courses created by you will appear as options. Select the required course. 
  • Once all changes have been made you can select the Update button and sell your courses. 

Note: Make sure the Automatically Creates Products From Courses option is enabled or else you will be unable to edit and add a price for your courses. 

Reference 5: Create Courses

WorkFlow  #

With this, we come to the end of our tutorial. We hope this tutorial will help you sell and educate people willing to learn your expertise. 

Powered by BetterDocs