Re: Re: Allowing ONLY anonymous purchasing?

Posts: 18
Joined: 01/28/2008
Bug Finder

I'm trying to understand what would be required to have Ubercart honor the Drupal user setting "Only site administrators can create new user accounts". It appears to me, with my somewhat limited understanding of how the Ubercart DB works, that it would be possible to do this with no major changes. The UID remains 0 until the order goes through checkout. The anonymous user is uniquely identified by email address, so adding a UID doesn't really make them more unique. Without an account the user would be unable to check on the status of their order, of course, since that is the only possible login. They would have to ask the site admin what's going on. But the site admin is also the person who controls this setting so it would seem that they are in the best position to judge the trade-offs.

As far as I can tell, UID appears as a foreign key in uc_orders, uc_order_comments, uc_order_log and uc_payment_receipts, all of which also have a key to uc_orders, so the logic of entering orders doesn't seem to depend on the UID.

We are currently implementing a site where we would like to actually honor the "Only site administrators can create new user accounts" setting. I'm thinking of generating a patch to do this, but would like some input on whether it is a vast undertaking based on a half-vast idea Smiling

Allowing ONLY anonymous purchasing? By: hawkeye217 (8 replies) Fri, 12/07/2007 - 17:56