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.

This plugin has now been updated for some critical issues. Please update your plugin asap! The former release had a major showstopper because the file containing the event has seemingly disappeared from the codebase. Cheers!
Thank you, we've triied reproducing it, but could not reproduce this specific error. Although I have actually seen moodle "loose" parameters every now and then.
We've fixed a few other issues though, and the new version is available. This is a pretty major fix, since an even seemingly disappeared completely from the codebase.
Could you please update and try again?
Tried plugin works only generate coupons. Generation cohort is not working. When you enter the coupon gives an error message "Missing required parameter (id)".I tried on Moodle 2.9.1. And so it is the right plugin, thank you! I hope you fix it.
@David: Thanks for making this public.
For all those reading this, the issue with the memory exhausting is descrbied in the updated README.txt in the plugin archive. We're working on the documentation on our wiki so that should be available soon. The memory issue has been examined and our conclusion is, it was a reuslt of Alpha channel information in the template image. Removing all alpha channel information from a PNG not only resulted in elimination of memory exhaustion, but also in rendering times speeding up by a factor of about 10.
Stay in touch for updates smile

Thanks guys for updates. Did not have a chance to examine details much but it looks good and save to be approved now. You are cleared to land, welcome to the Plugins directory!

Hi. Thanks for sharing this plugin with the community. I really like the idea and I know it will be very useful for certain types of Moodle users. Well done on that.

While testing the functionality, I am constantly receiving a fatal error Allowed memory size of 134217728 bytes exhausted (tried to allocate 7440 bytes) in lib/tcpdf/tcpdf.php on line 7304. Have you run into that, too?

What is not clear to me is where the instance of the block should actually be created. Site front page? The course page? Related to this is that

  • your applicable_formats() method has some unclear declarations. Why is the dashboard (my) page allowed? Why is mod-quiz and course-view-social explicitly allowed?
  • your db/access.php declares the context of the capabilities as CONTEXT_SYSTEM. Are you sure? Should not that be CONTEXT_BLOCK?

We would really need to understand the expected behaviour / usage more to continue with the review. Thanks in advance for an update.