D
D
Danil Shitov2021-01-28 11:35:14
1C-Bitrix
Danil Shitov, 2021-01-28 11:35:14

Bitrix, how to display product properties?

You need to display these product properties: I
601276af3a926903057862.png
use this method:

$db_res = CCatalogProduct::GetList(
            array("ID" => "ASC"),
            ['IBLOCK_ID' => $arParams['IBLOCK_IDY']]
        );

        while (($ar_res = $db_res->Fetch())) {   
            $arProducts[] = CIBlockElement::GetByID($ar_res["ID"])->GetNextElement()->GetFields();
        }

These product properties do not exist (((
Please tell me how to display them!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
Jupiter Max, 2021-01-28
@vardoLP

and the properties should display a check on the detailed or in the list? Or are they checked in the component? What's in arResult? If you use getList, then you must also use getProperty in it

A
Alexey Emelyanov, 2021-01-28
@babarun

In the catalog component settings, select them to display

A
Anton, 2021-01-28
@anton99zel

1. CCatalogProduct::GetList
Obsolete 2. CCatalogProduct::GetList cannot display properties
3. Use \Bitrix\Catalog\ProductTable::getList instead of CCatalogProduct::GetList 4. Use CIBlockElement::GetList
to display properties

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question