Closed andrewlimaza closed 1 year ago
A customer (ticket 447249) is running into this:
We have had a renewal of a membership who’s child members have dropped off again (all of them). They paid by invoice yesterday and then all their child member orders were changed to inactive, then a new order can be seen with no discount code and their level set to None. Screenshot attached. What is even worse is we have an event for sale on the website with cheaper prices if you are logged in as a member and people are going on the site and their child membership is no longer live when it should be (their child membership orders are canceled again. Even though the parent member renewed with payment by invoice).
Moderators Only: #457617
Moderators Ony: #463233
Describe the bug Child discount codes will always expire, and not renew upon parent account renewal.
Code reference: https://github.com/strangerstudios/pmpro-sponsored-members/blob/dev/pmpro-sponsored-members.php#L243 (Removing this to let the code never expire should be okay)
To Reproduce Steps to reproduce the behavior:
Expected behavior Proposed change is to set the discount code to never expire when created at parent checkout, as there are checks on registration that the parent account is active.
Code reference: https://github.com/strangerstudios/pmpro-sponsored-members/blob/dev/pmpro-sponsored-members.php#L713-L747
Isolating the problem (mark completed items with an [x]):