Bonus: Using Your Own Formula for Bundle Discount

For advanced setups, YayPricing lets you configure bundle rules with formulas. Instead of sticking to fixed percentages or flat discounts, you can create custom pricing logic that perfectly matches your sales strategy.

When clicking to enable “Using formula", auto-disable the pricing rule above.

The formula has the form of {n} * quantity and {n} * pricing.

For example, by combining these with numbers {n}, you can set up unique bundle deals like “Buy 3 items for a discount of 10%” - we have the bundle discount, like purchasing 3 products will get 10% discount, and it counts on.

Similar to regular pricing rules, formula-based discounts can apply in three different scenarios:

  • Single item

  • Whole bundle

  • Filter (for example: cheapest item)

Below are three examples to help you understand how each setup works.

Applying the Discount to Each Individual Item

In this scenario, the bundle rule affects every item individually in the cart.

This means when the required quantity is reached, each product in the bundle receives the calculated discount.

How the Logic Works

The discount increases based on the total quantity purchased.

Example:

  • Purchase 3 products10% discount on each item

  • Purchase 6 products20% discount on each item

  • Purchase 9 products30% discount on each item

And the discount continues increasing as the quantity grows.

How to set up
How it works on the front end

Applying the Discount to the Entire Bundle

In this setup, the discount applies to the total value of the bundle, instead of each product separately.

YayPricing will automatically distribute the discount across items in the cart, starting from the first item until the full discount value is applied, then continuing to the next item if necessary.

Example

If a customer purchases 6 products, the rule applies:

  • 20% discount on the entire bundle

This discount is calculated based on the total cart value of the eligible products.

How to set up
How it work on the front ends

Applying the Discount to the Cheapest Item

In this scenario, the formula rule applies only to the cheapest product within the bundle.

The discount still scales based on the total quantity purchased, but only the cheapest item receives the discount.

Example

  • Buy 3 items10% off the cheapest item

  • Buy 6 items20% off the cheapest item

  • Buy 9 items30% off the cheapest item

You can also configure how many cheapest items are affected by the rule.

How to set up
How it works on the front end

Last updated

Was this helpful?