S
S
serik2020-12-24 10:49:44
1C-Bitrix
serik, 2020-12-24 10:49:44

How to check the box for the product property "Show on item list page"?

Tell me how to check the boxes for the product properties through the code?
property example:

array(
         "NAME" => GetMessage('TARAKUD_PROPS_SELLER'),
         "ACTIVE" => "Y",
         "SORT" => "10",
         "CODE" => "AN_SELLER",
         "IBLOCK_ID" => $ID,
         "PROPERTY_TYPE" => "S",
         "USER_TYPE" => "UserID",
         "IS_REQUIRED" => "N",
         "FILTRABLE" => "Y"
),

5fe447d2c70ae280181148.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2020-12-24
@winer

The ORM table \Bitrix\Iblock\PropertyFeatureTable
in the database is b_iblock_property_feature
See what is stored in the database, and then do what you need through PropertyFeatureTable::add or PropertyFeatureTable::update.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question