Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Non Affiliated to default affiliate or selected in random

by

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 7 years ago by syukri.
Viewing 15 posts - 1 through 15 (of 30 total)
1 2 →
  • Author
    Posts
  • September 15, 2012 at 6:05 pm #7407
    reejs
    Member

    Is 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 #49320
    admin
    Keymaster

    We 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:

    https://support.tipsandtricks-hq.com/forums/topic/manually-setting-the-affiliate-id-and-showing-the-affiliate-id-of-the-referrer

    September 17, 2012 at 5:13 am #49321
    reejs
    Member

    I 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 #49322
    reejs
    Member

    Sorry I meant shortcode [wp_affiliate_referrer] not [wp_aff_set_affiliate_id]

    September 17, 2012 at 6:13 pm #49323
    reejs
    Member

    I 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 #49324
    zachwscott
    Member

    I 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 #49325
    admin
    Keymaster

    You can change/customize any user visible text using this method:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    June 21, 2014 at 5:00 am #49326
    wrcaccess
    Spectator

    Reejs, 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 #49327
    admin
    Keymaster

    What 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 #49328
    wrcaccess
    Spectator

    Okay, 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 #49329
    admin
    Keymaster

    What would be that fallback referrer ID?

    June 22, 2014 at 4:06 am #49330
    wrcaccess
    Spectator

    Any 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 #49331
    admin
    Keymaster

    okay, 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:

    https://support.tipsandtricks-hq.com/forums/topic/how-to-customize-various-textmessages-displayed-by-the-plugin

    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 #49332
    wrcaccess
    Spectator

    Admin, 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 #49333
    wrcaccess
    Spectator

    Admin, 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.

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 30 total)
1 2 →
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ