1C Integration via CommerceML

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

1C Integration via CommerceML with Website

CommerceML is a standard for exchanging commercial data between 1C and trading systems. Developed by 1C company, widely supported by Russian CMS (1C-Bitrix, OpenCart, WordPress + WooCommerce). For custom websites — CommerceML parser implementation is needed.

CommerceML Format

CommerceML is an XML format with several file types:

  • import.xml — product catalog (nomenclature, groups, properties)
  • offers.xml — offers (prices, stock, characteristics)
  • orders.xml — orders (export from CMS to 1C)
  • import.xml in response from 1C — order status updates

import.xml Structure

<?xml version="1.0" encoding="UTF-8"?>
<CommercialInformation SchemaVersion="2.05">
    <Catalog ContainsOnlyChanges="false">
        <Goods>
            <Good>
                <Id>550e8400-e29b-41d4-a716-446655440001</Id>
                <Name>Men's Blue T-shirt</Name>
                <Groups><Id>category-001</Id></Groups>
                <TaxRate>VAT20</TaxRate>
                <Picture>images/tshirt.jpg</Picture>
                <PropertyValues>
                    <PropertyValue>
                        <Id>prop-color</Id>
                        <Value>Blue</Value>
                    </PropertyValue>
                </PropertyValues>
            </Good>
        </Goods>
    </Catalog>
</CommercialInformation>

offers.xml Structure

<OfferPackage>
    <Offers>
        <Offer>
            <Id>550e8400-e29b-41d4-a716-446655440001#size-XL</Id>
            <Name>Men's Blue T-shirt XL</Name>
            <Prices>
                <Price>
                    <PriceTypeId>retail</PriceTypeId>
                    <PricePerUnit>1500.00</PricePerUnit>
                    <Currency>RUB</Currency>
                </Price>
            </Prices>
            <Quantity>25</Quantity>
        </Offer>
    </Offers>
</OfferPackage>

Exchange Protocol

1C initiates exchange session through HTTP requests to CMS by specific protocol:

GET /exchange.php?type=catalog&mode=checkauth
→ Authorization

GET /exchange.php?type=catalog&mode=init
→ Initialization (buffer size, zip support)

POST /exchange.php?type=catalog&mode=file&filename=import.xml
→ File upload (may be split for large files)

GET /exchange.php?type=catalog&mode=import&filename=import.xml
→ Processing start

PHP Handler Implementation

class CommerceML
{
    public function handle(Request $request): Response
    {
        $mode = $request->query('mode');
        $type = $request->query('type');

        return match($mode) {
            'checkauth' => $this->checkAuth(),
            'init'      => $this->init(),
            'file'      => $this->saveFile($request),
            'import'    => $this->processImport($request->query('filename')),
            'query'     => $this->exportOrders(),  // export orders to 1C
            'success'   => $this->markOrdersExported(),
            default     => response('failure', 400)
        };
    }

    protected function processImport(string $filename): Response
    {
        $xml = simplexml_load_file(storage_path("cms-exchange/{$filename}"));
        // Parse and save products to database
        dispatch(new ProcessCommerceMLImport($xml));
        return response('success');
    }
}

Incremental Updates

After initial full synchronization, subsequent exchanges can be incremental: ContainsOnlyChanges="true". This significantly speeds up synchronization.

Characteristics and Variations

Products with variations (size, color) in CommerceML are represented as single nomenclature with multiple offers. Each offer has unique Id like {product-guid}#{characteristic-guid}. Need to correctly map this to product variations in website database.

Development Timeline: 2–4 weeks for implementing CommerceML parser and bidirectional exchange.