I have the following code. Where I pass a device id which is stored as a custom column in sales_quote and get all the quote ids to that device id.
By trying the below code I am able to get only first occurrence of quote id.
Can anyone please help.
Thanks
$deviceId=$device_id;
$quote = Mage::getModel('sales/quote')->load($deviceId,'device_id');//here device_id is feild in database
$cartItems = $quote->getAllVisibleItems();
foreach ($cartItems as $item) {
$pid = $item->getQuoteId();
}