YayPricing-WooCommerce Dynamic Pricing & Discounts
  • Getting Started
    • Introduction
    • How to Install
    • Enter License Key
    • System Requirements
    • How To Update YayPricing
    • Uninstall and Delete
  • Features
    • Product Pricing
      • Simple Adjustment
      • Bulk Pricing
      • Product Bundle
      • BOGO (same product)
      • Buy X Get Y
        • Change free gifts
      • Tiered Pricing
      • Product fee
    • Cart Discounts
    • Checkout Fees
      • Reduce Shipping Fee
      • Add Custom Fee
      • Add Custom Fee based on Shipping Fee
    • Exclusions
      • Product Exclusions
      • Coupon Exclusions
    • Product Collections
    • Shortcodes
    • Schedule
    • Usage Limit
    • Export/Import
      • Import Bulk Pricing Ranges
  • Rule Settings
    • Filtered products
    • Count quantity by
    • Conditions
      • Single condition
      • Combined condition
    • Pricing types
  • Global Settings
    • General
    • How the rules are applied
    • Product sale display
    • Pricing table
    • Countdown timer
    • Encourage notice
    • Shortcode
    • Import/Export
  • Use Cases
    • Buy X get Y
    • Sale 30% off from the third item
    • Order discount
    • Free shipping
    • First time order discount
    • Category discount
    • Free gift coupon
    • Cheapest cart item
    • Bundle discount
    • 3 for $100
  • Reports
  • Compatibility
    • WooCommerce Brands
    • YITH WooCommerce Brands
    • Integrate with Advanced Product Fields
  • Why Upgrade?
  • OTHER LINKS
    • FAQs
    • Changelog
    • Useful Links
    • Support
Powered by GitBook
On this page
  • How to buy 2 items and get another item as a gift.
  • How to buy 2 items and get the cheapest item free.

Was this helpful?

  1. Use Cases

Buy X get Y

PreviousUse CasesNextSale 30% off from the third item

Last updated 2 months ago

Was this helpful?

How to buy 2 items and get another item as a gift.

In this tutorial, let's explore how to buy 2 pairs of shoes get 1 cap for free.

Discussion steps:

  • Pricing settings

  • Conditions

  • Settings

  • Application

To get started with this, we will go through YayCommerce >> YayPricing >> Product Pricing >> Add Rule. Then select the Buy X Get Y rule (the X+Y variation).

Pricing settings.

After selecting the Buy X Get Y rule, then we go ahead to configuring the price settings, as seen in the screenshot below;

  1. The "Buy Products" field allows you to select the products that users must purchase in order to receive the discount.

  2. The "Get Products" field allows you to specify the discounted item that the promotion will apply to.

Conditions

You can set conditions to further define when the rule should be applied and when it should not be applied to customers. In this example, we set the rule to apply only when the cart subtotal is greater than $100.

Settings

The screenshot below shows the settings that can be applied to our rule. There are up to 5 checkboxes that can be activated to apply the four available settings in this case. However, we have only checked boxes (1) and (4) to display the offer description on the product page and enable the promotion schedule.

(2).When this box is checked, the description set in box (1) will only be shown to customers when the specified conditions are met.

(3).When this box is checked, customers will see a tooltip text on the final price in the Cart page after the pricing rule is applied to their cart items.

(5). Check this box to limit the number of times a customer can enjoy the discount rule.

We saved the changes!

Application

Offer description in the X product page.

1 quantity of Y is automatically added to the cart after we've added 2 or more quantities of X product.

How to buy 2 items and get the cheapest item free.

Pricing settings.

In this case, instead of selecting the "Free" option in the Item Get type, choose "Discount" and set it to a 100% discount, as shown in the reference below.

Additionally, don't forget to select the "Cheapest One" option to make the cheapest item free.

Conditions

To restrict the promotion to users with a coupon code, you should set the condition accordingly as a reference below.

The item with the lower price will be given as a free gift on the cart page when the user applies the coupon.

Campaign table
Pricing rule settings
Conditions tab
Settings
Cart
Pricing rule settings
Conditions