Affiliates manager plugin can be used to allow visitors on your site to manually set the referrer or affiliate ID (By default affiliates refer users to your site via affiliate links). If a customer purchases something, the plugin will award the commission from that transaction to the associated affiliate.
This can be useful if you are running an offline store or a customer wants to change their initial referrer.
Step 1 (Install the addon)
Install and activate the Checkout Referrals Addon.
Step 2) Enter the Addon Shortcode
Create a post/page and insert the following shortcode into a shortcode block (you can also use it in the sidebar).
[wpam_set_affiliate_id]
The shortcode creates a text field where a visitor can enter their referrer’s ID.

If you want to customize the default label “Affiliate ID” you can do so in the shortcode.
[wpam_set_affiliate_id label="Referrer ID"]
Integration with WooCommerce
If you use WooCommerce and this addon is active, the “Affiliate ID” field is automatically shown at checkout. This allows WooCommerce customers to set the referrer for each purchase.
