Buying Membership for Someone Else
-
My clients want users (members and non-members) to be able to buy memberships for others as gifts. I dug around in the ipnhandler service, the memberorder class, and the template and preheader for the checkout page, and it looks like PMPro just assumes that the user is buying the membership for themselves.
I thought it would be fairly easy to override this behavior with my own plugin, customizing the form and doing some post-processing in the
pmpro_after_checkout
hook, but after working on it for a while I’m not so sure. It looks like PMPro defaults to using data about the current user, and then it logs you into the new account after checkout.Is buying memberships for others do-able? Would it be easier (or more reliable,) to just make members log out before buying a membership for someone else?
- The topic ‘Buying Membership for Someone Else’ is closed to new replies.