Configuring Cart Rules in 1C-Bitrix
Cart rules in Bitrix are a mechanism of the sale module that allows you to modify the cart's contents and prices based on defined conditions: if the order total exceeds N — apply a discount of X%, if a product from group A is present — add a gift, if the quantity exceeds 10 — apply a wholesale price. Configured in Online Store → Discount Management → Cart Rules.
Cart Rule Structure
Each rule consists of three parts:
- Application conditions — what to check: cart total, product quantity, presence of specific products/sections, user group
- Action — what to do: cart discount, product discount, add a gift, block the order
- Priority and compatibility — whether it can be combined with other rules or is an exclusive rule
In the database, rules are stored in b_sale_discount, conditions in b_sale_discount_cond, and actions in b_sale_discount_act.
Common Configuration Scenarios
Discount on reaching a total. Condition: Cart total → greater than or equal to → 5000. Action: Order discount → Percentage → 10%. Important: the discount is applied to the entire cart, not to each product individually. If a discount on a specific product group is needed — the condition must include a section filter.
Gift on condition fulfilment. The "Add gift" action requires the gift product to exist in the catalog. Bitrix adds it to the cart with a price of 0 and the flag IS_GIFT = Y. When the condition is no longer met — it is automatically removed from the cart on the next update.
"N+1" rule (three for the price of two). Condition: quantity of a product from a certain group ≥ 3. Action: 100% discount on the cheapest product in the cart from the same group. This is a non-standard scenario — the standard "discount on the cheapest" action exists in Bitrix, but the configuration requires care.
Priorities and Application Order
If multiple rules can apply simultaneously, the order is determined by the SORT field (priority). The rule with the lower SORT value is applied first. The LAST_DISCOUNT = Y flag means that no other rules are applied after this one.
A common mistake: a store created a "10% off everything" rule and a "5% off orders over 3000" rule, and both discounts are stacked — the buyer gets 14.5% instead of the intended 10%. Solution: for exclusive promotions, set LAST_DISCOUNT = Y.
Configuration Timeline
Configuring standard cart rules via the admin interface — 2–4 hours per rule including testing all scenarios. Complex rules with non-standard conditions or multiple interacting discounts — 1–2 days.







