Notice: Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.) in /home/d689c45/public_html/wp-includes/functions.php on line 6031
How to Setup WooCommerce Affiliate Links Discount

Our Conditional Discounts for WooCommerce plugin has the ability to give discounts based on affiliation links. Let’s see how to set up a WooCommerce affiliate links discount.

Generally, to set up a discount, we need two essential things which are:

  1. the product
  2. conditional rule to make the discount valid.

Before creating the WooCommerce affiliate links discount, we will create the product list on which we want to apply the discount. You can follow this link to see how to create new product lists on Conditional Discounts for WooCommerce.

Now that we have the product list, we can now set up the WooCommerce affiliate links discount. The rule that allows this is « If Customer is following an affiliation link »

NB: You need to install the Affiliate WP plugin, they provide you with a system that helps you manage affiliate accounts, tracking affiliate links, generate referral URLs and more.

To create the WooCommerce affiliate links discount, the following is needed :

  1. Click on Discounts > New Discount menu to access the new discount page.
  2. After setting up the basic discount properties such as the start and end date, periodicity and user limit, set the rules relationship.
  3. Then click on the Add rules group button to create a new “rules” set.
  4. Select the rule “If Customer is following an affiliation link

WooCommerce affiliate links discount

  1. Choose the specific affiliate link(previously created with affiliate wp) on which to apply the discount
  2. Select the type of discount to apply. Here you have three possibilities (you can apply the discount on product price, cart subtotal or give a free gift).
  3. Select the percentage or fixed amount according to the type chosen in the step above 6  WooCommerce affiliate links discount
  4. Select the previously created product list on which the discount will be applied if you need to apply the discount off some products prices
  5. Choose whether or not to display the discount on product and shop page
  6. Then “Publish”

WooCommerce affiliate links discount

As seen previously, you can set your WooCommerce affiliate links discount and apply it to products or on cart subtotals. Three possibilities are offered to you when you choose to apply it on either products or cart subtotals:

  • Set the percentage to be applied on the product price or the cart subtotal (including taxes or not)
  • The fixed amount to be withdrawn from the product price or the cart subtotal (including taxes or not)
  • Fix the product price
  • Click on “ Publish” to save your work

 

Any questions? We will be glad to read you in the comment box below or via our LiveChat!

2 comments

  1. Kate

    Hi there, is there a limit on the number of affiliated links? I found recently that when I select rule “If Customer is following an affiliation link”, the drop down list of affiliate links does not include some old ones, and the links in existing discounts are actually replaced by the new ones. Any ideas?

    February 10, 2021 at 4:04 pm
    Reply
    • Hermann

      No there is no limit. How many links are you able to fetch?

      February 10, 2021 at 9:40 pm
      Reply

Leave a comment

Your email address will not be published. Required fields are marked *