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

Only prompt to set affiliate ID if empty

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Only prompt to set affiliate ID if empty

Tagged: affiliate id

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 5 months ago by admin.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • December 11, 2014 at 5:19 pm #11910
    bmccarthy
    Member

    I am going to be using some functions described in this article to mimic “self-replicating sites” (since I can’t seem to find a wordpress plugin for that). https://support.tipsandtricks-hq.com/forums/topic/manually-setting-the-affiliate-id-and-showing-the-affiliate-id-of-the-referrer

    Here’s what I’d like to do.

    In my header, I want to display the Affiliate ID, First and Last name, and email address of the affiliate by using [wp_affiliate_referrer_details info=xxxx].

    However, if the person landed on our page and wasn’t referred by an affiliate, it want a message (ex: “Affiliate ID required before purchase”) to appear along with the form generated by [wp_aff_set_affiliate_id].

    Can you help me out on how to tell WordPress if [wp_affiliate_referrer] is blank, display [wp_aff_set_affiliate_id] instead?

    December 11, 2014 at 11:21 pm #67355
    admin
    Keymaster

    Here is a PHP code example for it:

    $referrer = wp_affiliate_get_referrer()
    if(empty($referrer)){
    echo wp_aff_set_affiliate_id_form();
    }

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

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • 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
  • 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

Our Other Plugins

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

Copyright © 2025 | Tips and Tricks HQ