Цитата |
---|
$prod_prise = GetCatalogProductPrice( $_GET['ID'], 2 ); Add2Basket( $prod_prise['ID'], 1, array(), array( array("NAME" => "Цвет", "CODE" => "CLR", "VALUE" => "красный"), array("NAME" => "Размер", "VALUE" => "25") ) ); $dbBasketItems = CSaleBasket::GetList( array( "NAME" => "ASC", "ID" => "ASC" ), array( "FUSER_ID" => CSaleBasket::GetBasketUserID(), "LID" => SITE_ID, "ORDER_ID" => "NULL" ), false, false, array("ID", "NAME", "CALLBACK_FUNC", "MODULE", "PRODUCT_ID", "QUANTITY", "DELAY", "CAN_BUY", "PRICE", "WEIGHT", "DETAIL_PAGE_URL", "NOTES", "CURRENCY", "VAT_RATE") ); while ($arItems = $dbBasketItems->GetNext()) { echo '<pre>'; print_r($arItems); echo '</pre>'; } |