Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Affiliate and eMember
- This topic has 6 replies, 2 voices, and was last updated 14 years, 4 months ago by amin007.
-
AuthorPosts
-
July 13, 2010 at 12:36 am #1486gcollignonMember
Hi, I have the emember and affiliate plugin. I was wondering if I have a free membership and I am rewarding my affiliates for subscribing people to my free membership how can I know. Do they show as a sale?
July 13, 2010 at 1:33 am #22390amin007ParticipantBy default affiliate commission won’t be given for free membership subscription as no money is involved here.
All the affiliate commissions awarded to your affiliates can be viewed from the “Sales Data” menu of the affiliate platform plugin.
July 13, 2010 at 10:11 pm #22391gcollignonMemberIs there something that can be made so that a free membership can also become awarded in the sales data?
I am paying my affiliates for free membership subscriptions so I need something that allows me to know who subscribed who.
Thanks!!!
July 14, 2010 at 3:29 am #22392amin007ParticipantYeah I can tell you what to do to have this option. You do understand that you will be giving out affiliate commission to your affiliates even though you haven’t made any money? As long as you understand that you could go broke if for example 200 people signup for free membership from a referral and you have agreed to pay $10 per signup. So you will be paying out $2000 in affiliate commission even though you haven’t made anything
Let me know if you understand the risk and I will tell you the tweak to achieve this.
July 14, 2010 at 11:54 pm #22393gcollignonMemberYes I understand..the percentage is really low or I can just add a 0% but still be able to see who signed up who.
Thanks
July 19, 2010 at 7:26 pm #22394gcollignonMemberHello Amin I hope you are doing great! I was just wondering if you could respond to my post. Thanks!
July 20, 2010 at 1:28 am #22395amin007ParticipantI didn’t realize that you wanted to go ahead with this. Anyway, this is how you can achieve this:
Search for the following in the “eMember_misc_functions.php” file:
if($config->getValue('eMember_auto_affiliate_account'))
{
eMember_handle_affiliate_signup($_POST['user_name'],$_POST['pwd'],$_POST['afirstname'],$_POST['alastname'],$_POST['aemail'],eMember_get_aff_referrer());
}Once you find it, add the following bit of code just above it:
$sale_amount = "10.00";
$item_id = "some id";
$txn_id = "";
wp_aff_award_commission(eMember_get_aff_referrer(),$sale_amount,$txn_id,$item_id,$_POST['aemail']);Notice the sale amount value is set to “10.00”? this is the amount that will be used to calculate the commission. So if a referrer is set to earn 30% commission then he will get 30% of $10.00 which will make his commission to be $3. Adjust the sale amount to suit your needs.
-
AuthorPosts
- You must be logged in to reply to this topic.