Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkbox Still Available for Discounted Level #7

Open
ideadude opened this issue Aug 20, 2018 · 1 comment
Open

Checkbox Still Available for Discounted Level #7

ideadude opened this issue Aug 20, 2018 · 1 comment

Comments

@ideadude
Copy link
Member

After entering a discount code that makes the level free, the auto renewal checkbox is still visible.

This happened with a sponsored-member discount code.

@dparker1005
Copy link
Member

Wrote up this Gist quickly that should remove the checkbox for all levels when a discount code is entered, but needs testing to ensure it acts correctly with paid levels (meaning it completely deactivates the auto-renewal checkbox functionality for the payment plan designated by the discount code). If giving out discount codes for free memberships, though, this should work:
https://gist.github.com/dparker1005/b7bd4ff05e606d2ef7ee8d04ada430d1

After testing, this should be a quick PR into the main plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants