1. Home
  2. Knowledge Base
  3. WooCommerce Dynamic Pricing and Discount Rules
  4. Discount Rules
  5. Spend X and Get Y rules
  1. Home
  2. Knowledge Base
  3. WooCommerce Dynamic Pricing and Discount Rules
  4. Spend X and Get Y rules

Spend X and Get Y rules

With the ‘Spend X Get Y’ rule, you can allow users to spend a certain amount in order to receive items free (or discounted). So with this rule you can create offers like ‘Spend $100 to get a free hoodie’.

Configuring the rule

To create a ‘Spend X Get Y’ pricing rule, go to WooCommerce > Fees and Discounts and click ‘Add New’.

Rules Settings

In ‘Rule Settings’ select ‘Spend X Get Y’.

Spend X Get Y

Label

You can add an optional label that will display on the product and cart pages.

Schedule

You can set a status for the rule – either Active, Paused or Scheduled

  • Active – to activate the rule on the front end
  • Paused – to stop the rule on the front end (but keep your settings, ready to be re-activated at a later date)
  • Scheduled – to start and stop the rule at times you specify.

Times and dates

Scheduled rule

If you have selected ‘Scheduled’ as the status, you’ll see start and end dates and times. Just enter the time and date that you would like the discount rule to go live on your site. You can enter an end date and time as well – or leave these blank for the rule to run indefinitely.

Applies To

Applies to setting

Use this setting to determine which products the offer will apply to. Choose from:

  • All items – all items in the store will be eligible for the offer, so the user can spend an amount on any product in the store
  • Specific categories – this will open a new field where you can select which categories are eligible for the offer. The user will need to spend the amount on products from specific categories to qualify for the discount
  • Specific products – this will open a new field where you can select which products are eligible for the offer. The user will need to spend the amount on specific products to qualify for the discount

Spend and Get Settings

Here you can specify how much the user needs to spend and how many items they’ll receive free/discounted.

Spend and get settings

Spend

Enter how much the user needs to spend to qualify for the discount.

Get

Define how many products the user will receive free/discounted.

Max

Enter the maximum number of free/discounted items the user can receive.

Amount Settings

Here you can define the type and value of the discount.

Discount amount settings

Adjustment type

The ‘Adjustment type’ setting defines the type of adjustment. Choose from:

  • Fixed discount
  • Percentage discount
  • Fixed fee
  • Percentage fee

Amount

Once you’ve chosen your adjustment type, enter the value of the adjustment here. Depending on whether you have chosen a fixed or percentage adjustment, the ‘Amount’ setting will either be a price value or a percentage.

To offer free products, just set the adjustment to ‘Percentage Discount’ and enter ‘100’ as the ‘Amount’.

Fixed adjustments per product

WooCommerce discount adjustment settings

If you are using either ‘Fixed fee’ or ‘Fixed discount’ then the amount will be adjusted based on the total, not per item.

If you want to apply your fixed adjustment per item, e.g. $1 per item in the cart, choose ‘Per product’ in the ‘Fixed adjustment type’ field.

Spend Categories Settings

If you’ve chosen ‘Specific categories’ in the ‘Applies to’ setting, you’ll the ‘Spend Categories’ section. Select the categories that the user will need to purchase items from in order to qualify for the rule.

Spend Categories Settings

Spend Products Settings

If you’ve chosen ‘Specific products’ in the ‘Applies to’ setting, you’ll the ‘Spend Products’ section. Select the products that the user will need to purchase items from in order to qualify for the rule.

Spend Products Settings

Get Products Settings

In this field you can choose which product(s) the user will receive free/discounted when they spend over the specified amount.

Get Products Settings

Role settings

If you’d like to apply the rules to a specific role, then you can define the roles here.

Was this article helpful?

Related Articles

  • Buy X for Y Amount rules
    • Plugin: WooCommerce Dynamic Pricing and Discount Rules
    • Content Type: Support Document
  • Order Total rules
    • Plugin: WooCommerce Dynamic Pricing and Discount Rules
    • Content Type: Support Document
  • Buy X Get Y rules
    • Plugin: WooCommerce Dynamic Pricing and Discount Rules
    • Content Type: Support Document
  • Buy X Get X rules (BOGO)
    • Plugin: WooCommerce Dynamic Pricing and Discount Rules
    • Content Type: Support Document
  • Tiered pricing rules
    • Plugin: WooCommerce Dynamic Pricing and Discount Rules
    • Content Type: Support Document
  • Dynamic pricing settings
    • Plugin: WooCommerce Dynamic Pricing and Discount Rules
    • Content Type: Support Document