U
U
undertakeroo2022-04-05 13:56:02
1C-Bitrix
undertakeroo, 2022-04-05 13:56:02

How to add an additional class of the product card, provided that there is a checkmark in the product property?

Good afternoon. Please tell me how to add more. class to a list item in the catalog, provided that the product property has a checkmark ?
Tried to do so

<div class="col-xs-24 col-sm-12 col-lg-6 <?= $arResult["PROP_VALUE"]=="END_LIST" ?"card_nontarget": ""?>">
, but nothing works.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2022-04-05
@kikher

Check that this value is available to you on the detailed page, if not, enable it in the IB or component settings.
And it should be in the format

$arResult['PROPERTIES']['PROPERTIES_NAME']['VALUE']

And it's also possible that you are checking against XML_ID =="END_LIST"then
$arResult['PROPERTIES']['PROPERTIES_NAME']['XML_ID']

U
undertakeroo, 2022-04-06
@undertakeroo

Should this value be stored in a variable?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question