How can I include in the query for example the coupon used in the purchase?
-
Hello how can I make a query in the database to also show the user purchase by association?
I see the table with data, I get the querySELECT users.*, members.membership_id, level.name FROM wp_users AS users JOIN wp_pmpro_memberships_users AS members ON users.ID = members.user_id JOIN wp_pmpro_membership_levels AS level ON members.membership_id = level.id WHERE members.status = 'active'
How can I include in the query for example the coupon used in the purchase?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How can I include in the query for example the coupon used in the purchase?’ is closed to new replies.