Accept membership payments, manage profiles, deliver digital content, integrate with your blog, CMS, send newsletters, run affiliate program with this software.
aMember version 4 uses a new file structure and new code, so here is a new integration method.
First, locate file:
In this file, we will add a special code to the form, so visitor ID is read and sent to processing file. Change this line:
to this code:
Save your work and based on what do you want to integrate, continue in proper step.
Now edit this file:
Find function process() and within this function, find line:
Inset this code just below the mentioned line:
With this line, we've added a new parameter called 'custom' to array which will be used to create a request sent to PayPal. Thanks to this, we are sending visitor ID so we can use it later to determine who was the referring affiliate.
Save your work and proceed to step 3.
The last step is to handle the IPN notification sent from PayPal and to resend it to your Post Affiliate Pro. Navigate to Configuration> Setup/Configuration> PayPal in your aMember admin panel and activate 'Resend Postback'. If it is already active, just add a new line with this URL:
Save your work and that's it. Do not forget to activate your PayPal IPN handling plugin in Post Affiliate Pro to make it all working.
In case you are using aMember Cart feature, you have to do the previous steps and additionally, you have to modify this file application/cart/views/cart/choose-paysys.phtml - find this line:
<input type="hidden" name="a" value="choose-paysys" />
and add the following code below the line:
Save your work and you are done.
If you want new users to become affiliates automatically, it is possible to synchronize aMember signup form with Post Affiliate Pro. Thanks to the built-in plugin, you can easily set it up in aMember admin back-end.