S
S
strify_252017-02-28 15:25:27
1C-Bitrix
strify_25, 2017-02-28 15:25:27

How to link products to several sections in 1C?

I am engaged only in the site, with a 1s nickname we cannot understand each other. The problem is the following.
There is an online store, which is unloaded from 1C.
On the site and in 1C, the directory structure is the same. Each product is in its own section. In the import file from 1C to Bitrix, it looks like this:

<Группы>
<Группа>
   <Ид>61c7b4f5-ad33-11dc-abd5-001636889087</Ид>
   <Наименование>название-раздела</Наименование>
   <Группы>
      <Группа>
         <Ид>3efadc59-be8b-11dc-ac05-001636889087</Ид>
         <Наименование>подраздел-1-уровня</Наименование>
         <Группы>
            <Группа>
               <Ид>3efadc5a-be8b-11dc-ac05-001636889087</Ид>
               <Наименование>подраздел-2-уровня</Наименование>
            </Группа>
         </Группы>
      </Группа>
   </Группы>
</Группа>
</Группы>
.....
<Группы>
   <Ид>3efadc5a-be8b-11dc-ac05-001636889087</Ид>
</Группы>

It is necessary that the product be linked to several sections. In Bitrix, this is done as follows - the main section is selected, the necessary ones are selected in the "Sections" tab.
How to implement the same in 1C? I assume that the import file will then take on the following form:
<Группы>
<Группа>
   <Ид>61c7b4f5-ad33-11dc-abd5-001636889087</Ид>
   <Наименование>название-раздела</Наименование>
   <Группы>
      <Группа>
         <Ид>3efadc59-be8b-11dc-ac05-001636889087</Ид>
         <Наименование>подраздел-1-уровня</Наименование>
         <Группы>
            <Группа>
               <Ид>3efadc5a-be8b-11dc-ac05-001636889087</Ид>
               <Наименование>подраздел-2-уровня</Наименование>
            </Группа>
         </Группы>
      </Группа>
   </Группы>
</Группа>
<Группа>
   <Ид>1111112222233333</Ид>
   <Наименование>Название-раздела</Наименование>
</Группа>
</Группы>
....
<Группы>
   <Ид>3efadc5a-be8b-11dc-ac05-001636889087</Ид>
   <Ид>1111112222233333</Ид>
</Группы>

The question arises - how to choose the main section of the product?
How to set it up in 1C?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Kai, 2017-02-28
@gold_dezmor

Good afternoon!
Do I understand correctly what is required on the site to display the product in several sections?
Or exactly in 1C UT or what do you have there?
It's just that with each exchange, 1C overwrites the binding of goods to sections of the site (categories of goods) and updates it.
Physically, you cannot store a product in more than one product category. These are the rules of 1C UT.
You just need to link the product to several categories on the site and for all this to work with the exchange, that is, not to be overwritten every time.
If so, can I reset the code?

S
sciper, 2017-05-19
@sciper

Maybe I'm late with the answer, but maybe someone will come in handy. You don't need to make any changes to the download codes. 1C has a built-in tool (its own exchange module) that allows you to build a section tree such as it should be on the site. You can define sections and subsections on the site, regardless of the structure in 1C, and upload to the site in this form. It is called "Group tree setup", the tree can have sections and subsections and products in any number, and products in any number of sections. More details here https://dev.1c-bitrix.ru/learning/course/?COURSE_I...

K
Konstantin, 2017-02-28
@fosihas

I repeat that in 1C it is not possible to do this.

Normally, it can't be done.
Only changing the configuration, adding objects by the code name "Site Structure". They specify how the Nomenclature will be uploaded to Bitrix.
If it's just the Directory "Site Structure" in the non-specify Groups-Sections of the hierarchy. Next, the information register in which you write the binding "Site Structure" + Nomenclature, i.e. how it will look like the site. Change in upload processing so that the file is generated based on changes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question