Hi there,
Assuming that you’re referring to the affiliate URL that appears in the Overview section of your Affiliates Dashboard page, then this can change by modifying the overview template, specifically this part should be replaced with this part according to your URL:
echo do_shortcode('[affiliates_url]https://www.findmeadrivingtest.co.uk/signup[/affiliates_url]');
Also, if you would like to render the affiliate URL in other pages too, then you can render it via the shortcode:
[affiliates_url]https://www.findmeadrivingtest.co.uk/signup[/affiliates_url]
The overview template can be modified safely if you first override it to your child theme as described here: https://docs.itthinx.com/document/affiliates/api/templates/. This way your modifications will be kept intact upon a future update of your theme. If you’re uncertain, how to adjust the template even after reviewing the template overriding guide, feel free to follow-up here.
As for the Affiliate plugin and the referral process, it is quite simple. Once a visitor follows an affiliate link, a cookie is stored in the visitor’s browser that will identify the referring affiliate. If then the visitor completes a tracked action, then the referring affiliate will get a referral.
Based on the link you shared, it looks like you wish someone to register on your site. If my assumption is correct, then you can adjust the User integration and grant referrals when a new referred user registers on your site. Reference: https://docs.itthinx.com/document/affiliates/user-registration/
To review individual new referrals, navigate to Affiliates > Referrals. For a summary of accumulated commissions per affiliate, access Affiliates > Totals. Please note that the Affiliates plugin does not process commission payments, therefore you are responsible for selecting and utilizing a separate payment processor.
Reference:
Kind regards,
George
Hi George,
Thank you very much for explaining everything I really appreciate it. I think it is better If I explain my workflow. I have a custom form which is a registration form https://www.findmeadrivingtest.co.uk/signup/
and once a user completes a payment he/she is redirected to https://www.findmeadrivingtest.co.uk/success. Now at this stage I want a referral to get paid. So this is something I need.
Hi azhad786,
You’re welcome. Can you also mention what do you use for the user payment? Is it a form or something different? Is this addon one of the Affiliates’ plugin supported integrations here?
Kind regards,
George
I have built a customised plugin for the payment system. I use stripe API. https://www.findmeadrivingtest.co.uk/signup/
User fills the form and he is shown a Stripe generated pop up with for payment. If payment is confirmed person is redirected to https://www.findmeadrivingtest.co.uk/success page.
Hi azhad786,
I see, thanks for sharing the details. In this case, once the payment is confirmed you can use the function
affiliates_suggest_referral( $post_id, $description = '', $data = null, $amount = null, $currency_id = null, $status = null, $type = null, $reference = null );
and its description found here: https://github.com/itthinx/affiliates/blob/master/lib/core/wp-init.php#L1341
Feel free to ask here for additional details on the arguments used.
Kind regards,
George