Documentation

add

\Bitrix\Main\Entity\AddResult public static
\Bitrix\Catalog\DiscountTable::add(
 array $data
);

Method adds new discount according to data from $data array. Static method and a method stub, creating exceptions for adding discounts. Presently, you must use Old core API.

Parameters

ParameterDescriptionVersion
$dataArray of new discount parameters.

Example



© «Bitrix24», 2001-2023
Up