S
S
Sergey Pozdnyakov2019-04-10 22:25:41
1C-Bitrix
Sergey Pozdnyakov, 2019-04-10 22:25:41

How to withdraw goods in Bitrix?

Tell me how to create a separate page in Bitrix, where all the products in the table will be: name, article, quantity with a choice and price.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Proger, 2019-04-16
@freekirill

CModule::IncludeModule('iblock');
$arFilter = Array("IBLOCK_ID"=>"$IBLOCK_ID", "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y", 'INCLUDE_SUBSECTIONS'=>'Y', );
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, array());
while ($ob = $res->GetNextElement())
{
    $arr = $ob->GetFields();
    $arr["PROPERTIES"] = $ob->GetProperties();
}

$IBLOCK_ID - ID of the infoblock with the product.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question