Supplier catalogs

How to keep only selected categoryId values in a supplier YML feed

2026-06-29
Task

The supplier YML feed contains active categories 101 and 205, while archive category 999 must not be imported.

Short answer

If you need one category, set categoryId Equals 101. If several categories must be kept by one condition, use regular expression ^(101|205)$ (matches a value that is exactly 101 or 205).

How to do it in Eofferix

  1. In the XML/YML snapshot, select the repeated offer node.

  2. Open the node settings.

    Opening offer settings
    The animation shows opening the repeated product node settings.
  3. Single-category option: in Export conditions, select categoryId, condition Equals, value 101.

    Export condition
    This is one condition variant; the other variants do not need to be added.
  4. Multiple-category option: use categoryId Regular expression ^(101|205)$ (matches a value that is exactly 101 or 205).

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

Before / after

Before

source data
<yml_catalog date="2026-06-29 10:00">
  <shop>
    <offers>
      <offer id="YML-1001" available="true">
        <name>Hudson lamp</name>
        <categoryId>101</categoryId>
        <price>24.90</price>
      </offer>
      <offer id="YML-1002" available="true">
        <name>Parker chair</name>
        <categoryId>205</categoryId>
        <price>139.00</price>
      </offer>
      <offer id="YML-1003" available="true">
        <name>Harbor shelf</name>
        <categoryId>999</categoryId>
        <price>16.40</price>
      </offer>
    </offers>
  </shop>
</yml_catalog>

After

result
<yml_catalog date="2026-06-29 10:00">
  <shop>
    <offers>
      <offer id="YML-1001" available="true">
        <name>Hudson lamp</name>
        <categoryId>101</categoryId>
        <price>24.90</price>
      </offer>
      <offer id="YML-1002" available="true">
        <name>Parker chair</name>
        <categoryId>205</categoryId>
        <price>139.00</price>
      </offer>
    </offers>
  </shop>
</yml_catalog>

Process data faster with Eofferix

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

Sign up