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.
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
Moodle version: 4.5
Php version : 8.2
Database : MariaDB 15.1
Apache: 2.4
OS: Debian 12 (bookworm)
Thanks
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!
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
Class "validator" not found.
Thank you for taking care of solving this problem.
Chris
Thank you again for addressing this one! With the holidays coming up this could have been a bit of a pain ;)
Cheers!
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