How to create affiliate registration forms with Contact Form 7

Affiliate for WooCommerce plugin helps you to add, manage affiliates, and track performance from a single place – commissions, sales, payouts, leaderboard, etc. Earn money without hard work. Increase your brand outreach, and get potential customers.

The Affiliate for WooCommerce plugin works with Contact Form 7, allowing you to create custom affiliate registration forms for your site.

Requirements

↑ Back to top

Before you begin, make sure you have these two free plugins installed and activated on your site:

  1. Contact Form 7
  2. Affiliate Contact Form 7 Integration For WooCommerce

Steps to create an affiliate registration form using Contact Form 7

↑ Back to top

Create a new form

↑ Back to top
  1. Go to WordPress Admin > Contact > Add New.
  2. Enter a suitable form title.

Set up Additional Settings

↑ Back to top
  1. Click on the Additional Settings tab, and add the following:
    1. afwc_registration: on – This setting enables the form to be an affiliate registration form.
    2. skip_mail: on – This setting disables the emails sent by Contact Form 7 upon form submission. We recommend enabling this to ensure that only the emails related to the affiliate program go to the store admin and affiliates upon form submission. You can learn more about the emails sent by the affiliate program from here.
  2. Click on Save.

Customize the form

↑ Back to top
  1. Go to the Form tab.
  2. Now you will see eight (8) new form tags (learn more) to add all the default affiliate registration fields.
  3. Default affiliate registration form tags:
    1. Affiliate Registration Form: Email Address (Field name: afwc_email) – The affiliate’s Email address (Required/mandatory field).
    2. Affiliate Registration Form: First Name (Field name: afwc_first_name) – Affiliate’s first name.
    3. Affiliate Registration Form: Last Name (Field name: afwc_last_name) – Affiliate’s last name.
    4. Affiliate Registration Form: Password (Field name: afwc_password) – Password for registration (Required/mandatory field).
    5. Affiliate Registration Form: Confirm Password (Field name: afwc_confirm_password) – This field is used to prevent errors caused by typos or unintentional mismatches during the initial password entry in the Affiliate Registration Form: Password field (Required field).
      1. It’s related to the initial password field and works only when that field is present.
    6. Affiliate Registration Form: PayPal Email Address (Field name: afwc_paypal_email) – Affiliate’s PayPal email address for payout.
    7. Affiliate Registration Form: Website URL (Field name: afwc_website) – Affiliate’s website link.
    8. Affiliate Registration Form: Referral affiliate user ID (Field name: afwc_parent_id) – The user ID of the affiliate who referred.
      1. This is useful in multi-level affiliate programs, and this tag appears only when the Multi-tier affiliate program setting is enabled.
      2. The affiliate who referred the user will become the parent affiliate.
      3. This field takes numbers as input. We recommend keeping 1 as the minimum value. It can take 0(zero) as input too.affiliate-contact-form-7-parent-ID
      4. If someone tries to add a user ID that does not exist on your site, it will show an error.

Important note

  1. Enable the Required field for Field type where the input is mandatory/required.affiliate-contact-form-7-email
  2. Do not change the Field Name (the name attribute) for default affiliate registration form fields.

Tip for Custom Fields

  1. You can add as many custom fields as you want. Learn more about adding form fields from this documentation.
  2. For custom fields, we recommend adjusting the default Contact Form 7 field names to something relevant:
    1. For example, when adding a text field for an affiliate address using the form tag generator, the default field name will be something like text-121. We recommend changing it to a more meaningful name, such as street-address, to clearly reflect its purpose. This way, the field will appear as Street Address instead of Text 121 during the approval process(learn more) and under the Profile tab of the affiliate on WordPress Admin > WooCommerce > Affiliates > Dashboard, as well as in the email.
    2. The hyphen’s ( – ) in the field name converts to a space when viewing the input on the Profile tab of WordPress Admin > WooCommerce > Affiliates > Dashboard (i.e. street-address as the name for the Street Address field).

Configure the messages

↑ Back to top

Under the Messages tab, you can configure messages to show to affiliates after they submit the form.

The plugin adds five editable messages – in addition to response messages provided by Contact Form 7 in the following scenarios:

  1. The user’s request has been successfully submitted and is awaiting approval as an affiliate.
  2. The user is successfully registered as an affiliate.
  3. The user has already signed up and their request is pending for review.
  4. The user’s request to sign up for an affiliate program was rejected previously.
  5. The user is already registered as an affiliate.

You can edit these messages to fit your needs.

Save and display the form

↑ Back to top
  1. Once you’ve finished customizing the form, click Save.
  2. Use the shortcode provided to add the affiliate registration form to any page or post on your site – to preview/test the form.

Existing/logged-in users

↑ Back to top

Learn more from here.

Actions after affiliate submits form

↑ Back to top
  1. Approve/reject affiliate requests and see what details they have entered in the form
  2. Email notifications

Feature request

↑ Back to top

Have a feature request or enhancement suggestion for Affiliate For WooCommerce? Submit a feature request or send it to us from here.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.