Documentation

update

\Bitrix\Main\Entity\UpdateResult public static
\Bitrix\Catalog\DiscountTable::update(
 mixed $primary,
 array $data
);

Method updates discounts parameters with the key $primary according to the data from array $data. Static method and a method stub, creating exceptions for discount updates. Presently, you must use the Old core API.

Parameters

ParameterDescriptionVersion
$primaryDiscount primary key.
$dataArray of discount parameters.

Example



© «Bitrix24», 2001-2024
Up