Configure 1C-to-Bitrix Unit Export: Setup & Optimization

Mastering Unit Export from 1C to Bitrix: Step-by-Step Configuration Imagine: a building materials catalog with 5,000 products, each with a unique unit type. The exchange with 1C is set up, but on the site units appear only as pieces, although in 1C they are specified in meters and packages. Resul

Our competencies:

Frequently Asked Questions

Latest works

  • B2B ADVANCE company website development
    B2B ADVANCE company website development
    1460
  • Website development for FIXPER company
    Website development for FIXPER company
    1019
  • Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    764
  • Development based on 1C Enterprise for MIRSANBEL
    Development based on 1C Enterprise for MIRSANBEL
    882
  • Website development on CRM Bitrix24 for DOLBIMBY
    Website development on CRM Bitrix24 for DOLBIMBY
    809
  • Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    1166

Mastering Unit Export from 1C to Bitrix: Step-by-Step Configuration

Imagine: a building materials catalog with 5,000 products, each with a unique unit type. The exchange with 1C is set up, but on the site units appear only as pieces, although in 1C they are specified in meters and packages. Result: customers get confused in orders, managers recalculate manually, errors increase. A typical situation we solve in 2-3 days, saving approximately $2,500 annually by eliminating manual corrections.

At first glance, everything is simple: there is OKEI, there is a standard CommerceML data exchange. But when the nomenclature runs into thousands of items, and a product can be sold in meters, square meters, 50-meter rolls, or 6-piece packages—fine-tuning is essential. As integrators, we face this regularly. Over 8+ years, we have configured measurement unit export for hundreds of catalogs, from building materials to cable products.

How Measurement Units are Transferred from 1C to Bitrix

In 1C:UT, units are stored in the Classifier of Units of Measurement (OKEI) directory. Each unit has an OKEI code (796 = piece, 006 = meter, 055 = kg), a short and full name. Nomenclature can have multiple units:

  • Base unit — for warehouse accounting.
  • Sales unit — for customer display.
  • Additional units with conversion factors.

Example: cable is accounted in meters (base), sold in 100-meter coils. Customer orders '2 coils' → warehouse receives an order for 200 meters.

According to CommerceML 2.08, the unit is transmitted in the BaseUnit tag:

<Item> <Id>product-guid</Id> <Name>Cable NYM 3x2.5</Name> <BaseUnit CodeOKEI="006" FullName="Meter">m</BaseUnit> </Item> 

Bitrix saves the unit in the MEASURE field of the information block and in the b_catalog_measure table. Additional units with factors are transmitted via UnitsOfMeasurement:

<UnitsOfMeasurement> <UnitOfMeasurement> <Code>coil</Code> <FullName>Coil</FullName> <ShortName>coil</ShortName> <Factor>100</Factor> <PriceInclTax>false</PriceInclTax> </UnitOfMeasurement> </UnitsOfMeasurement> 

The standard exchange module creates unit records in b_catalog_unit with factors. But if a product has a packaging ratio (e.g., sold only in whole coils), this needs to be handled separately.

Why Packaging Multiplicity Matters

You cannot buy 'half a box' of nails or half a roll of wallpaper. In Bitrix, the field MEASURE_RATIO handles this—the quantity multiple. By default it equals 1 (pieces), but can be fractional for weight-based products (0.001 for grams).

During exchange with 1C, packaging ratio is often transferred in additional attributes. In the import handler we capture this:

if (isset($arXML['PACKAGE_RATIO'])) { CCatalogProduct::Update($elementId, [ 'MEASURE_RATIO' => floatval($arXML['PACKAGE_RATIO']), ]); } 

Automated configuration reduces catalog update time by 5 times compared to manual entry. This is 3× faster than using standard exchange without custom handlers.

Weight-Based Products: Nuances

For weight-based products (cement, cereals), accuracy down to 0.001 kg is needed. Bitrix allows setting MEASURE_RATIO < 1, and in the cart—a step field. The price is tied to the base unit (1 kg), total = price × entered quantity. This standard is often overlooked. Time savings on catalog updates—up to 60%.

Building Materials: Multi-Unit Catalog

A construction supply store is a classic example. One product can have multiple sales units:

Product Accounting Unit Sales Unit Factor
Laminate Pack (2.04 m²) 2.04
Cable m Coil (100 m) 100
Cement kg Bag (25 kg) 25
Profile m Rod (6 m) 6

Each row is a separate configuration. Manual processing of such catalogs takes weeks. We automate the transfer through CommerceML, including all factors. Our approach is 4× more efficient than manual entry.

Typical Problems and Solutions
Problem Cause Solution
Unit not displayed OKEI code not transmitted Check filling in 1C
Packaging ratio ignored Missing MEASURE_RATIO field Add to import handler
Different units for same product Incorrect configuration in 1C Use additional attributes

Reduction in order errors—up to 40%.

What's Included in the Configuration

The turnkey package includes:

  • Audit of current units in 1C and Bitrix.
  • Custom exchange script modification to transfer additional units and ratio.
  • Setup of conversion factors and tagged catalog caching.
  • Test export of 10-20 products and full synchronization.
  • Training for your manager (1 hour).
  • Documentation of the solution.
  • 12-month warranty on all modifications.

How to Configure Export (Step-by-Step)

  1. Audit current units: Review OKEI codes and factors in 1C.
  2. Modify exchange script: Add handling for UnitsOfMeasurement and MEASURE_RATIO.
  3. Set conversion factors: Configure in 1C and transfer via XML.
  4. Test export: Validate on a subset of products.
  5. Full synchronization: Run and verify.

Project cost: from $1,200 for basic configuration. Saving: up to $2,500 per year from eliminated manual corrections.

Case Study: Wholesale Cable Products Store

From our practice: a cable wholesaler with 4,000 items, all in meters. Sales—in coils of varying lengths (25, 50, 100, 200 m). The buyer selects the number of coils but sees the total length in meters.

Solution:

  • Base unit: meter.
  • Sales unit: coil with factor (taken from 1C for each item).
  • On the product page: field 'Number of coils' + field 'Total meters' with auto-recalculation via JS.
  • In the cart: storage in meters, display in coils.

The factor is transmitted from 1C in <UnitsOfMeasurement>. When nomenclature updates, data updates automatically. Result—a fully automated catalog with correct units; manual work is reduced to zero.

Experience and Guarantees

Our team has been working with Bitrix and 1C integrations for over 8 years. We have completed 40+ projects, from small online stores to distributor catalogs. We provide a 12-month warranty on all modifications. Get a consultation on your task—we will evaluate your project in one day.

Why Our Solution is Better

Automated configuration is 5× faster than manual entry and 3× more reliable than standard exchange modules. Order errors drop by 40%. Achieve consistent unit data across your 1C and Bitrix systems, ensuring accurate order processing and customer satisfaction.