Setting up gifts for 1C-Bitrix orders

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 Order Gifts in 1C-Bitrix

A gift with order in Bitrix is a product at zero price, automatically added to the basket when marketing rule conditions are met. Implemented through the sale module, discount mechanics and marketing rules.

How it works technically

Gift is a marketing rule action with AddGift type. When conditions are met, the system adds the specified product to the basket with price 0. The product physically exists in the catalog — it's a regular catalog infoblock element with regular inventory.

Data is stored in b_sale_discount (the rule itself), b_sale_discount_action (action type = gift, gift product ID). In the basket, the gift enters b_sale_basket with PRODUCT_PRICE_ID = 0 and gift indicator.

Setting up marketing rule with gift

Store → Marketing → Discounts and promotions → Add:

  1. Condition: for example, Order amount >= 3000 rubles
  2. Action: select Add gift type
  3. Gift product selection: specify specific catalog element
  4. Quantity: how many units of gift to add
  5. Settings: specify priority, promotion period

Inventory nuances

Gift product must have inventory. If inventory is zero, gift won't be added to basket. For promotions with limited gift quantity:

  • Create separate product with limited inventory
  • Configure manager notification when inventory drops to minimum
  • Or use OnSaleBasketItemAdd event handler to control distribution limit

Customer gift selection

Standard mechanism adds specific product automatically. If customer needs to choose from several gifts — this is custom development: gift selection component in basket, handler adding selected product and marking it as gift via b_sale_basket.CUSTOM_PRICE = Y and zero price.

Display in basket and order

In standard cart templates, gift displays at price 0 with "Gift" marking. In custom components, you need to check gift indicator and format markup accordingly so customer understands it's a bonus product, not system error.

Estimated timeframes

Setting up promotion with gift when order from amount X — 3–5 hours, including creating gift product in catalog and verifying display in basket.