I have a custom column in my sales_flat_quote_item table named as device_id. I am working on to create a api where a device id is sent and the cart available items are displayed for guest users.
$deviceId=802;
$quote = Mage::getModel('sales/quote')->load($deviceId);
$cartItems = $quote->getAllVisibleItems();
foreach ($cartItems as $item) {
echo $pid = $item->getProductId();
}
which is not working.Is this not the proper way ?Please help thanks