I need to make a basic affiliate function for a Magento site and am wondering if a module is the best way to go or if someone has a better suggestion. There are only two things that need to happen:
- A session variable is stored from an incoming affiliate link (?id=username)
- Upon purchase, the session variable is checked, and an email is sent to the site owner to let him know that an affiliate member has brought a completed referral.
I can easily accomplish this with PHP, I'm just not sure how I would integrate it into Magento. Suggestions, please?? :/