Post by nemequ » Mon May 23, 2011 3:06 am

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?

Newbie

Posts

Joined
Mon May 23, 2011 2:33 am

Post by radu » Mon Dec 26, 2011 5:34 am

Any progress on this? So I don't duplicate existing work...

Newbie

Posts

Joined
Sun Dec 04, 2011 2:57 am
Who is online

Users browsing this forum: No registered users and 20 guests