Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Non Affiliated to default affiliate or selected in random
Tagged: default affiliate
- This topic has 29 replies, 7 voices, and was last updated 8 years, 6 months ago by
syukri.
-
AuthorPosts
-
September 15, 2012 at 6:05 pm #7407
reejs
MemberIs there a way to get a default affiliate set automatically if someone comes to a sales page without affiliate ID
e.g If you (via organic traffic) lands on mydomain.com/salespage1/ .. / salespage2, ../salespage3 etc., a default affiliate automatically be assigned
If, for example I use [wp_affiliate_referrer] to show the referee on my pages it will just write ‘none’ and not an affiliate
It would be useful if I want to reward one or more random affiliate, and by using to third part signup pages to other business opportunities
September 16, 2012 at 4:08 am #49320admin
KeymasterWe don’t have an option to set the affiliate ID to a random one (this is not a normal practice for this kind of application). However, there is an option to allow your visitors to specify an affiliate ID which might help you. Have a look at the following post and let me know if it helps:
September 17, 2012 at 5:13 am #49321reejs
MemberI have seen this post, and from there I use [wp_aff_set_affiliate_id] to a third part signup e.g companyname.com/[wp_aff_set_affiliate_id]/signup, and it works perfectly as long as you have come to the site via an affiliate link with ‘?a_id =affiliate’ (great feature when I want to use it this way )
But when there are organic traffic to my site [www.mydomain.com/signuphere], and I use [wp_aff_set_affiliate_id] in a link, the code will write ‘None’ e.g. companyname.com/NONE/signup, with the result that the link would not work for a 3 part signup.
So it could be really great if there was a way to get [wp_aff_set_affiliate_id] to catch a ‘default’ affiliate instead of writing ‘None’in some way
September 17, 2012 at 10:18 am #49322reejs
MemberSorry I meant shortcode [wp_affiliate_referrer] not [wp_aff_set_affiliate_id]
September 17, 2012 at 6:13 pm #49323reejs
MemberI have found a solution to this by using this code <?php if (isset($_GET) && $_GET!=”) { echo $_GET; } else { echo ‘you_default_affiliate_here’; } ?>
WordPress can not handle PHP middle of a link and I therefore use the WP plugin: ‘PHP Code for posts’
The two things solve the whole task perfectly
December 15, 2012 at 1:51 am #49324zachwscott
MemberI want to change the text on the affiliate Signup page.
For example I want to change the title to Team Member Signup and the Affiliate ID to Team Member ID. I have look around but can’t seem to find out how to do that.
Thanks You.
December 15, 2012 at 10:34 pm #49325admin
KeymasterYou can change/customize any user visible text using this method:
June 21, 2014 at 5:00 am #49326wrcaccess
SpectatorReejs, on which page does this code go to set a default affiliate id?
<?php if (isset($_GET) && $_GET!=”) { echo $_GET; } else { echo ‘you_default_affiliate_here’; } ?>
Anyone with a reply is appreciated. Thanks!
June 21, 2014 at 11:30 pm #49327admin
KeymasterWhat are you trying to do? Show a different message than “None” when the user wasn’t referred by an affiliate?
June 22, 2014 at 1:22 am #49328wrcaccess
SpectatorOkay, I make blog posts. My emember is set with a fixed referral cookie where the original referrer is the only referrer for life. However, when a visitor comes to my site via my blog post directly and tries to sign up, the referrer is shown as ‘none’.
All I’d like is to set a FALL BACK referrer id if a visitor comes to my site without an affiliate referral link.
June 22, 2014 at 1:56 am #49329admin
KeymasterWhat would be that fallback referrer ID?
June 22, 2014 at 4:06 am #49330wrcaccess
SpectatorAny existing ID I wish to insert in the code. Is that possible? A member earlier posted the revised code, but I am not sure where that goes.
June 23, 2014 at 1:21 am #49331admin
Keymasterokay, I will tell you where to make the change but I don’t think what the other user did will exactly fit your need.
Anyway, here is where to modify the plugin.
Open the “wp_affiliate_platform1.php” file and look for the following keyword:
AFF_NONE;
Change that keyword to whatever affiliate ID you want to be the default one.
Alternatively, you can do this same change by customizing the language file. You can customize the value of the “AFF_NONE” keyword in the language file:
So you would change the following:
define('AFF_NONE', 'None');
To the following:
define('AFF_NONE', 'xyz');
xyz is the default affiliate ID in this example.
June 23, 2014 at 2:34 am #49332wrcaccess
SpectatorAdmin, thanks much!
Just to be sure, the above solution is I hope, in case one visits the site without a referral id. And it will continue to give credit to a referrer with a valid ref id.
Thanks!
June 23, 2014 at 3:07 am #49333wrcaccess
SpectatorAdmin, it solved part of the issue. The solution you provided now credits the fallback id, but the short code I use to show the name of the referrer still shows none none
I use 2 short codes on the main page.
Ref Name and Red ID.
Your solution now shows the Ref ID part whereas the Ref Name shortcode still shows none none.
-
AuthorPosts
- You must be logged in to reply to this topic.