N
N
Nazar Gorbunov2020-06-26 23:43:38
1C-Bitrix
Nazar Gorbunov, 2020-06-26 23:43:38

How to display all products from a catalog on the 1C Bitrix catalog page?

Good evening, I ran into a problem: you need to display products from the catalog (catalog.element) on the catalog list page (catalog.list)
To make it clear, visually:
Catalog:
1. Roses
1.1 Red
1.2 Green
1.3 Blue
2. Tulips
2.1 White
2.2 Red
etc.

I did it through GetList, it displays all the products, but not with all the parameters that I need, I enter them into the arSelectFields array and get them successfully, however, only one category already falls into the list of products, for example, only roses - how to make sure that there are all goods with the desired parameters.

CIBlockSection::GetList(array("SORT"=>"ASC"),$arFilter,false, false, array(
              "IBLOCK_ID", 
              "ID", 
              "NAME", 
              "PROPERTY_CODE", 
              "CATALOG_PRICE_1", 
              "CATALOG_CURRENCY_1", 
              "PREVIEW_PICTURE", 
              "ITEM_MEASURE", 
              "DETAIL_PAGE_URL"));


+ I can't get product units (ITEM_MEASURE) - there is one in the request, but I don't get it. Is there any way to fix this too?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question