Supplier catalogs

How to skip discontinued products in a supplier XML feed

2026-06-28
Task

The supplier keeps retired products in the XML feed and marks them with status = discontinued. These offer elements must be removed completely while active products stay.

Short answer

Open the offer node settings and add an element-level export condition: the status path is not equal to discontinued.

How to do it in Eofferix

  1. Open the offer node settings in the XML editor.

    Opening offer node settings in the XML editor
    The animation shows opening the settings for the repeating offer element.
  2. Add an export condition for the whole element: status is not equal to discontinued.

    XML offer export condition settings in Eofferix
    The condition checks a child value of offer, but removes the whole product element.
  3. Save the settings and run the export preview on several supplier items.

Before / after

Before

source data
<catalog>
  <offers>
    <offer id="1001"><sku>SKU-1001</sku><name>Hudson lamp</name><status>active</status><price>24.90</price><stock>12</stock></offer>
    <offer id="1002"><sku>SKU-1002</sku><name>Parker chair</name><status>discontinued</status><price>139.00</price><stock>0</stock></offer>
    <offer id="1003"><sku>SKU-1003</sku><name>Harbor shelf</name><status>active</status><price>16.40</price><stock>27</stock></offer>
  </offers>
</catalog>

After

result
<catalog>
  <offers>
    <offer id="1001"><sku>SKU-1001</sku><name>Hudson lamp</name><status>active</status><price>24.90</price><stock>12</stock></offer>
    <offer id="1003"><sku>SKU-1003</sku><name>Harbor shelf</name><status>active</status><price>16.40</price><stock>27</stock></offer>
  </offers>
</catalog>

What to keep in mind

  • Put the condition on offer, not only on status, so the whole product block is skipped.
  • If the supplier uses obsolete or archived, add more conditions or normalize the status first.
  • This filter is useful for large XML feeds where retired products remain for history.

Process data faster with Eofferix

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

Sign up