s2Member integration and affiliate shortcode problems

* Updated on 12/29/14 with additional questions/information at the bottom of this post. A response ASAP would be greatly appreciated.

Hello,

I am having a very difficult time configuring Affiliates Enterprise to work with s2Member paid registrations on a client’s website. Here is what I’m trying to accomplish:

Users can register for one of six different “packages” (each has a different cost and may or may not have a custom capability). I want the referring affiliate to be credited an amount that is calculated based on the cost of the package and whether or not the custom capability exists.

I have tried changing many different settings and cannot figure out how to do this. The cost of the packages (s2Member PayPal buttons) is never factored into the referral amount calculation.

Most recently, I have tried the following, using a custom API method to calculate the amount based on the referral data:

First, I tried configuring the s2Member notification URLs, similar to what was suggested in this thread. I may be missing something, but if I understand correctly, these URLs should pass the Affiliates referral calculation routine any number of parameters, including the cost of the purchase.

I also tried what was suggested here – changing the value of txn_id in the URL to include something different in the referral data. Specifically, I changed this value to three piped values, e.g. txn_id=%%level%%|%%ccaps%%|%%amount%%. None of this information is reflected in the referral data.

In my custom API method, I have been temporarily logging $parameters to a text file on the server to see what’s being passed into the method. Everything makes sense and works correctly for WooCommerce products – referral amounts from those products are working as intended. But the data that’s generated from a new registration is useless. Example:


Array
(
[affiliate_ids] => Array
(
[0] => 2
)

[post_id] =>
[description] => User Registration tester
[data] => Array
(
[user_login] => Array
(
[title] => Username
[domain] => affiliates
[value] => tester
)

[user_email] => Array
(
[title] => Email
[domain] => affiliates
[value] => tester@test.com
)

[first_name] => Array
(
[title] => First Name
[domain] => affiliates
[value] =>
)

[last_name] => Array
(
[title] => Last Name
[domain] => affiliates
[value] =>
)

[base_amount] => Array
(
[title] => Base Amount
[domain] => affiliates
[value] => 0.25
)

)

[base_amount] => 0.25
[amount] =>
[currency_id] => CAD
[status] => accepted
[type] => user
[reference] =>
[test] =>
)

amount is always empty for registrations, and none of the information included in the notification URL is reflected here.

Any assistance you could provide would be greatly appreciated. We selected s2Member and Affiliates Enterprise for our client specifically because we read that they were compatible out-of-the-box – which is true – but we definitely did not expect it to be this time-consuming to set up, especially considering that our implementation is not that complicated.

If possible, please reply directly to kevinb [at] aborg [dot] com – I will be happy to provide you with whatever additional information you need to resolve this.

Thank you in advance.

UPDATE (12/29/14): We are also having at least one issue with the various shortcodes that display affiliates’ stats and other information. The shortcode in question is [affiliates_tiers] which seems to be displaying incorrect totals for tiered affiliates. I have taken a screenshot of this which you can view here. The totals in the “Affiliations” tiers list, when combined, should equal $51.04 (same as the other two shortcodes used on this page) but they are incorrect.

Again, your prompt attention and assistance would be appreciated. Thanks.

One Response to s2Member integration and affiliate shortcode problems

  1. kento January 8, 2015 at 10:58 pm #

    Hi Peter,

    Thanks for your detailed explanation, I’d like to review your current setup – could we please have admin accesss to the development site where you have this set up? Please provide access details to support at itthinx dot com and include a link to this topic.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share