Giter Site home page Giter Site logo

rodripf / moowoodle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dualcube/moowoodle

0.0 1.0 0.0 964 KB

The MooWoodle plugin is an extention of WooCommerce that acts as a bridge between WordPress/Woocommerce and Moodle.

PHP 98.75% CSS 0.81% JavaScript 0.44%

moowoodle's Introduction

=== MooWoodle ===
Contributors: Dualcube
Tags: Wordpress, Moodle, WooCommerce, Wordpress-Moodle, WooCommerce-Moodle
Donate link: https://dualcube.com
Requires at least: 4.1.1
Tested up to: 4.2.2
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

The MooWoodle plugin is an extention of WooCommerce that acts as a bridge between WordPress/Woocommerce and Moodle.

== Description ==
The MooWoodle plugin is an extention of WooCommerce that acts as a bridge between WordPress/Woocommerce and Moodle. It fetches all the courses from your Moodle instance and makes them available for sale, which may be bought by users through WooCommerce. It reduces your effort by synchronising your LMS site with your online store. And when someone purchases a course from the store he/she is automatically gets registered for the course in the LMS site. More over this plugin works with WooCommerce subscription plugin too.

== Installation ==
NOTE: Woo-Moodle bridge plugin is a extention of WooCommerce, so the WooCommerce plugin must be installed and activated in your WordPress site for this plugin to work properly.

WP site setup:
STEPS :
1. Download and install MooWoodle plugin using the built-in WordPress plugin installer.
If you download Woo-Moodle bridge plugin manually, make sure it is uploaded to `/wp-content/plugins/ MooWoodle /`. Or follow the steps below:
Plugins > Add new > Upload plugin > Upload MooWoodle.zip > Install Now.

2. Activate the plugin through the \'Plugins\' menu in WordPress.

3. To set up the plugin: Synchronise > Settings > Fill up `Access URL` (site url of your moodle site) and `Webservice Token` (generated from your moodle site; a more detailed guide is given below).

4. Check `Create Products From Courses` checkbox if you want to create product from courses during course sync; otherwise leave it unchecked. In that case the courses will be saved in wordpress site and you can manually add products for courses later.

5. Check `Update user info with order info` checkbox to update user info with new order info.

6. By default, the users will be enrolled in the course with student role. If you want to assign any custom role to the user you have to enter the role id in the `Moodle user role id in a course.

Moodle site set up:
STEPS:
Create and setup webservice:
1. Administration > Site administration > Advanced features > Enable webservice > Save changes.

2. Administration > Site administration > Plugins > Manage protocols > Enable `XML-RPC protocol`.

3. Administration > Site administration > Plugins > External services > Add > Give a `Name` and chack `Enabled` > Add service > Add functions > Add the following functions to your webservice:
	i. core_user_create_users: Create users
	ii. core_user_get_users_by_field
	iii. core_user_update_users
	iv. core_course_get_courses: Return course details
	v. core_course_get_categories: Return category details
	vi. enrol_manual_enrol_users: Manual enrol users

4. Administration > Site administration > Plugins > Manage tokens > Add > Select user (Admin) from users\' list > Select your service form services\' list > Save changes.

Disable password policy:
The password policy settings needed to be disabled since the user password will be generated in WordPress end and will not match the password policy of Moodle. The steps to disable password policy are given below.

1. Administration > Site administration > Security > Site policies > Uncheck `Password policy` > Do not forget to save changes.

== Frequently Asked Questions ==
1. Does this plugin work with newest WP version and also older versions?
Yes, this plugin works really fine with WordPress 4.2.2! It is also compatible for older WordPress versions upto 4.1.1.
2. Up to which version of WooCommerce this plugin compatible with?
This plugin is compatible with the latest version of WooCommerce, that is, Version 2.2.1.
3.  Does this plugin work with WooCommerce Subscription?
Yes, it works with WooCommerce Subscription.

== Screenshots ==
1. Fill up `Access URL`, `Webservice token` and other settings fields.
2. Select `Yes` and click on `Synchronise` to sync courses and course categories from your moodle site.
3. In advanced features check `Enable web service` check box and save changes to enable web service for your moodle site.

== Changelog ==
1.0.0

== Upgrade Notice ==
1.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.