V
V
Vorchun2015-03-10 17:33:12
1C-Bitrix
Vorchun, 2015-03-10 17:33:12

How to place one product on two sites in Bitrix?

Situation: there is a site on Bitrix (online store) with a small catalog. It is planned to make a second site with a catalog there, but with other headings. Those. two different sites under different addresses, but inside the same installation.
It is necessary: ​​to make a unique rubricator on each site. The list of goods is general (now it is already on the first site).
How to bind a product to two headings? Which way to look?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Emelyanov, 2015-03-10
@babarun

Of course, it’s better not to do this, but sections can have a custom property (for example, UF_SITE) in which to store a link to the site and in component templates display only those sections that have a link to the current site.

A
Alexander, 2015-03-15
Madzhugin @Suntechnic

Aleksey Emelyanov has already suggested a normal solution, but it seems to me that it will not be very convenient from the point of view of management.
I would make 2 root sections - one for one site, the other for another, respectively, and I would already place sections of the rubricator in them. But in implementation it will be more difficult.
PS
If you need two different categories, you have something wrong with the classification of goods.

7
7rows, 2015-03-16
@7rows

If your product is accounted for somewhere and unloaded, then the best thing is through custom properties.
If the product is not accounted for, then create a second infoblock and duplicate everything you need. This solution is for those who do not even know the basics of Bitrix

N
Nikita Samokhvalov, 2015-03-17
@niksamokhvalov

In any case, you will need to customize the components of the catalog (if, of course, you do it on them). IB elements can be linked to several sections, so there is no need to double the base, as suggested above.
1. The information block of goods must be linked to all sites where these goods will be displayed.
2. IB root sections are created for a specific site. That is, the IS structure will be as follows:

сайт 1
     умывальники
     унитазы
          золотые
          серебряные
сайт 2
     ящики
          металлические
          пластиковые
     коробки

3. For IB sections, create a property that will store the site ID.
4. Add a filter to all IB requests in the components so that the data is taken only from the section for the current site (in paragraph 3 we added a property for this).
5. The search will index the entire IB. Therefore, you need to write an event listener that correctly distributes indexing between sites.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question