Supplier catalogs

How to take stock from the main warehouse in CommerceML

2026-06-29
Task

A CommerceML product contains several Склад blocks: MAIN and RESERVE. The catalog needs stock only from the main warehouse.

Short answer

Open Количество and add a condition on sibling ИдСклада: the simple option is Equals MAIN. If you only need to remove reserve stock, use Not equal RESERVE; regular expression ^MAIN$ only checks an exact full match.

How to do it in Eofferix

  1. In the XML snapshot, select the Количество value.

  2. Open the value settings.

    Opening XML value settings
    The animation shows opening settings for the selected value.
  3. Method 1: on neighboring ИдСклада, set Equals MAIN.

    XML value condition
    This is one condition variant; the other variants do not need to be added.
  4. Method 2: if you only need to remove reserve stock, use ИдСклада Not equal RESERVE.

    XML value condition
    This is one condition variant; the other variants do not need to be added.
  5. Method 3: keep regular expression ^MAIN$ (matches a value that is exactly MAIN) as a strict check.

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

Before / after

Before

source data
<КоммерческаяИнформация ВерсияСхемы="2.10">
  <ПакетПредложений>
    <Предложения>
      <Предложение>
        <Ид>SKU-9001</Ид>
        <Наименование>Hudson lamp</Наименование>
        <Склады>
          <Склад>
            <ИдСклада>MAIN</ИдСклада>
            <Количество>12</Количество>
          </Склад>
          <Склад>
            <ИдСклада>RESERVE</ИдСклада>
            <Количество>3</Количество>
          </Склад>
        </Склады>
      </Предложение>
      <Предложение>
        <Ид>SKU-9002</Ид>
        <Наименование>Parker chair</Наименование>
        <Склады>
          <Склад>
            <ИдСклада>MAIN</ИдСклада>
            <Количество>5</Количество>
          </Склад>
          <Склад>
            <ИдСклада>RESERVE</ИдСклада>
            <Количество>8</Количество>
          </Склад>
        </Склады>
      </Предложение>
    </Предложения>
  </ПакетПредложений>
</КоммерческаяИнформация>

After

result
<КоммерческаяИнформация ВерсияСхемы="2.10">
  <ПакетПредложений>
    <Предложения>
      <Предложение>
        <Ид>SKU-9001</Ид>
        <Наименование>Hudson lamp</Наименование>
        <Количество>12</Количество>
      </Предложение>
      <Предложение>
        <Ид>SKU-9002</Ид>
        <Наименование>Parker chair</Наименование>
        <Количество>5</Количество>
      </Предложение>
    </Предложения>
  </ПакетПредложений>
</КоммерческаяИнформация>

Process data faster with Eofferix

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

Sign up