The problem is that I am sending the Magento order to an external ERP
and they need the customer id from Magento.
the problem comes when the customer is guest because in theory this customer doesn't have an id but I am not sure. Is there a way to check if the customer is a guest?
I am using the Mage_Sales_Model_Order
object in order to get the information I need from the customer.
Thanks!