Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation email not showing correct prices when discount code applied #76

Open
dparker1005 opened this issue May 4, 2020 · 0 comments

Comments

@dparker1005
Copy link
Member

Steps to replicate this issue:

  1. Activate MMPU
  2. Create a discount code for paid level that has different initial payment amount
  3. Check out using discount code
  4. Verify that original initial payment is shown in the confirmation email

Here is where that price is being generated:

$pmproemail->data['membership_cost'] = pmpro_getLevelsCost($levels);

The issue is that the $levels array is created by using level_ids, not the actual membership user data created at checkout. We should be querying the pmpro_memberships_users table via pmpro_getMembershipLevelsForUser() to get the actual amounts paid. Note: Also need to only count memberships which were purchased during that particular checkout.

Support Ticket (admins only): https://www.paidmembershipspro.com/forums/topic/checkout-paid-email-template-contains-inaccurate-info/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant