Setting up the export of product descriptions from 1C to 1C-Bitrix

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
    1177
  • 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
    747
  • 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 Product Description Export from 1C to 1C-Bitrix

Product descriptions in CommerceML are transmitted in the <Description> tag of the product item. By default, 1C exports the "Full Name" field there — which is useless for an online store. SEO copywriters write texts on the website, while technical specifications are managed in 1C — the configuration task comes down to ensuring neither system overwrites the other's data.

What 1C Exports by Default

In the standard website exchange handler in UT 10/11, the <Description> tag is populated with the "Name" or "Full Name" field of the product item. Detailed descriptions are not provided for in standard 1C configurations — they are added via additional attributes or custom product attributes.

Adding a "Description" Attribute in 1C

In the 1C configurator or via the interface Administration → General Settings → Additional Attributes and Information:

  • Add the attribute "Website Description" with type "String" (unlimited length)
  • Attribute code: WebsiteDescription

In the XML export handler (the standard "ExportProductsCommerceML" processing module or the built-in UT 11 handler) — modify the population of the <Description> tag so that it takes the value from the new attribute instead of the standard name field.

Mapping on the 1C-Bitrix Side

By default, <Description> from the XML is mapped to the DETAIL_TEXT field of the info block element. To split the short (PREVIEW_TEXT) and full description:

\Bitrix\Main\EventManager::getInstance()->addEventHandler(
    'iblock',
    'OnIBlockElementBeforeAdd',
    function(\Bitrix\Main\Event $event) {
        $fields = $event->getParameter('fields');
        if (!empty($fields['DETAIL_TEXT'])) {
            $plain = strip_tags($fields['DETAIL_TEXT']);
            $fields['PREVIEW_TEXT'] = mb_substr($plain, 0, 300);
        }
        return new \Bitrix\Main\EventResult(
            \Bitrix\Main\EventResult::SUCCESS,
            ['fields' => $fields]
        );
    }
);

Protecting Descriptions from Overwriting

The main risk: an SEO specialist wrote a unique text for a product card, and the next 1C exchange overwrote it with a technical description from the database. Two protection methods:

Via module settings: in Settings → Online Store → Fields to Update on Exchange, uncheck the DETAIL_TEXT field.

Via a handler with a lock flag: add a SEO_DESCRIPTION_LOCK element property (type: list, values: Y/N). The OnIBlockElementBeforeUpdate handler checks the flag:

if ($existingElement['PROPERTY_SEO_DESCRIPTION_LOCK_VALUE'] === 'Y') {
    unset($fields['DETAIL_TEXT'], $fields['PREVIEW_TEXT']);
}

The flag is set by the content editor when saving unique text. Managers can see in the admin product card whether the text is protected from overwriting.

Technical Specifications vs. Marketing Descriptions

Best practice: export technical specifications from 1C (weight, dimensions, material composition) to dedicated info block properties. Write marketing descriptions on the website and protect them from overwriting. This provides a clear separation of responsibilities: 1C is responsible for data accuracy, the website is responsible for text quality.

Setup Timeline

Configuring description export with 1C customisation and overwrite protection — 4–8 hours. With development of a lock flag management interface — 1 day.