How does the buy x, pay for y discount work?
Create a quantity offer and understand which units become free when prices differ.
Buy X, pay for Y is a checkout discount in Abicart Plus and Pro. X is the number of qualifying units the buyer must purchase; Y is the number they pay for. The discount appears at checkout. Use a special price when the product page itself should display a reduced price.
Choose whether products may be mixed
With Allow mixing different products enabled, qualifying units are counted together within the discount’s product selection. The number of free units is the number of complete groups of X multiplied by X minus Y. The cheapest qualifying units in the selection receive the reduction first, not a random product or the item added last.
Example: with buy 3, pay for 2 and three qualifying products priced at SEK 100, 200 and 300, the reduction is SEK 100. The buyer pays SEK 500 for those goods, before shipping and other fees. Six qualifying units give two free units, starting with the cheapest. This example assumes a consistent price/VAT display and no competing discounts.
Without mixing, each order line must reach X on its own. Different customer choices can form separate order lines, so different sizes or colours are not automatically counted together. For buy 3, pay for 2, two units give no discount and four units give one free unit within the qualifying line.
Create the discount and its selection
- Open Discounts → New discount → Buy X, pay for Y discount.
- Use a clear name that can appear at checkout and on the order confirmation. Enter, for example, Buy 3 and Pay for 2. Y must be less than X.
- Choose whether different products may be mixed. Explicitly check this in the saved discount.
- Set the start and end date/time for a limited offer. Check the full dates and times, for example 00.00–23.59 for a full day.
- Under Product selection, choose the full assortment, specific products or product groups. If products belong to several groups, also check the shop setting for primary versus other product groups.
- Set Customer selection to everyone, logged-in customers, visitors who are not logged in or a specific customer group. Save.
Add a code if the offer requires one
Enable Use codes, choose Add code and enter a code or generate one. Set a usage count if the code should be limited; otherwise that limit is absent. A code does not override product or customer selection. Displaying a code-entry field does not itself create a discount.
Check the calculation before the campaign
Compare a cart below the threshold, exactly at it and above X units. When mixing, use different prices and include a product outside the selection. Check login state, any code and timing. Competing discounts do not automatically stack: only one discount applies per product. A gift certificate is a payment instrument, not a general way to discount the order total.
Quick start
- Enter X and Y and choose mixing.
- Select products, customers, dates and any code.
- Save and compare qualifying units with different prices.
- Check the checkout reduction before broad campaign use.
Requires Abicart Plus or Pro with discounts enabled. Campaign selection and conditions still apply when the theme displays a code field.