Forum Replies Created
-
AuthorPosts
-
charlessmanning
ParticipantThanks for your note.
By “There will be no other referrer site involved” I mean that a customer will always begin on my web site, and not begin by clicking an Affiliate Link from a referrer that that takes them to my site (ie.default affiliate link).
Therefore I won’t know the wpam_refkey or wpam_id until the coupon code is entered on my site.However, on my site during checkout (using S2Member Pro Authorize.net), a customer will enter a coupon code and in the coupon code S2Member can parse out the AffiliateID (ie. MYCOUPON:8), where 8 is the AffiliateID.
Once I have the AffiliateID, I’ll need a WP Affiliate Manager function that can I call to retrieve the wpam_refkey for that AffiliateID? I’ll then dynamically build the Affiliate Link URL (see above) and silently call it behind the scene.
Hope this explanation helps.
charlessmanning
ParticipantExactly! Yes. To be clear the coupon code will be entered on my site. There will be no other referrer site involved.
Any suggestions?
charlessmanning
Participantyes i did install S2Member Plugin Integration plugin but it only works when the link is from a referred site.
charlessmanning
ParticipantI’M THINKING AFFILIATE_DETAIL.PHP FILE…
If I can somehow trigger $this->viewData[‘creatives’] it could work. Just need to find the class/object that $this refers to.
<?php foreach ( $this->viewData[‘creatives’] as $creative ) {
$linkBuilder = new WPAM_Tracking_TrackingLinkBuilder($model, $creative);
$link = $linkBuilder->getImpressionHtmlSnippet();
?>charlessmanning
ParticipantPlease let me clarify…
I understand that WP Affiliate Manager works well from a hyperlinked graphic from an affiliate’s web page. That it sets both an affiliate ID (wpam_id) and a refkey (wpam_refkey).BUT, I’m not using a link from a foreign page. a user begins ON MY SITE and enters a valid S2member Pro coupon code appended with affiliate ID (ie. MYCOUPON:8).
QUESTION: given the affiliateID, how can I retrieve or create a wpam_refkey to create the Tracking URL to send to WPManager to credit the affiliate?
Thanks
Chuck -
AuthorPosts