Product::getAllowedFieldsProduct

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. Product
  4. getAllowedFieldsProduct
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/controller/product.php
  • Класс: BitrixCatalogControllerProduct
  • Вызов: Product::getAllowedFieldsProduct
protected function getAllowedFieldsProduct(): array
{
	$result = [
		'TYPE',
		'AVAILABLE',
		'BUNDLE',
		'QUANTITY',
		'QUANTITY_RESERVED',
		'QUANTITY_TRACE',
		'CAN_BUY_ZERO',
		'SUBSCRIBE',
		'VAT_ID',
		'VAT_INCLUDED',
		'BARCODE_MULTI',
		'WEIGHT',
		'LENGTH',
		'WIDTH',
		'HEIGHT',
		'MEASURE',
		'RECUR_SCHEME_LENGTH',
		'RECUR_SCHEME_TYPE',
		'TRIAL_PRICE_ID',
		'WITHOUT_ORDER',
		'QUANTITY_TRACE_RAW',
		'PAYMENT_TYPE',
		'SUBSCRIBE_RAW',
		'CAN_BUY_ZERO_RAW'
	];

	if ($this->accessController->check(ActionDictionary::ACTION_PRODUCT_PURCHASE_INFO_VIEW))
	{
		array_push($result, 'PURCHASING_PRICE', 'PURCHASING_CURRENCY');
	}

	return $result;
}

Добавить комментарий