How to change the URL of the subaffiliate signup link?

When an affiliate clicks in the home page of the affiliate panel the 'Signup Subaffiliates' link, then they get to the particular page called "Signup Subaffiliates":



 
 
The "https://localhost/pap/affiliates/signup.php" part of the link is automatically generated by the system since it points to the built-in signup page of Post Affiliate Pro.

But what if the merchant uses the HTML form of the signup page (found in the merchant panel at Configuration > Affiliate signup > HTML signup) at a totally different URL, e.g. at https://mysite.com/registration.php ?

In that case, the merchant can use his own link by following the steps below:

1) in the merchant panel navigate to "Configuration > URL Parameter Names" and check what parameter is set for 'affiliate id/referral id':


Remember the particular parameter name ( in this example in the picture above it is: a_aid )

2) in the merchant panel at "Configuration > Design > Affiliate panel theme"  click 'Edit them' on the currently active theme (in case a dialog pops up claiming to create a new theme, then read here) and look up the following file:
signup_subaffiliates.tpl

In this file you will need to change the following code:
{widget id="signupLink"}

for this one:
<a href="https://mysite.com/registration.php?a_aid={$refid}">https://mysite.com/registration.php?a_aid={$refid}</a>

as you may notice, the url of https://mysite.com/registration.php is followed by "?a_aid={$refd}" where the a_aid is the URL parameter name we remembered from step no.1 and {$refid} is the variable which inside the templates of  Post Affiliate Pro represents the affiliate's referral id

After you made your changes and saved them by clicking the Save button in the signup_subaffiliates.tpl file   you may  check out your changes in the affiliate panel:
×