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
Open the
offernode settings in the XML editor.
The animation shows opening the settings for the repeating offerelement.Add an export condition for the whole element:
statusis not equal todiscontinued.
The condition checks a child value of offer, but removes the whole product element.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>