А можно ли передать в инпуте как и количество
<input id = '<? echo $arResult['ID'];?>' name="quantity" type="text" size="4" style="height:16px;" value="1" />
<input id = '<? echo $arResult['ID'];?>' name="quantity" type="text" size="4" style="height:16px;" value="1" />