Shopping cart updates
Event | Description and parameters | Available from version | ||||
---|---|---|---|---|---|---|
OnSaleBasketItemRefreshData | Event is called when updating shopping cart. Called as many times as the number of products in shopping cart.
Parameters
|
Example:
\Bitrix\Main\EventManager::getInstance()->addEventHandler(
'sale',
'OnSaleBasketItemRefreshData',
'myFunction'
);
function myFunction(\Bitrix\Main\Event $event)
{
$entity = $event->getParameter("ENTITY");
$values = $event->getParameter("VALUES");
}
© «Bitrix24», 2001-2024