Documentation

Shopping cart updates

EventDescription 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
ENTITY Object BasketItem.
VALUES All position data, received from provider.

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
Up