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

s2member integration – no sales/commission

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › s2member integration – no sales/commission

Tagged: hide banner in affiliate center, track s2member signup

  • This topic has 10 replies, 2 voices, and was last updated 13 years, 3 months ago by admin.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • April 8, 2012 at 5:09 pm #6052
    baduist
    Member

    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:

    http://mydomain.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=4f7eadc3d95e4&ap_id=%%cv1%%&sale_amt=%%amount%%&txn_id=%%txn_id%%

    And I have Refund/Reversal notifications set to:

    http://fbadstoolbox.com/wp-content/plugins/wp-affiliate-platform/api/refund_handler.php?secret=4f7eadc3d95e4&ap_id=%%cv1%%&parent_txn_id=%%parent_txn_id%%

    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 #43893
    admin
    Keymaster

    Please 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 #43894
    baduist
    Member

    http://fbadstoolbox.com/membs/

    April 10, 2012 at 12:15 pm #43895
    admin
    Keymaster

    Thank 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 #43896
    baduist
    Member

    Debugging 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 #43897
    baduist
    Member

    Ok, 2nd sale, the file is still empty…

    April 10, 2012 at 11:42 pm #43898
    admin
    Keymaster

    Okay 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:

    http://mydomain.com/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=4f7eadc3d95e4&ap_id=%%cv1%%&sale_amt=%%amount%%&txn_id=%%txn_id%%

    Shouldn’t it be the following? notice the “membs” word that is missing in the above one?

    http://fbadstoolbox.com/membs/wp-content/plugins/wp-affiliate-platform/api/post.php?secret=4f7eadc3d95e4&ap_id=%%cv1%%&sale_amt=%%amount%%&txn_id=%%txn_id%%

    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:

    http://www.tipsandtricks-hq.com/wordpress-affiliate/integrating-s2member-plugin-with-the-wp-affiliate-software-368

    Fix those up then give it a go.

    April 11, 2012 at 7:10 am #43899
    baduist
    Member

    Ok, 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 #43900
    admin
    Keymaster

    Okay 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 #43901
    baduist
    Member

    Where did you see “value=”fbadstoolbox.com|%%cv1%%”” ?

    April 12, 2012 at 8:00 am #43902
    admin
    Keymaster

    I 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).

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