Open kimwhite opened 3 years ago
The workaround here would be to ensure that the AP level that is assigned doesn't require approval for another level:
You may use the pmproap_text_level_id
filter to adjust the default level for Addon Packages. Make sure that the post/thing you're buying has this level.
Do not set this level to require approval for another level to checkout but rather "Approval by Admin".
I think a gist for this "issue" would be better as I can imagine not everyone would want to bypass approvals by default and would be more than happy to require approval. You may use the pmpro_approvals_level_restrict_checkout
filter and set this to false if the $_REQUEST['AP'] isn't empty.
Describe the bug The site requires Approval of the First Level before signing up for paying levels. After approval, member signs up for the Second Level. Now that user is a member of Second Level user can not purchase Addon Packages (that should be accessible to their level)
To Reproduce Steps to reproduce the behavior:
Screenshots
Expected behavior Approved Member of one level, then purchases the second level (which requires first level approval) Members of the second level should be able to purchase Addon Package.
Isolating the problem (mark completed items with an [x]):
WordPress Environment