Here is a tiny module that is s till in alpha stage so please test and use with care.
You want to offer virtual gift vouchers to your customers? OK then!
Virtual Vouchers Generator
How to use this module:
1. Create your voucher products - set those as Virtual so they don't incur delivery if ordered alone. The value of those products will be picked as voucher value. If multiple products are ordered at once the value will be combined into one voucher.
2. Specify the Product IDs for those products in Virtual Voucher Product IDs.
3. Specify the proper statuses when the virtual voucher order is considered paid in Paid Order States (IDs).
4. Configure the rest of the options to your liking.
5. Copy the cron URL and run it at proper intervals (recommended 5-10 mins).
Configuration page:
Email sent after order validated as paid:
Check voucher page (in Niara - adjust module css to your liking!):
As I'm still learning, so please keep in mind this module could (and most probably will) have some bugs. And still the lookback logic for validating the orders is not so cleared out. If in future somebody want to take over development would be more than happy.
Changelog:
0.5.0 alpha - initial release
0.6.0 alpha - new email template, Bulgarian email language.
0.7.0 alpha - option to limit the voucher country based on where it was ordered (from invoice address), email tweaks and fixes, new logo with attribution.
0.7.1 alpha - introduction of 'Check voucher' page where the customer can see how much funds are left into their multi-use voucher. Integrated with thirty bees' reCAPTCHA module (if it's installed, enabled and configured the recaptcha will be shown here too) - the customer has to enter the validity date of the voucher as a safety measure. The page's friendly URL should be configured in SEO & URLs (or if you don't use SEO urls access from here /index.php?fc=module&module=tbvirtualvouchers&controller=vouchercheck) :
To do:
further voucher settings
add T&C section to configuration so those are attached to the email.
pass conditional information to email for country restriction (if available).
introduce changelog in the module.
tbvirtualvouchers-0.5.0.zip
tbvirtualvouchers-0.6.0.zip
tbvirtualvouchers-0.7.0.zip
tbvirtualvouchers-0.7.1.zip