AFAICT the affiliate links in OpenCart SVN work only for the current session (technically, the life of a cookie created in index.php). What I need is a for an affiliate to receive a commission on *every* purchase made by users they refer. Forever.
Before I start hacking, I was wondering if I should implement this in the OpenCart core, or as a module? In other words, is this a feature that would be desired upstream? If so, should it be the always on or configurable? If configurable, should it be on by default?
As for the implementation, I don't yet have any experience with OpenCart, so... I was thinking just add a column to the users table with an affiliate ID, then in the checkout page instead of just looking for the cookie the code would look for the cookie then fall back on the affiliate ID in the users table. And of course signup page would just have to be tweaked to populate that column based on the tracking number in the cookie. Anyone have a better idea?
Who is online
Users browsing this forum: No registered users and 20 guests