-
-
Save strangerstudios/3137539 to your computer and use it in GitHub Desktop.
<?php | |
/* | |
We now maintain this code gist as an addon. | |
* On GitHub: https://github.com/strangerstudios/pmpro-wp-affiliate-platform | |
* Our Site: http://www.paidmembershipspro.com/add-ons/plus-add-ons/pmpro-wp-affiliate-platform-integration/ | |
Tips and tricks also maintains a version here: | |
https://www.tipsandtricks-hq.com/wordpress-affiliate/paid-memberships-pro-wp-affiliate-plugin-integration-873 | |
*/ |
Hello Jason I sent you an email about the outcome, I sent you some screen shots. I need help on this thanks.
Hello,
I just installed WP Affiliate Platform, now I don't know where to install this. I tried downloading it and installing it in my platforms, but it shows the error: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
I'm sure I'm doing something completely wrong because it doesn't seem anyone else is having this problem. Please help. Thanks.
Which file do i have to edit in oder for it to work?
I just installed WP Affiliate Platform, now I don't know where to install this or what to even do with it! Please help!
You guys can sign up for support at http://www.paidmembershipspro.com. Thanks
Thank you Jason for creating this integration code.
A few users seem to get confused with what to do with this code. I have created a zip file so you should just need to install that addon plugin:
http://www.tipsandtricks-hq.com/wordpress-affiliate/paid-memberships-pro-wp-affiliate-plugin-integration-873
Nice codes!
Hi, I have made couple of improvements to this addon so it can track recurring commission from paid membership pro also. You can download the updated code from here and update this repository code with it:
http://www.tipsandtricks-hq.com/wordpress-affiliate/paid-memberships-pro-wp-affiliate-plugin-integration-873
It looks like the WP Affiliate Platform folks are maintaining a fork of this gist that has some updates. You can grab their copy here: https://www.tipsandtricks-hq.com/wordpress-affiliate/paid-memberships-pro-wp-affiliate-plugin-integration-873
Hey, neither this version nor the one on the link you gave yesterday seem to hook into the recurring payments properly. Unsure what is happening. The affiliate id is stored with the subscription orders all right, but the affiliate doesn't get paid when the next month's subscription is billed.
Latest revision now has WP plugin comments up top so you can just drop this in the plugins folder. It also should truly support recurring payments by using the pmpro_add_order and pmpro_added_order hooks instead of pmpro_after_checkout and by saving the affiliate id in the orders table and then looking that up from older orders when recurring payments come in.