Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Orders
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 May 2011 at 12:50 UTC
Updated:
4 Apr 2012 at 04:50 UTC
Jump to comment: Most recent file
Hi,
By default, when an administrator creates an order he/she can only find an existing customer by first/last name or by email. Is there a way (through a setting or module) to also search by username? I've been searching high and low for this, to no avail. I hope the answer was not in front of my nose!
If I have to build a module to get this feature, does anyone have pointers on the hooks I'd have to implement ?
Thanks a lot.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1170792-search-by-username.patch | 7.46 KB | tr |
Comments
Comment #1
phen commentedI'm also looking for this-- it is IMO a bug, because if I (as admin) want to create an order for a person who is already an authenticated user, but not already a "customer", I can't.
If you try to create a new customer with an email address that matches an existing authenticated user,you get error: 'An account already exists for that e-mail.'
If you try to search by email, you don't find the person, because UC is looking through its order tables for existing "customers,"
(In UC, a customer is a person who has already ordered. As a side note, UC customers don't have to correspond nicely to actual drupal users, because a single user can create many alias customers with different names and email addresses.)
Maybe I could use masquerade to workaround...
I'm working in D7. So maybe I should clone the issue? Not sure of protocol.
Comment #2
tr commented#1 is just not true, and besides that would be an entirely different issue than what this thread is about.
In D7 Ubercart, you can create an order for an existing user or for a new user from admin/store/orders/create. The existing user can be either a previous customer or an authenticated user who hasn't purchased anything yet.
Resetting the issue status back to the original. If someone would like to make a patch to implement that new feature I'd be happy to review it.
Comment #3
phen commentedTR,
Thanks for the reply.
You prompted me to dig a little deeper and I figured out that in order to create an order for an existing user who is not a customer, you have to select the "no customer account required" radio and find the user later. Trying to search for such a user with the search form doesn't work.
In my mind this is a little obscure; it would be more intuitive if the search could return a registered user.
But you're right, it is possible to do this. Sorry for the hijack.
Comment #4
tr commentedThe attached patch addresses the original feature request for Ubercart 7.x-3.x.
New features should go into 7.x-3.x first.
Comment #5
tr commentedCommitted to 7.x-3.x. Maybe this should be backported to 6.x-2.x.
Comment #6
tr commentedBackported patch in #4 to D6, tested and committed.
http://drupalcode.org/project/ubercart.git/commitdiff/e23f470