Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 46 additions & 4 deletions public/plugin/BuyCourses/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
v7.4 - 2022-04-28
====
Add subscriptions support.

If the plugin has already been installed, the update.php script must be executed (load plugin/BuyCourses/update.php in your browser) to update the database structure by adding the plugin_buycourses_subscription, plugin_buycourses_subscription_rel_sale, plugin_buycourses_subscription_period and plugin_buycourses_coupon_rel_subscription_sale.

v7.3 - 2022-04-28
====
Add Cecabank payments support.

If the plugin has already been installed, the update.php script must be executed (load plugin/BuyCourses/update.php in your browser) to update the structure of the tables in the database.

v7.2 - 2021-11-22
====
Add Stripe payments support.

If the plugin has already been installed, the update.php script must be executed (load plugin/BuyCourses/update.php in your browser) to update the structure of the tables in the database.

v7.1 - 2021-10-26
====
Fix install issue with DB field type.

v7.0 - 2021-08-12
====
Added support for discount coupons.
Added a better table view for the sales report.
Multiple fixes to navigation-related issues.

WARNING: Updating this plugin (or Chamilo) without going through the specific update procedure for this plugin will break your sales pages.

The file [your-host]/plugin/BuyCourses/update.php *MUST* be executed to update the structure of the tables
in the database.

v6.0 - 2020-11-29
====
Added support for purchase instructions e-mail customization (although this
does not support multiple languages at the moment).
This requires changes to the DB tables:
```sql
ALTER TABLE plugin_buycourses_global_config ADD COLUMN info_email_extra TEXT;
```

v5.0 - 2019-02-06
====

Expand All @@ -11,12 +53,12 @@ The file update.php must be executed to update the structure of the tables
v4.0 - 2017-04-25
====

This version includes the Culqi payment gateway and introduces an additional
option to show the Buy Courses tab to anonymous users.
This version includes the Culqi payment gateway v1.0 (now expired) and introduces
an additional option to show the Buy Courses tab to anonymous users.

To enable these features, if you have already installed this plugin on your
portal prior to this version, you will need to add the corresponding configuration
to your access_url_rel_plugin table. No documentation is available at this time on
portal prior to this version, you will need to add the corresponding settings
to your settings_current table. No documentation is available at this time on
how to do that, so please check up the code. Sorry about that.


Expand Down
38 changes: 31 additions & 7 deletions public/plugin/BuyCourses/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,37 @@
Buy Courses plugin for Chamilo LMS
=======================================
Users can access the purchases catalog to buy courses or sessions (since v2 of this plugin)
enabled for sale.
Buy Courses (course sales) plugin
=================================
This plugin transforms your Chamilo installation in an online shop by adding a catalogue
of courses and sessions that you have previously configured for sales.

If the user is not registered or logged in, he/she will be requested to register/login
before he/she can resume buying items.

Once the course or session is chosen, shows available payment types (currently only PayPal works)
Do not enable this plugin in any "Region". This is a known issue, but it works without
region assignation.

Once the course or session is chosen, the plugin displays the available payment methods
and lets the user proceed with the purchase.
Currently, the plugin allows users to pay through:
- PayPal (requires a merchant account on PayPal at configuration time)
- Bank payments (requires manual confirmation of payments' reception)
- RedSys payments (Spanish payment gateway) (requires the download of an external file)
- Stripe payments (requieres a merchant account oin Stripe at configuration time)
- Cecabank payments (Spanish payment gateway)

The user receives an e-mail confirming the purchase and she/he can immediately
access to the course or session.

We recommend using sessions as this gives you more time-related availability options
(in the session configuration).

Updates
=========

You must load the update.php script for installations that were in
production before updating the code, as it will update the database structure to
enable new features.

Please note that updating Chamilo does *NOT* automatically update the plugins
structure.

Finally, the user receives an e-mail confirming the purchase and him/her is can access to the
course/session.
You can find a history of changes in the [CHANGELOG.md file](../../plugin/BuyCourses/CHANGELOG.md)
2 changes: 2 additions & 0 deletions public/plugin/BuyCourses/admin.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php

declare(strict_types=1);
// Redirect to BuyCourses/index.php
header('location: index.php');
2 changes: 2 additions & 0 deletions public/plugin/BuyCourses/config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/* For licensing terms, see /license.txt */

require_once __DIR__.'/../../main/inc/global.inc.php';
Loading
Loading