A
A
anriko2021-01-20 17:06:54
1C-Bitrix
anriko, 2021-01-20 17:06:54

What is the difference between catalog.item and catalog.element and what should I use them for?

What are the differences between catalog.item and catalog.element and why they should be used, how these components are used
catalog.item displays the product. what about catalog.element ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Kuzovlev, 2021-01-20
@Kiyoshi

catalog.element - detailed product page
catalog.item - product card in the product list, mainly in catalog.section, if I'm not confused

R
Roman Gritsuk, 2021-01-20
@winer

catalog.element is a component that is designed to display detailed information about a product. Inside it, queries are made to the database, and an arResult array is formed with a description of the product.
catalog.item is a component that is usually used to display information about a product inside a list of products. It differs from catalog.element in that it does not receive any product information itself. In fact, this is a wrapper, in the parameters of which an ALREADY FORMED data set is passed. It is convenient to use it in various list components, for example in catalog.section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question