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

Automatically add affiliate ID to any page URL?

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › Automatically add affiliate ID to any page URL?

Tagged: affiliate id, affilliate, eMember, facebook, social media, twitter, wp e-commerce

  • This topic has 6 replies, 3 voices, and was last updated 9 years, 1 month ago by admin.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 12, 2011 at 4:56 pm #2927
    sparklogix
    Member

    My client has a store and they want their affiliates to be able to click a button that will automatically post the affiliate’s link to social media sites (Twitter, FB, etc).

    I’m using the WP e-Commerce store and i know there are plugins for FB Like & Share buttons, but I was wondering if there’s anyway to integrate it so that the affiliate’s ID is included in that link or if there is some way to accomplish this, whether using the Like/Share buttons or not. Preferably, there would be a button for the affiliate to click on right from the product page (visible only when an affiliate is logged in, maybe?). I’m also using the eMember plugin if that helps.

    Thanks so much!

    March 12, 2011 at 11:42 pm #30113
    amin007
    Participant

    Update: There is an addon that can be use to add share links below each affiliate ads:

    https://www.tipsandtricks-hq.com/wordpress-affiliate/easy-affiliate-ad-sharing-on-social-media


    The affiliate platform plugin doesn’t have this type of capability.

    March 13, 2011 at 1:52 am #30114
    sparklogix
    Member

    Not a problem, thanks :)

    March 15, 2011 at 4:47 am #30115
    sparklogix
    Member

    So I’ve been thinking more about this because my client REALLY wants this capability. I was wondering if there is a line of PHP that calls the affiliate ID that I could use to plug in to a URL elsewhere on the site, that way the ID would be added to whatever links I need it to be on.

    Is something like that possible? Thanks!

    March 16, 2011 at 1:25 am #30116
    amin007
    Participant

    Yep, just call the following function and it will return the Affiliate ID:

    wp_affiliate_get_referrer()

    March 16, 2011 at 3:07 am #30117
    sparklogix
    Member

    You are amazing! Thank you so much :)

    April 5, 2016 at 6:17 am #30118
    admin
    Keymaster

    We now have an addon for this:

    https://www.tipsandtricks-hq.com/wordpress-affiliate/easy-affiliate-ad-sharing-on-social-media

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 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