Setting up 1C-Bitrix shopping cart rules

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1173
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    811
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    564
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    745
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    655
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    976

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.