Good day! Please help me solve the problem.

How to set up the import of goods by sections in the CODE field?

Let me explain: I have a csv file with the goods, and there are three properties: the first level heading, the second level heading, and the third level heading. Accordingly, I have a large number of sections, which I imported through a web service and recorded in the database. There, each section has a string identifier, which I decided to write in the CODE field. And when I specify the field ratio when importing, nothing happens. In the sense of import occurs, but the goods do not go into sections. I hope, clearly explained.

You can tell how to configure the import through the CODE field. Maybe doing something wrong. Thanks in advance for your help.

    1 answer 1

    If someone can help - I did not manage to configure the import of sections through the bitrix admin panel. But you can organize the import manually. First we take a list with sections and their properties, it can be csv, excel, web service, etc. In this array, we add each section using CIBlolckSection::add() . After all the sections have been added, we import all products through the admin panel. And to add all products to the sections, use CiBlockElement::SetElementSection() . In fact, this is even more convenient, as it is possible to organize automatic imports.