strangerstudios / pmpro-addon-packages

Charge for access to specific pages or other post types in WordPress. Requires the Paid Memberships Pro plugin.
https://www.paidmembershipspro.com/add-ons/pmpro-purchase-access-to-a-single-page/
25 stars 29 forks source link

Bug: user with " Disable New Signups" level can not purchase Addon Package #54

Open kimwhite opened 2 years ago

kimwhite commented 2 years ago

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.

andrewlimaza commented 2 years ago

Summary

Configuration

Steps to replicate

  1. Set your post to require the single level, and set the Addon Package price to $1.
  2. View the post, and click the button to purchase the post.
  3. 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).
andrewlimaza commented 2 years ago

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/