WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › s2Member Coupon Code
Tagged: s2member coupon
- This topic has 9 replies, 3 voices, and was last updated 10 years, 6 months ago by
charlessmanning.
-
AuthorPosts
-
September 11, 2015 at 5:17 pm #1232
charlessmanning
ParticipantHello-
How to enable an s2Member-pro coupon code on my s2member registration page to credit my affiliate, and not just track my affiliate? There is never a hyperlink from another web site, only a coupon code entered on my site.
ThanksSeptember 12, 2015 at 12:27 am #1234mbrsolution
ModeratorHi in regards to your question.
How to enable an s2Member-pro coupon code on my s2member registration page to credit my affiliate
I think you are meant to ask the s2Member developers to assist you with this question.
September 21, 2015 at 5:28 pm #1255charlessmanning
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
ChuckSeptember 22, 2015 at 1:11 am #1257mbrsolution
ModeratorHi, did you install the following add-on?
September 22, 2015 at 2:44 am #1258charlessmanning
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();
?>September 22, 2015 at 2:47 am #1259charlessmanning
Participantyes i did install S2Member Plugin Integration plugin but it only works when the link is from a referred site.
September 22, 2015 at 3:26 am #1260Shadow Labs
Keymaster@charlessmanning, Are you looking for a similar feature in our S2Member Integration?
Tracking Affiliate Commission Using WooCommerce Coupons or Discount Codes
September 22, 2015 at 3:50 am #1261charlessmanning
ParticipantExactly! Yes. To be clear the coupon code will be entered on my site. There will be no other referrer site involved.
Any suggestions?
September 26, 2015 at 1:34 am #1282Shadow Labs
KeymasterWhat do you mean by “There will be no other referrer site involved”? We will check their documentation and see if we can create an addon for this.
September 27, 2015 at 1:17 pm #1285charlessmanning
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.
-
AuthorPosts
- You must be logged in to reply to this topic.