I
I
IliaMal2021-07-05 06:45:06
1C-Bitrix
IliaMal, 2021-07-05 06:45:06

Where can I find a self-written, lightweight analogue of catalog.section for displaying products?

Hello.

To speed up the output of products in the catalog, I want to replace catalog.section with a lightweight, self-written component.
The component must be cached and support the basic functions of a standard component: sorting, filtering, price types, generating a url for a detailed page, etc.

Surely, this task has already been solved many times, but you can’t work up, you don’t want to invent bicycles either.
If anyone has a similar component bookmarked, please share.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2021-07-05
@UDAV99

To do this, you can use the Bitrix API and the GetList parameter https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
ps/ don't forget to include CModule::IncludeModule('iblock');
pss/ for a store at your stage of knowledge, it is better to use a ready-made component, everything is already there .. and a basket and discounts, etc. You can start learning the API through simple applications, such as displaying news.

I
Ilya, 2021-07-05
@rpsv

Copy the entire catalog.section component to the locale (for example: my:calotag.section) and already optimize it.
PS You have some strange ideas about bicycles. If solving a problem is a bike for you, then clearly something is going wrong.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question