Supplier catalogs

How to keep only YML offers with a valid url

2026-06-29
Task

Some supplier YML offer nodes contain an empty or relative url. The import should keep only products with an absolute link.

Short answer

Add an export condition to the offer node: url must match ^https?:// (matches a value that starts with http:// or https://).

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 url: url ^https?://.

    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-6001" available="true"><name>Hudson lamp</name><url>https://supplier.example/catalog/sku-6001</url><currencyId>USD</currencyId><price>1290.00</price></offer>
      <offer id="YML-6002" available="true"><name>Parker chair</name><url>/catalog/sku-6002</url><currencyId>USD</currencyId><price>8400.00</price></offer>
      <offer id="YML-6003" available="true"><name>Harbor shelf</name><url></url><currencyId>USD</currencyId><price>990.00</price></offer>
    </offers>
  </shop>
</yml_catalog>

After

result
<yml_catalog date="2026-06-29 10:00">
  <shop>
    <offers>
      <offer id="YML-6001" available="true"><name>Hudson lamp</name><url>https://supplier.example/catalog/sku-6001</url><currencyId>USD</currencyId><price>1290.00</price></offer>
    </offers>
  </shop>
</yml_catalog>

What to keep in mind

  • Place the condition on offer so the whole item is removed, not only the link field.
  • If the supplier sends relative links and the base domain is known, build the full URL first and then run this check.

Process data faster with Eofferix

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

Sign up