You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a enhancement request based off of a conversation in #22.
In PMPro Gift Levels v1.0, we are beginning to save the gift code that is purchased into order meta; however, sites that were using PMPro Gift Levels before v1.0 do not currently have a way to add that metadata for old purchases. In order to find the order that was likely used to purchase a gift code, we would need to:
Get the start date of the gift code
Get the user associated with the gift code by looking through usermeta
Find an order for that user for the day after the gift code starts
The steps above can run into issues if multiple gift codes were purchased on the same day or if the start date of the code or the order date is changed. Perhaps a quicker solution would be to add a field to the "Edit Order" page for admins to manually link a gift code to the order, though this would not be sufficient for larger sites.
More thought would be needed to create a solid migration process.
The text was updated successfully, but these errors were encountered:
Do we think this is necessary at this point? We could still consider but as its 3 years later now I would think this is less of an issue to spend cycles on today.
This is a enhancement request based off of a conversation in #22.
In PMPro Gift Levels v1.0, we are beginning to save the gift code that is purchased into order meta; however, sites that were using PMPro Gift Levels before v1.0 do not currently have a way to add that metadata for old purchases. In order to find the order that was likely used to purchase a gift code, we would need to:
The steps above can run into issues if multiple gift codes were purchased on the same day or if the start date of the code or the order date is changed. Perhaps a quicker solution would be to add a field to the "Edit Order" page for admins to manually link a gift code to the order, though this would not be sufficient for larger sites.
More thought would be needed to create a solid migration process.
The text was updated successfully, but these errors were encountered: