pmpro-addon-packages
pmpro-addon-packages copied to clipboard
Bug: user with " Disable New Signups" level can not purchase Addon Package
When a site owner has "Disable New Signups" for a level, the user can not purchase Addon Package pages/post even when the box is checked to allow it.
Summary
Configuration
- Set your membership level option "Disable New Signups" and save your settings.
- Give your test WordPress account this level manually if you do not have it already.
Steps to replicate
- Set your post to require the single level, and set the Addon Package price to $1.
- View the post, and click the button to purchase the post.
- You will be redirected to the level select page and will have to checkout for a different level (in some cases there may be a fatal error - still investigating).
I highly recommend rather allowing Signups and restricting checkout with custom conditions instead using the pmpro_registration_check - https://www.paidmembershipspro.com/hook/pmpro_registration_checks/