If you want visitors to be able to register for your affiliate program you will need an affiliate registration process.
You can enable one by using SliceWP’s registration shortcode which you can add to any post or page. The shortcode will render a registration form for your visitors, where they’ll be able to open an affiliate account on your website.
- Enable the Allow Affiliate Registration option from your WordPress admin area > SliceWP > Settings > General (tab) > General Settings (section). This is needed to display the affiliate registration form. Without this option, your affiliate program will be private.
- Create a new page from your WordPress admin area -> Pages -> Add New.
- Insert the
[slicewp_affiliate_registration]shortcode to the page. If you’re using the new WordPress editor, Gutenberg, add the shortcode by inserting a new shortcode block, as shown here:
The above steps will render an affiliate registration form similar to the one below.
Please note that the form’s styling is highly dependent on the theme you’re using. Most themes style forms properly, but unfortunately issues can occur on certain ones. If that’s the case, please contact us.
Quick note: If you want to add custom fields to your affiliate registration form, click here for a step-by-step guide.
Quick note: If you want to protect your affiliate registration form from spammers we recommend you to activate the Google reCAPTCHA functionality. Click here for a step-by-step guide on how to do this.
Redirecting the user after registration#
By default, if you don’t set a custom redirect on the shortcode and you also haven’t set your affiliate account page, after the user successfully completes the registration form they will not be redirected anywhere. They will remain on the register affiliate page and a success message will be displayed instead of the actual form.
However, if you set a custom affiliate account page, users will be redirected to that particular page automatically after they complete the registration process.
If you wish to modify this functionality and redirect the user to a custom page, you can do this by adding the
redirect_url attribute to the affiliate registration shortcode. With redirection set, the new shortcode should look like this:
Make sure to change
https://yourwebsite.com/page/ to the URL of the page you wish to redirect the user to.