Documentation

setSessionOfSibscribedProducts

 public
\Bitrix\Catalog\Product\SubscribeManager::setSessionOfSibscribedProducts(
 integer $itemId
);

Method writes into the session a product ID, subscribed to by user. This method checks if user has already subscribed to this product. Non-static method.

Parameters

ParameterDescriptionVersion
$itemIdProduct ID.

Example



© «Bitrix24», 2001-2024
Up