Supplier catalogs

How to remove CommerceML products without picture

2026-06-29
Task

Some CommerceML products have no Картинка tag or an empty tag. These items should not be loaded into the catalog.

Short answer

Add an export condition to Товар: Картинка is not empty. The product without an image is removed as a whole.

How to do it in Eofferix

  1. In the XML/YML snapshot, select the repeated Товар node.

  2. Open the node settings.

    Opening Товар settings
    The animation shows opening settings for the repeated product node.
  3. Add an export condition for Картинка: Картинка is not empty.

    Export condition
    The condition is applied to the whole item.

Before / after

Before

source data
<КоммерческаяИнформация ВерсияСхемы="2.10">
  <Каталог>
    <Товары>
      <Товар><Ид>SKU-24001</Ид><Артикул>LA-24001</Артикул><Наименование>Hudson lamp</Наименование><Картинка>import_files/la-24001.jpg</Картинка></Товар>
      <Товар><Ид>SKU-24002</Ид><Артикул>KR-24002</Артикул><Наименование>Parker chair</Наименование></Товар>
      <Товар><Ид>SKU-24003</Ид><Артикул>PN-24003</Артикул><Наименование>Harbor shelf</Наименование><Картинка></Картинка></Товар>
    </Товары>
  </Каталог>
</КоммерческаяИнформация>

After

result
<КоммерческаяИнформация ВерсияСхемы="2.10">
  <Каталог>
    <Товары>
      <Товар><Ид>SKU-24001</Ид><Артикул>LA-24001</Артикул><Наименование>Hudson lamp</Наименование><Картинка>import_files/la-24001.jpg</Картинка></Товар>
    </Товары>
  </Каталог>
</КоммерческаяИнформация>

What to keep in mind

  • is not empty checks that the XML value exists, but it does not download the image file.
  • If only image files are allowed, use regular expression \.(?:jpg|jpeg|png|webp)$ (matches values ending with .jpg, .jpeg, .png, or .webp).

Process data faster with Eofferix

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

Sign up