Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Can we lock members by Affiliate?
Tagged: Affiliate Commission
- This topic has 11 replies, 6 voices, and was last updated 7 years, 6 months ago by
nadirajamal.
-
AuthorPosts
-
July 26, 2011 at 10:05 am #3893
PHDLover
MemberHi 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..
July 26, 2011 at 11:57 pm #34728amin007
ParticipantNope, 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).
December 18, 2012 at 9:15 am #34729jerryc
MemberOK, 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?
December 18, 2012 at 10:14 pm #34730admin
KeymasterIt will be the last affiliate who made the referral.
December 18, 2012 at 10:26 pm #34731jerryc
MemberIs there a way to edit the code to amend this? If so, where is it? Thanks.
December 19, 2012 at 1:30 am #34732admin
Keymasteryes, 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');December 19, 2012 at 1:52 am #34733jerryc
MemberFantastic!
I love customization options, especially when they are so easy to do.
Thanks.
April 3, 2018 at 5:05 pm #34734nadirajamal
MemberI’m glad this option exists! Will this mod be overwritten when the plugin is updated?
April 3, 2018 at 5:14 pm #34735wzp
ModeratorWill this mod be overwritten when the plugin is updated?
Yes. You must keep track of all your code customizations and reapply them.
April 3, 2018 at 5:37 pm #34736nadirajamal
MemberThanks; will do. If you’re taking feature requests, having that as a checkbox in the plugin settings would be really handy.
April 4, 2018 at 5:11 am #34737admin
KeymasterI will add it as a checkbox.
April 4, 2018 at 2:39 pm #34738nadirajamal
MemberThanks!
-
AuthorPosts
- You must be logged in to reply to this topic.