Answer the question
In order to leave comments, you need to log in
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
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']
=="END_LIST"
then $arResult['PROPERTIES']['PROPERTIES_NAME']['XML_ID']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question