To enable support for WooCommerce, go to AffiliateWP » Settings » Integrations and check the box that says WooCommerce:

Once enabled, AffiliateWP will automatically generate referral records when a customer is successfully referred to your store via an affiliate link.

In AffiliateWP » Referrals, the Reference column refers to the order ID in WooCommerce:

WooCommerce reference

Clicking on the number in the Reference column will take you directly to the order details page in WooCommerce.

In the Order Notes section of the Edit Order screen will be a note indicating that a referral was created for the purchase:

WooCommerce order referral


Affiliate Coupon Tracking

To enable affiliate coupon tracking, navigate to Marketing » Coupons and create a new coupon code. At the bottom of the Add New Coupon screen, there will be an input field called Affiliate Discount?:

Simply begin typing the name of the affiliate you wish to connect the discount code to and select the affiliate from the list of user accounts found:

Any time this discount code is redeemed, and a purchase or conversion is completed, the connected affiliate will be awarded a referral.

Product Specific Rates

The referral rate and rate type used to calculate an affiliate’s commission amount on sales can be set on a per-product basis. To set a product specific rate and rate type, go to the Edit product screen for a specific product and enter the value you wish to use in the Affiliate Rate field and select the Affiliate Rate Type from the list in the AffiliateWP section:

WooCommerce affiliate rate type

Subscription Rates

If you are using the Recurring Referrals addon to create referrals from WooCommerce Subscriptions, you can now specify custom settings for referrals created from  subscription payments at the product level.  You can set the recurring rate, rate type and also limit the recurring referrals created for recurring payments per-product subscription:

WooCommerce product-specific recurring settings

Please see the notes section below for important notes about how product rates are calculated

Product Category Rates

WooCommerce product categories can also have a custom referral rate.  This would allow you to set the referral rate for all the products within that category vs having to set a referral rate on each product individually. 

To set a product category-specific rate, go to the edit screen for a WooCommerce category (Products » Categories) and enter the value you wish to use in the Referral Rate field. If you’d like it to be zero-amount referral entry, use the value 0.00.

WooCommerce category referral rate

Product Variation Specific Rates

WooCommerce product variations may also have a custom referral rate. To specify a custom rate for a product variation, visit the Variations tab for that product and set the rate in the Referral Rate field. You can also select the Referral Rate Type:

WooCommerce variation specific referral rates


Note: Please note the following about the WooCommerce integration:

  • There are three important notes about product specific rates:
    1. If an affiliate has an affiliate specific rate, their custom rate will always take precedence of this product-specific rate
    2. Referrals can be entirely disabled for a product by setting the rate to 0
    3. If no variable product rate is set, the product rate is used, and if no product rate is set, the default rate is used.
  • As of WooCommerce v2.3 discounts are now calculated differently. If you are experiencing referrals with discounts being calculated incorrectly make sure you update to WooCommerce v2.3+.