Supplier catalogs

How to remove supplier YML offers in the wrong currency

2026-06-29
Task

The supplier sent one YML feed with products in several currencies. This import needs only USD.

Short answer

Add an export condition to offer: currencyId must match ^USD$ (matches a value that is exactly USD).

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 currencyId: currencyId ^USD$.

    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-7001" available="true"><name>Hudson lamp</name><currencyId>USD</currencyId><price>1290.00</price></offer>
      <offer id="YML-7002" available="true"><name>Parker chair</name><currencyId>EUR</currencyId><price>92.00</price></offer>
      <offer id="YML-7003" available="true"><name>Harbor shelf</name><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-7001" available="true"><name>Hudson lamp</name><currencyId>USD</currencyId><price>1290.00</price></offer>
      <offer id="YML-7003" available="true"><name>Harbor shelf</name><currencyId>USD</currencyId><price>990.00</price></offer>
    </offers>
  </shop>
</yml_catalog>

What to keep in mind

  • Do not mix currencies in one import unless the receiving system converts prices itself.
  • For another country, replace the currency code in the expression with the actual currencyId from the file.

Process data faster with Eofferix

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

Sign up