- This topic has 4 replies, 2 voices, and was last updated 10 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 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 › WP AFFILIATE – How to make afiliate reward hisself
Hi, I try to use wp affiliate as a reward program, but do not know if there is a way let the affiliate earn commission from his own purchase
I am use estore, wp affiliate and emember plugin
Yes, affiliates can enter their affiliate ID in the URL (or click their own affiliate link) before purchasing and the commission from the sale will be given to them.
Hi Admin,
I was seeking more automattically approach, My configuration, when every member created it automattically create wordpress account and affiliate account. so if possible just a simple code modification to set commission to himself?
continue from prev post:
for example the code from affiliate document:
$secret = “4bd39e2e4a7bb”;
$referrer = “amin21”;
$sale_amt = “29.95”;
$prepared_data = “?secret=”.$secret.”&ap_id=”.$referrer.”&sale_amt=”.$sale_amt;
$get_url = “http://www.example.com/wp-content/plugins/wp-affiliate-platform/api/post.php”.$prepared_data;
// Execute this GET Request
file_get_contents($get_url);
If knowing how to retrieve affiliate id from login user info, it should be not difficult to reward affiliate itself
You are using the emember integration so your affiliate IDs will be the same as the emember usernames. The folloiwng post will show you how you can programmatically retrieve the username:
Let me know if that helps.