Supplier catalogs

How to keep CommerceML products by base unit

2026-06-29
Task

The 1C export contains products in pieces and kilograms. This catalog needs only products where БазоваяЕдиница is pcs.

Short answer

Add an export condition to Товар: БазоваяЕдиница must match ^pcs$ (matches a value that is exactly pcs).

How to do it in Eofferix

  1. In the XML/YML snapshot, select the repeated Товар node.

  2. Open the node settings.

    Opening Товар settings
    The animation shows opening settings for the repeated product node.
  3. Method 1: set БазоваяЕдиница Equals pcs.

    Export condition
    This is one condition variant; the other variants do not need to be added.
  4. Method 2: keep regular expression ^pcs$ (matches a value that is exactly pcs) as the strict option.

    Export condition
    This is one condition variant; the other variants do not need to be added.

Before / after

Before

source data
<КоммерческаяИнформация ВерсияСхемы="2.10">
  <Каталог>
    <Товары>
      <Товар>
        <Ид>SKU-18001</Ид>
        <Артикул>LA-18001</Артикул>
        <Наименование>Hudson lamp</Наименование>
        <БазоваяЕдиница>pcs</БазоваяЕдиница>
      </Товар>
      <Товар>
        <Ид>SKU-18002</Ид>
        <Артикул>KR-18002</Артикул>
        <Наименование>Parker chair</Наименование>
        <БазоваяЕдиница>kg</БазоваяЕдиница>
      </Товар>
      <Товар>
        <Ид>SKU-18003</Ид>
        <Артикул>PN-18003</Артикул>
        <Наименование>Harbor shelf</Наименование>
        <БазоваяЕдиница>pcs</БазоваяЕдиница>
      </Товар>
    </Товары>
  </Каталог>
</КоммерческаяИнформация>

After

result
<КоммерческаяИнформация ВерсияСхемы="2.10">
  <Каталог>
    <Товары>
      <Товар>
        <Ид>SKU-18001</Ид>
        <Артикул>LA-18001</Артикул>
        <Наименование>Hudson lamp</Наименование>
        <БазоваяЕдиница>pcs</БазоваяЕдиница>
      </Товар>
      <Товар>
        <Ид>SKU-18003</Ид>
        <Артикул>PN-18003</Артикул>
        <Наименование>Harbor shelf</Наименование>
        <БазоваяЕдиница>pcs</БазоваяЕдиница>
      </Товар>
    </Товары>
  </Каталог>
</КоммерческаяИнформация>

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up