• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/catalogprovider.php
  • Класс: BitrixCatalogProductCatalogProvider
  • Вызов: CatalogProvider::deleteBarcodes
static function deleteBarcodes(array $productData): SaleResult
	{
		$result = new SaleResult();

		$storeData = $productData['STORE_DATA_LIST'];
		if (!empty($storeData))
		{
			foreach ($storeData as $storeDataList)
			{
				foreach($storeDataList as $storeDataValue)
				{
					$r = static::deleteBarcode($storeDataValue);
					if (!$r->isSuccess())
					{
						$result->addErrors($r->getErrors());
					}
				}
			}
		}

		return $result;
	}