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. Add an export condition for БазоваяЕдиница: БазоваяЕдиница ^pcs$.

    Export condition
    The condition is applied to the whole item.

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</БазоваяЕдиница></Товар>
    </Товары>
  </Каталог>
</КоммерческаяИнформация>

What to keep in mind

  • If one exact unit is needed, use equals without a regular expression.
  • CommerceML tag names are kept as they appear in the 1C export; they are part of the format.

Process data faster with Eofferix

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

Sign up