strangerstudios / pmpro-sponsored-members

Generate a discount code for a main account holder to distribute to sponsored members.
https://www.paidmembershipspro.com/add-ons/pmpro-sponsored-members/
15 stars 27 forks source link

When creating Child Account at checkout, the billing amount shows the level price. #134

Open kimwhite opened 1 year ago

kimwhite commented 1 year ago

Describe the bug When a Sponsor Member creates the child account at checkout, the Members Account page is showing the LEVEL price of the level they are getting (though the invoice says 0).

The billing column of the Payment page should show 0 or Free.

To Reproduce Steps to reproduce the behavior:

  1. Create a Sponsor Account
  2. In the sponsor code, include 'sponsored_accounts_at_checkout' => true,
  3. Checkout out.
  4. Login in as the newly created child user, and you see a price under billing.

Screenshots

Screenshot 2023-07-13 at 1 31 45 PM

Expected behavior When a child account is created and paid for by the sponsor, the Billing column should show no price or a message; this is a sponsored account.

Isolating the problem (mark completed items with an [x]):

WordPress Environment

``` WordPress 6.2.2 PMPro 2.11.2 Sponsored Members 0.10.1 ```