$basketItems = $basket->getBasketItems();
$isset_ids = array();
foreach ($basket as $basketItem) {
$id = $basketItem->getProductId();
// совпал только id
if($productId == $id){
$props = $basketItem->getPropertyCollection();
$vals = $props->getPropertyValues();
// совпадают все параметры
if(
( isset($vals['SIZE']) && $vals['SIZE']['VALUE'] == $_REQUEST["SIZE"] ) &&
( isset($vals['ARTICLE']) && $vals['ARTICLE']['VALUE'] == $arItem["PROPERTY_ARTICUL_VALUE"] ) &&
( isset($vals['COLOR']) && $vals['COLOR']['VALUE'] == $arItem["PROPERTY_COLOR_VALUE"] )
){
echo "finded!";
$basketItem->setField('QUANTITY', $basketItem->getQuantity() + 1);
$basketItem->save();
$isset_ids[] = $id;
}
}
}