strangerstudios / pmpro-group-accounts

Sell memberships to corporate organizations, families, teams, or any group of people where one member pays for a collection of people to access your content individually.
https://www.paidmembershipspro.com/add-ons/group-accounts/
0 stars 5 forks source link

Discount code causes issues with checkouts. #17

Open andrewlimaza opened 8 months ago

andrewlimaza commented 8 months ago

Setting a discount code while using the Group Accounts causes checkouts to not work due to it still requiring a fee/credit card information.

Steps to replicate:

Test this with Stripe onsite checkout.

  1. Create a membership level for the parent account that is $10/month.
  2. Set the Group Account pricing model to be a "per seat" for any amount $1/seat and fixed seats of 5.
  3. Save your level.
  4. Create a discount code that sets the parent level to be $0 entirely.
  5. Test checkout with the discount code in step 4, see that there was an error completing checkout as the price per seat is running in the background.

Note: This only happens for onsite gateways. Offsite gateways redirect to the hosted checkout page.

Screenshot 2024-01-09 at 10 36 55

dparker1005 commented 6 months ago

This PR can be used as a temporary workaround, though this is likely something that needs to be fixed in core PMPro. More info in PR: https://github.com/strangerstudios/pmpro-group-accounts/pull/25