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 Qasmaoui, a first draft of a manual we're working on to get you started can be found on our repository pages.
Please see the download section at https://bitbucket.org/sebsoft/moodle-block_coupon/downloads/
Hello , im .new to moodle , i just installed your plugin but i can't find a way to generate coupons! i searched everywhere but. no sign of it except the config section. but no way to start generating coupons for courses ? any helo with screebshots if possible !
Hi Rogier,
Thanks for your advice, this saved me some time to search this out myself. I've implemented your tip and the redirects works fine. Thanks again.
Franky
Hi Franky,
Unfortunately, no. The one way we've been able to implement this without enforcing Moodle core hacks, is by using custom scripts.
To configure, do the following:
modify your Moodle config.php and add a line "$CFG->customscripts = /path/to/customscripts/"
You will usually either out your customscripts either IN the moodle datadir, or just outside of the www-root, e.g.:
/yourhomedir/moodledata/customscripts
Now, add a folder called "login" so you end up with: /yourhomedir/moodledata/customscripts/login/
Finally, add a php file called signup.php, so you end up with: /yourhomedir/moodledata/customscripts/login/signup.php
The ONLY thing you need to do here is enter a redirect statement so you end up with the coupon signup url: <?php
// This script does nothing more than redirect to the coupon signup method.
redirect($CFG->wwwroot . '/blocks/coupon/view/signup.php');
exit;
and that's it. Using these 4 lines of code, you're now set up to use the custom signup smile
Of course this will all totally fail if your host does not provide you with direct access to your Moodle installation.
Let me know if you get this to work.
Good luck & cheers,
Rogier
In backend there is a field to change the Login URL, but it seems that there is surprisingly not a field to change the Signup url. This would mean that this has to be changed in the CFG-file?
Hi Sebastian,
yes, this is exactly what I mean. I've now only put the URL in, and then indeed a field couponcode is showing up at the top. I've not tested it yet further if this works correctly. Is there in the backend a field where you can fill in this specific URL instead of the URL of the normal registration page? I didn't find this field so far.
Hi Franky,
You mean like https://yourmoodle/blocks/coupon/view/signup.php? smile - (Do note, that to enforce this, you will have to use that page as signup page)
I'm wondering if this plugin could be extended to using it with making a new account? So when a non-registrated user has a couponcode, at the moment that he want to register on the site an extra field is shown for a couponcode, and after registration with a valid code the user is automatically placed in a site- and coursegroup.
Hi Stephane,
Please check the language files for the information that's displayed inside the Coupon smile.
Hello Rogier,
Can you tell me how to change the informations inside the coupon ? It seem that we can only change the image of the coupon, but what about the text ?
Thanks
Thank you so much, this plugin has worked perfectly and been such an asset! I'm wondering if you have given any consideration to making it so the plugin can be used to purchase coupon codes, so someone would be able to purchase lessons as gifts?
Hi, this looks like a great plugin. We have an online language school and we are looking at doing a trial class for students instead of enrolling onto a full course at full price. Do you think this plugin would work for offering 1 lesson? Otherwise I think I would need to enrol students manually onto the course.......
What am I missing? I installed this and was able to set up what I wanted in the general settings, but I can't figure out where I go to generate coupons?
Is there a way to have the start date begin when using the code, rather than when it is generated?
Please, how to make 20% discount in the course value, not 100%?