Custom functionality to enable vouchers for use with subscriptions
Version 1.2.0b1:
- Change: voucher plans are hidden and refused through the new jrSubscribe "subscription_plan_allowed" event (requires Subscriptions 2.0.0b1) instead of rewriting every jrSubscribe search; a plan is voucher only while it has a currently valid voucher
- Change: a full voucher (Maximum Signups reached) is no longer valid - its plan is shown to everyone again and code holders lose the voucher plan
- Change: a voucher is valid until the end of its end date (it stopped at 00:00 of that day)
- Change: the one-time redirect to the plans page after entering a code only happens while the code is valid
- Change: deleting a voucher deletes its signup rows
- Bug Fix: with "Visible Plan" set, the ACP plan lists (voucher create / update form, jrSubscribe create subscription, Global Config) showed only that plan, and saving a voucher changed its plan to it
- Bug Fix: a user whose voucher had expired or been switched off still saw (and could start) the voucher's plan
- Bug Fix: Maximum Signups was not enforced - every user who entered the code before the limit was counted got the voucher
- Bug Fix: a voucher signup was recorded for subscriptions with a switched off or expired voucher, and for any plan
- Bug Fix: a second subscription by the same profile ended the request with a database error
- Bug Fix: the Voucher Browser had no pager - vouchers after the first page could not be reached
- Bug Fix: new or changed vouchers and signup counts showed in the Voucher Browser only after the cache expired (up to 5 minutes)
- Bug Fix: PHP warnings on the voucher, plan and Voucher Signups pages
- Bug Fix: the Voucher Signups page highlighted the Voucher Browser tab
Version 1.1.0:
- New: Config field added to select specific plan to show to users
Version 1.0.0:
- Initial Release