<? foreach ($arResult['PROPERTIES'] as $code => $value) {
if (in_array ($code, ELEMENT_PROPERTIES_SKIP) || empty($value['VALUE'])){
continue;
}
if ($code == 'PROP_INCOME') {
$value = value.style.font-weight == '600';
}
?>
<? } ?>
$(document).ready(function(){
document.getElementById('compareid_<?= $arItem["ID"]; ?>').onclick = function() {
if(document.getElementById('compareid_<?= $arItem["ID"]; ?>').checked) {
localStorage.setItem('compareid_<?= $arItem["ID"]; ?>', "true");
} else {
localStorage.setItem('compareid_<?= $arItem["ID"]; ?>', "false");
}
}
if (localStorage.getItem('compareid_<?= $arItem["ID"]; ?>') == "true") {
document.getElementById("compareid_<?= $arItem['ID']; ?>").setAttribute('checked','checked');
}
});
<a href="#" id="minustab"></a>
<input type="text" id="quantityitog" value="<?= $arResult['CATALOG_MEASURE_RATIO'] ?>" data-minimum="<?= $arResult['CATALOG_MEASURE_RATIO'] ?>" data-maximum="9999" data-step="<?= $arResult['CATALOG_MEASURE_RATIO'] ?>" maxlength="4">
<a href="#" id="plustab"></a>
Пожалуйста))