A
A
Alexander2017-02-07 16:06:27
1C-Bitrix
Alexander, 2017-02-07 16:06:27

How to search by article in Bitrix?

How to search by article in Bitrix?

$prop[82] = "STM-9734PBLK";
$arFilter = array(
    'IBLOCK_ID' => 7,
    'PROPERTY_VALUES' => $prop,
);
CModule::IncludeModule("iblock");
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"),$arFilter);

I take it something like that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Mifle, 2017-02-07
@indefpro

This code will work if the symbolic code of the article property is "VALUES".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question