Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › s2member integration – no sales/commission
- This topic has 10 replies, 2 voices, and was last updated 12 years, 7 months ago by admin.
-
AuthorPosts
-
April 8, 2012 at 5:09 pm #6052baduistMember
Hi,
I’m trying to integrate s2member, with the option for refunds / cancelations as described in this thread: https://support.tipsandtricks-hq.com/forums/topic/cancel-commision-after-refund#post-11297
At this point I only see clicks but not sales. I’ve seen some posts with a similar issue, but still couldn’t locate the problem in my case.
My pricing page has 3 plans, and the WordPress page looks like this:
[admin deleted button code]
As you can see I wrapped an Analytics event tracking code around each s2member shortcode. I hope this is not what causes the problem.
My Payment Notification URLs are set to:
And I have Refund/Reversal notifications set to:
As mentioned at the moment clicks are being tracked but not sales.
If the problem is not apparent I’ll be happy to pay for the Plugin Installation Setup and Testing service, just wanted to make sure it will cover all my needs before making a payment – on top of this I will need to integrate the system into 1 non-wordpress page, and make sure this works for cancelations as well as refunds).
Thanks!
April 9, 2012 at 8:49 am #43893adminKeymasterPlease post a link to the page where you used the s2Member shortcode to place the Payment/Buy button.
April 10, 2012 at 11:10 am #43894April 10, 2012 at 12:15 pm #43895adminKeymasterThank you, Just so you know… at this stage I am trying to troubleshoot the commission awarding. Once we get that figured out we can look into the refund one.
The affiliate ID is getting added to the button correctly so that’s good. One checklist checked. Now the next thing to check to see if S2Member is notifying the affiliate plugin after a sale. Can you please enable debug from the affiliate plugin’s settings menu then do an affiliate sale test and share the content of the following debug file:
wp-affiliate-platform/wp_affiliate_debug.log
One more question for you… are you using the “sell access to an individual post” feature of the S2Member plugin?
April 10, 2012 at 5:27 pm #43896baduistMemberDebugging is enabled, made a sale, but wp_affiliate_debug.log is empty… I’ll try to buy again and if anything changes, but for now, empty.
Any chance we can talk on Skype so we can do this quicker? My Skype name is Baduist.
April 10, 2012 at 5:34 pm #43897baduistMemberOk, 2nd sale, the file is still empty…
April 10, 2012 at 11:42 pm #43898adminKeymasterOkay that confirms that the affiliate plugin is not getting the notification.
You have 2 mistakes:
1. You are using the following URL as the notification URL which does look INCORRECT to me now that I know your site’s URL:
Shouldn’t it be the following? notice the “membs” word that is missing in the above one?
2. You did not enable the “Remote Post” option in the affiliate settings (it is still turned off in your site). This is mentioned in step 2 of the s2Member and affiliate plugin integration documentation:
Fix those up then give it a go.
April 11, 2012 at 7:10 am #43899baduistMemberOk, fixes those two.
Made two sales, and now the logs shows:
[04/10/2012 11:36 PM] – FAILURE :Remote POST is disabled in the settings.
[04/11/2012 12:09 AM] – FAILURE :Remote POST is disabled in the settings.
[04/11/2012 6:47 AM] – FAILURE :Remote POST is disabled in the settings.
[04/11/2012 6:50 AM] – SUCCESS :Start processing remote commission tracking request…
[04/11/2012 6:50 AM] – SUCCESS :Request does not have any GET or POST data.. cannot process request
I enabled “remote post” before the two sales, but seems like it takes a couple of minutes to take affect or something… seems like the 2nd sale went better, but I still don’t see it reported.
April 11, 2012 at 11:46 pm #43900adminKeymasterOkay I checked your debug and it is nearly working (it’s missing the referrer data)
[04/11/2012 11:24 AM] – SUCCESS :POST data: 4f7eadc3d95e4||19.95|||claysheppard@hotmail.com
[04/11/2012 11:24 AM] – SUCCESS :Validating Request Data
[04/11/2012 11:24 AM] – SUCCESS :Referrer ID is missing… cannot process request
This happens when the “Payment Button” is not transferring the referrer data via the “custom” field. I don’t know what sort of customization you are doing to this button but if you use the S2Member’s shortcode all these gets taken care of for you.
When I inspect your button code, I see the following which is wrong (you had this working before so not sure what happened):
<input type="hidden" name="custom" value="fbadstoolbox.com|%%cv1%%">
See where you added the “%%cv1%%” parameter? that’s where the affiliate ID goes. So it should look like the following when you use a standard S2Member payment button shortcode:
<input type="hidden" name="custom" value="fbadstoolbox.com|AFFILIATE_ID">
Since you are manually tweaking the button I would suggest you do the following if you can execute PHP in your code:
<input type="hidden" name="custom" value="fbadstoolbox.com|$_COOKIE['ap_id']">
The
$_COOKIE['ap_id']
code will dynamically read the cookie value and place the affiliate ID there. S2Member will pass this value back to the affiliate plugin via the %%cv1%% parameter after the sale.April 12, 2012 at 6:27 am #43901baduistMemberWhere did you see “value=”fbadstoolbox.com|%%cv1%%”” ?
April 12, 2012 at 8:00 am #43902adminKeymasterI received your email. I found that you had some wrong value in the “Payment Notifications” field of the s2Member (there were two URL entries). Not sure if you tweaked the plugin which was causing this but I have loaded a fresh build of the affiliate plugin on your site and re-saved those notification URL values and it looks good this time. Please test out an affiliate purchase now. Before making the purchase, please check the button code and make sure the affiliate ID is there in the “custom” field so you know it is an affiliate referral (if you just make a plain purchase then no commission will be awarded).
-
AuthorPosts
- You must be logged in to reply to this topic.