Wallet Enrolment (coupons, payments and all needed restrictions)

Enrolment ::: enrol_wallet
Maintained by Mohammad Farouk
ALL IN ONE ENROLMENT PLUGIN. This enrollment method allow users to enrol themselves into courses using wallet credit. (manual charging wallet, charging by payment, coupons, discounts, cashback, awards, referrals, woocommerce connection, other course enrol restrictions, cohort restrictions, use availability condition plugins for restrictions and more). It simply provide your moodle site with ecommerce solution to sell courses and control the price.

Wallet Enrolment (coupons, payments and all needed restrictions) 5.4.6

Moodle 3.9, 3.10, 3.11, 4.0, 4.1, 4.2, 4.3, 4.4
Released: Sunday, 7 July 2024, 4:20 AM

# Wallet Enrollment for Moodle #

V 5.4.6

  • Fix discount line bug when no discount available.

V 5.4.5

  • Add more to operation logging.
  • Fix logic in completion award.

V 5.4.1

  • Fix balance operation bug.

V 5.4.0

  • increase precisions of data fields holding amounts.
  • Improve the UI of the referrals page (thanks to Davor Budimir)
  • Fix bug in referral page that always redirect users.

V 5.3.2

  • Adding main page for wallet (when the user click my wallet).
  • Add bundles for quick top up with conditional discounts
  • Fix conditional discount precision.
  • Bug fixes.

V 5.2.0

  • Add a page to display offers.
  • Display conditional discounts available to users in the top up form.
  • Bug fixes.

V 5.1.0

  • Add offers system.
  • Add discount badge.
  • Bug fixes.

V 5.0.0

  • Overall code improvement.
  • Add a category based wallet.
  • Enhance all operations and coupon validation.
  • using caches to store balance data to avoid multiple requests.
  • Add enrol page view event.
  • using ajax to view any user wallet balance from charger form.
  • Fix negative balance bug.

V 4.5.0

  • Add option to display users with capabilities to credit other users wallets in topping up option, this is helpful in case no payment account exists.
  • Fix: In case of no topping up options available, nothing will be displayed even the policy.

V 4.4.0

  • Fix exception thrown when add another instance.
  • Confirmation page before purchase the course.
  • Fix wrong enrollments due to multiple instances.

V 4.3.0

  • Fix exception thrown when no availability specified or disabled.
  • Add Lang strings instead of hard coded strings in the charging process.
  • Add confirmation step for charging process.
  • Add an option to allow negative deduction in charging form.
  • Fix and enhance the validation process of charger form.

V 4.2.0

  • Add an option to migrate credits, users enrollments and enrol instances from enrol_credit.

V 4.1.0

  • Add a new future (Availability Restrictions). Now you can use availability condition plugin to restrict enrollments in courses as you wish.
  • Some fixes.

V 4.0.10

  • Fix generation of enrol coupons null value bug.
  • Fix privacy provider class.

V 4.0.9

  • Fix non existence class bug in moodle 3.9
  • Update Privacy provider class and add get_meta_data() function.
  • Fix minor bugs.

V 4.0.5

  • Add missing capability check for generating coupons page.
  • Use curl class instate of curl_init() when requesting data from wordpress.
  • Some lang string fixes.

V 4.0.0

  • Many fixes.
  • Improve the validation of forms.
  • Add new types of coupons.
  • Add coupons usage page.
  • Add repurchase option.
  • Improve filtrations of transaction table and coupons tables.
  • After creating coupons, redirect to coupons table with only the newly created coupons displayed.

V 3.1.0

  • Add Referral program.
  • Fix some bugs.
  • Fix typo.

V 2.5.0

  • Display a warning in case of low balance.
  • Add multiple rules for conditional discount.
  • Fix bugs.

V 2.0.0

  • Add option to display a notice for low balance.
  • Enhance user creation in wordpress.
  • Fix minor bugs.

V 1.8.2

  • Fix the the table name in get_record().
  • Fix the functionality of the function get_unenrolself_link().
  • Add tests for get_unenrolself_link() and unenrol_user() to make sure refunding is working well.

V 1.8.1

  • Some fixes.
  • Apply coupons now compatible with availability_wallet.

V 1.8.0

  • Add more useful links to homepage navigation.
  • Adding the ability to transfer credit to other users.
  • Adding option to enable or disable self unenrol with conditions.
  • Adding option to refund users upon unenrol.

V 1.7.0

  • Add ability for editing coupons.
  • Hide cheaper instances or non available enrol wallet instance in the same course.
  • Fix and test logging in and out to wordpress.
  • Bug fixes and enhancement.

V 1.6.7

  • Fix and enhance coupons and transaction pages.

V 1.6.6

  • Rebuilt the restrictions according to other course enrolment so that to check minimum number from multiple selected courses to check.
  • Hide instance in case of existence of a cheaper one in the same course.

V 1.6.5

  • Fix the functionality of logging in and logging out from wordpress website.
  • Fix bug in bulkedit page

V 1.6.4

  • Adding some translatable language strings.
  • some code improvement.

V 1.6.3

  • Some code improvement
  • Enable plugin upon installation

V 1.6.2

  • Add automate PHPUnit test for external service.
  • Add cost to external services info.
  • Wallet balance now displayed in users profiles.
  • Fix task to automatically convert balance to nonrefundable after grace period is over.

V 1.6.1

  • Enhance the calculation of conditional discount.
  • Slight improvements.

V 1.6

  • Enhance the security during connection with wordpress website.
  • Add conditional discounts rules
  • Add refunding policy and expiry date
  • Add the ability to login or out from wordpress when the user logged in or out from moodle
  • Add events for transaction, awards, gifts, using coupons and cashback.

V 1.5.1

  • Implant payment privacy API.
  • Prevent generation or use of percent discount coupons with value grater that 100.
  • Fix course discounted cost with negative value.

V 1.5

  • Adding PHPUnit tests for the major functions.
  • Fixing a payment service provider bug.

V 1.4

  • Migrate function to different classes.
  • Fix observer class.
  • Make moodle source a default setting.
  • Adding filtration for to transactions page.
  • Fix issues with applying coupons.

V 1.3

  • Adding discount coupons.
  • Adding page for bulk editing users enrollments.
  • Adding page for bulk editing wallet enrolment instances.
  • Adding page to charge user with another user with capability.

Version information

Version build number
2024070600
Version release name
5.4.6
Maturity
Stable version
MD5 Sum
8377efb02603b4165d60da9772228912
Supported software
Moodle 3.9, Moodle 3.10, Moodle 3.11, Moodle 4.0, Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v5.4.6

Default installation instructions for plugins of the type Enrolment

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myenrol") in the "enrol" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation