Documentation

GetBasketList

array GetBasketList();

This function actualizes basket of the current user and returns an array containing the basket records.

Return Values

Returns an array of associated arrays having the same structure as one of those returned by the method CSaleBasket::GetList.

Example



<?
$arItems = GetBasketList();
for ($i = 0; $i < count($arItems); $i++)
{
   echo "<pre>";
   print_r($arItems[$i]);
   echo "</pre><br>";
}
?>
© «Bitrix24», 2001-2024