• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/product/sku.php
  • Класс: BitrixCatalogProductSku
  • Вызов: Sku::updateOfferType
static function updateOfferType($offerId, $type)
{
	$offerId = (int)$offerId;
	$type = (int)$type;
	if ($offerId <= 0 || ($type != CatalogProductTable::TYPE_OFFER && $type != CatalogProductTable::TYPE_FREE_OFFER))
		return false;
	static::disableUpdateAvailable();
	$updateResult = CatalogModelProduct::update($offerId, array('TYPE' => $type));
	$result = $updateResult->isSuccess();
	static::enableUpdateAvailable();
	return $result;
}