- This topic has 11 replies, 6 voices, and was last updated 6 years, 7 months ago by .
Viewing 12 posts - 1 through 12 (of 12 total)
Viewing 12 posts - 1 through 12 (of 12 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Can we lock members by Affiliate?
Tagged: Affiliate Commission
Hi sir,
can we lock members by Affiliate? If we have 2 membership type : free and paid. When an affiliate refers person A to be a free member, and whenever later A decide to upgrade his membership to paid member, the affiliate will be awarded commissions.
So even if the cookie duration already passed but since this affiliate refer this person A to be a member, he will get commission for every purchases by person A..
Nope, if the cookie duration is passed then any purchased from person A will not result affiliate commission. Simply increase the cookie duration value to adjust it to where you are comfortable (for example: you can make the cookie duration 10 years if you wanted to).
OK, suppose we set the cookie duration for 10 years. Then, suppose a free member gets referred to the site from another affiliate, and later upgrades. Which affiliate will get the commission?
It will be the last affiliate who made the referral.
Is there a way to edit the code to amend this? If so, where is it? Thanks.
yes, you can make it so the plugin doesn’t override an existing affiliate ID cookie. This way the older referral will be in action. Here is what you can do for this:
Open the “wp_aff_advanced_configs.php” file and look for the following line of code:
define('WP_AFFILIATE_DO_NOT_OVERRIDE_AFFILIATE_COOKIE', '0');
Once you find it, change it to the following:
define('WP_AFFILIATE_DO_NOT_OVERRIDE_AFFILIATE_COOKIE', '1');
Fantastic!
I love customization options, especially when they are so easy to do.
Thanks.
I’m glad this option exists! Will this mod be overwritten when the plugin is updated?
Will this mod be overwritten when the plugin is updated?
Yes. You must keep track of all your code customizations and reapply them.
Thanks; will do. If you’re taking feature requests, having that as a checkbox in the plugin settings would be really handy.
I will add it as a checkbox.
Thanks!