Supplier catalogs

How to remove YML offers without picture

2026-06-29
Task

Some supplier YML offer items have no picture or an empty picture. These products should not be exported.

Short answer

Add an export condition to offer: picture is not empty. The whole product without an image will be excluded.

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 settings for the repeated product node.
  3. Add an export condition for picture: picture is not empty.

    Export condition
    The condition is applied to the whole item.

Before / after

Before

source data
<yml_catalog date="2026-06-29 10:00">
  <shop>
    <offers>
      <offer id="YML-21001"><name>Hudson lamp</name><vendorCode>LA-21001</vendorCode><price>1290.00</price><picture>https://cdn.example.com/en/la-21001.jpg</picture></offer>
      <offer id="YML-21002"><name>Parker chair</name><vendorCode>KR-21002</vendorCode><price>8400.00</price></offer>
      <offer id="YML-21003"><name>Harbor shelf</name><vendorCode>PN-21003</vendorCode><price>990.00</price><picture></picture></offer>
    </offers>
  </shop>
</yml_catalog>

After

result
<yml_catalog date="2026-06-29 10:00">
  <shop>
    <offers>
      <offer id="YML-21001"><name>Hudson lamp</name><vendorCode>LA-21001</vendorCode><price>1290.00</price><picture>https://cdn.example.com/en/la-21001.jpg</picture></offer>
    </offers>
  </shop>
</yml_catalog>

What to keep in mind

  • Place the condition on offer, not on the picture field itself, so the whole product is removed.
  • If only links starting with http:// or https:// are allowed, use regular expression ^https?:// (matches a value that starts with http:// or https://).

Process data faster with Eofferix

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

Sign up