Answer the question
In order to leave comments, you need to log in
Why does 1C Bitrix catalog display only the first element from the list?
One unscrupulous "comrade" made a template for Bitrix and made a mistake somewhere, when displaying the catalog, all nested sections are displayed, but there are no elements in these sections, only the very first element is displayed, and it is displayed in its entirety, as if already a description of the element.
The comrade was lost.
Tell me where to start picking this problem and who can undertake to help figure it out?
I understand that this is somewhere in the catalog template, I logically understand that the block for outputting the list of elements is missing, but I can’t figure out where it is and how to fix it.
PS I apologize for my stupidity, but I have been working with Bitrix for the third day, everything happens for the first time.
Answer the question
In order to leave comments, you need to log in
First, find the template itself, it should be possible to open it directly from the tyk catalog page . The list of products inside the template is in an array $arResult['ITEMS']
, and for starters, it would be nice to check if it really is there. If there is a list of goods, then look at the template already, there should be a loop through the array with a list of goods and, accordingly, the output of the catalog elements inside this loop.
I think no one will say anything without the code for calling the components and the template code.
Check the settings of the component, such as *_element_count, check that the infoblock actually has elements to display.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question