PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Need to add custom inputs to paypal button code

s2Member Plugin. A Membership plugin for WordPress®.

Need to add custom inputs to paypal button code

Postby hypermediadotca » November 27th, 2011, 8:15 pm

I am integrating Affiliate Royale with S2 Member - to do this I need to add the following lines of code to the PayPal® Button Code:

<!-- Affiliate Stuff -->
<input type="hidden" name="notify_url" value="[wafp_ipn]">
<input type="hidden" name="custom" value="[wafp_custom_args]">

I can add it in manually but there is no way to save that section. Help?

thanks!
User avatar
hypermediadotca
Registered User
Registered User
 
Posts: 2
Joined: November 27, 2011

Re: Need to add custom inputs to paypal button code

Postby hypermediadotca » November 28th, 2011, 2:14 pm

I think I figured this one out

I edited the /includes/templates/buttons/paypal-checkout-button.php file

hope that does the trick!

if this is not the solution you had in mind, please let me know. thanks
User avatar
hypermediadotca
Registered User
Registered User
 
Posts: 2
Joined: November 27, 2011

Re: Need to add custom inputs to paypal button code

Postby Cristián Lávaque » December 1st, 2011, 1:06 am

The problem with that is that then s2Member won't be notified by PayPal, and the custom value needs to be your domain name for it to work with s2Member.

You should try using the Notifications API or the Tracking API to integrate with the affiliate plugin. These videos may help:

http://www.s2member.com/api-tracking-no ... ons-video/
http://www.s2member.com/idevaffiliate-i ... ion-video/

I hope they do. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests

cron