Documentation

activateSubscription

boolean public
\Bitrix\Catalog\Product\SubscribeManager::activateSubscription(
 array $listSubscribeId,
 integer $timePeriod
);

Method activates product subscription by clearing the field DATE_TO or indicating subscription period. Non-static method.

Parameters

ParameterDescriptionVersion
$listSubscribeIdList of subscription IDs.
$timePeriodSubscription period in seconds.

Exception

  • \Exception

Example



© «Bitrix24», 2001-2024
Up