I am getting guest customer Collection with:
\Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory
as:
public function getGuestOrderCollection()
{
$orderCollecion = $this->_orderCollectionFactory->create()->addFieldToSelect('*');
$orderCollecion->addAttributeToFilter('customer_is_guest', ['eq'=>1]);
return $orderCollecion;
}
Currently I am not getting ID for guest customer by this but it works without guest customer:
$Id = $_order->getId();
I am looking to change guest customer information by this. Can any body help me to now about it. Thanks