E
E
Evgeny Perin2014-11-24 13:36:01
1C-Bitrix
Evgeny Perin, 2014-11-24 13:36:01

Display category description outside the catalog, Bitrix?

The crux of the matter is what. A site for wholesalers is being made. It is necessary to show store categories with descriptions and titles, but without products, to non-logged in users. Offer to register instead of goods. And for logged-in users, on the contrary, show products, but no longer show the text-description of the category (search texts).
Now I did this, I connect the catalog component through if / else for logged in. And for those who are not logged in, I just show the text in the registration request. And it turns out that for non-logged-in catalog components it seems to be not connected and I can’t display the name and description of the category ...
Maybe I’m doing something wrong, does anyone have any thoughts? I'm new to bitrix

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kompi, 2014-11-24
@seoperin

So move the condition to the template, let the component be available to everyone.

A
Alexey Emelyanov, 2014-11-24
@babarun

In the bitrix:catalog component, check the box "take into account the user group" (so that the cache for authorized and not authorized is different), then in the bitrix:catalog.section.list template you set the condition for displaying the description, and in the bitrix:catalog template in the section.php file for unauthorized ones, disable the connection of the bitrix:catalog.section component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question