Answer the question
In order to leave comments, you need to log in
How to display Bitrix Product ID?
foreach($ID2 as $_id2) {
$rs = CIBlockSection::GetList(Array("SORT"=>"ASC", "NAME"=>"ASC"), Array("IBLOCK_ID"=>17, "ACTIVE"=>"Y", "SECTION_ID"=>$_id2));
echo '<select class="cartridge-name1" id="prodid'.$_id2.'" style="border: #d2d2d2 2px solid; margin: 0px 0px 10px; padding: 5px; width: 150px;display:none"><option value="">Картридж</option>';
while($ar = $rs->GetNext()) echo '<option value="'.$ar["ID"].'">'.$ar["NAME"].'</option>';
echo '</select><input type="number" class="prodid2'.$_id2.'" style="width: 35px;display: none;">';
}?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question