Coupon

Maintained by Sebsoft BV, Rogier van Dongen
The Sebsoft Coupon Plugin offers you the possibility to create coupons for various levels of course access. Using a coupon code, users will be enrolled into courses that are attached to the coupon.
Price option: Free

Supports Moodle 3.0-5.2 See all versions
Latest release: 6 months ago
Installations: 631
Downloads (last 90 days): 131

Frankenstyle name: block_coupon
Blocks
Coupon Suite

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Hello, i have added COUPON, but when i click to edit template i get error 500 message. Thank you for help, Damian
Hi. I had an issue when upgrading to version 4.5.2. It seems Moodle requires min php version 8.1 but the plugin works on 8.0. Please advise. Thank you.
Sorry, I've forgotten to write some information:
Moodle version: 4.5
Php version : 8.2
Database : MariaDB 15.1
Apache: 2.4
OS: Debian 12 (bookworm)
Thanks
Hello! I've installed this plugin and I like it very much.
However, I think I've found a bug in "Templates" section. I would customize the coupon so I go in "Generate coupon" , "Templates" tab , I see a 500 Internal server error . I have enabled the debug mode and the exact error is "Fatal error: Class block_coupon\table\templates contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (core_table\dynamic::has_capability) in /var/www/html/moodle/blocks/coupon/classes/table/templates.php on line 47"
I'm not a developer so I don't know how to solve it.
Thanks in advance for any help!
Quick question. I want to sell coupons on woocommerce. The problem is that this plugin as well as the e-commerce plugin both can create coupons, but one of them would have to be able to upload them anonymously, so that I can create a coupon and sell it on woo, then bulk-upload the csv that I use on the ecommerce and uploade it to this plugin. Could I bulk create the coupons on woo and then in this plugin, then replace the coupons created by this plugin on database level through an SQL upload of the table from the commerce site, or is there a simpler solution that I am not seeing?
Where and how can I add an issue to this conversation? I looked in Moodle.org, but I am lost there.
Hello @Ayman,
I've taken an quick look and at the moment there is no placeholder to inject the course name.
I'll put it on the todo list for one of the next releases.
@Aziz, the coupon enrolment appearing as manual was a deliberate decision to make things easier in general. This way the plugin could have the least amount of code possible. I'll see what we can do for next release. At the moment there's not that much you cn do unless you can modify the database of your installation yourself.

Hi How to add a variable such as course name in a personalized template
Hi. This plugin conflicts with manual enrolment expiration notifications. This plugin enrolls the students with the manual enrolment method and Moodle doesn't notify the students who enrolled in the course via this plugin. I tried a self-enrolled student and he received the expiration notification. I also tried with another student who enrolled with "manual enrolment" in a different Moodle installation and it works. Moodle sends the expiration notification. Both of the versions are 3.11. Would you please help on that? Thank you.
Thanks for the next version build 20240102, which works for me. Happy new year!
When I try to install the new version, I get the error message: xmldb_type_integer field "bodyformat" has invalid length
There is another problem in the new version: When redeeming a coupon, this error message appears after entering the code:
Class "validator" not found.
Thank you for taking care of solving this problem.
Chris
Glad it worked!
Thank you again for addressing this one! With the holidays coming up this could have been a bit of a pain ;)
Cheers!
Thanks. Problem solved. This time, it works. I have Moodle 4.3.1+ installed.
Hello @Cristoph,
Thanks you for pointing this out, we're instantly rolling out a new release, could take some 10 minutes to appear here.
You should be able to upload this version over the other one. What strikes me is that my dev env (Moodle 4.2.3) did _not_ halt on this.
Cheers