I have two separate problems I was hoping someone could help me with here. My site is setup with amember/wordpress integration with several types of users, and all of that is working fine. However, there are two things that I am seeking help with: First, I want to enforce coupon code use for renewing a certain subscription on the member page. I already have this on the signup page, but I couldn't figure out where to place the coupon requirement on the member page. Second, I want to allow that same group of users the ability to buy coupon batches and be emailed the codes. They are going to hand these out for trial memberships. I have a page in wordpress protected for them but I haven't figured out a way to create these batches, let alone stick a payment system in between them. Any thoughts or suggestions would be helpful.
I have figured this out on my own over time. It involved create a separate coupon page for users and several other pages they could access. I also created a second function in the mysql page that would update the coupons to my new attributes. The last thing was creating a hook that ran whenever the user bought a specific product so the database would be updated with new codes and would display it to them.