Ubercart: Anonymous checkout, create new user, need order attached to new uid
In Ubercart > Checkout settings, when you enable "anonymous checkout enabled" it means "checkout without login".
By default, Ubercart always creates a new user during the checkout process, and enabling anonymous checkout just prevents people from having to register and login before they can checkout. Ubercart still creates an account for them.In this case, Ubercart doen't attach the order to the newly created user id.