Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All of our affiliate add ons use the same affiliate_id DB column in the orders table to track things. #37

Open
ideadude opened this issue May 10, 2022 · 0 comments

Comments

@ideadude
Copy link
Member

Describe the bug
All of our affiliate add ons use the same affiliate_id DB column in the orders table to track things.

And so if you have more than one of these add ons running at the same time, the reports will double count orders for each affiliate system.

For example, on our site we used AffiliateWP for affiliates, but also used the lightweight affiliate tracking plugin to track some random landing pages set up for special occasions. If the affiliate ID 27 was already being used for the other affiliate app, there would already be orders tracked for a newly created affiliate with ID 27.

The work around now is to make sure that you affiliate IDs don't overlap. You can do something to make sure one or the other affiliate apps starts their IDs at 10000 or something to avoid the overlap.

We could append an affiliate app slug to the affiliate_id column in the DB. And update all code to use that. We'd have to update the affiliate plugins. We would have to update existing orders. Most of the affiliate plugins also log a note. So we can double check the note before adjusting the affiliate_id column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant