Answer the question
In order to leave comments, you need to log in
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
catalog.element - detailed product page
catalog.item - product card in the product list, mainly in catalog.section, if I'm not confused
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 questionAsk a Question
731 491 924 answers to any question