Search for an existing customer doesn't find user by name
tormi - May 30, 2008 - 06:46
| Project: | Ubercart Addresses |
| Version: | 5.x-1.0-rc1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | freixas |
| Status: | active |
Jump to:
Description
Hi,
Search for an existing customer at /admin/store/orders/create doesn't find user by name. User is created and has name fields filled in default address.
Tormi

#1
I've changed this to a feature request.
The uc_addresses module, by design, avoids changing the way the uc_order module handles orders (except that, on checkout, addresses come from uc_addresses rather than past orders). If you can't find a customer by name when searching in /admin/store/orders/create, it is because the customer has not placed an order. The uc_order module searches previous orders only and doesn't know about the uc_addresses table.
It is not a bug in the strict sense that the uc_addresses code is functioning as designed. However, I think this is a great idea. Unless you have already have a patch, I will need to investigate if it's possible to hook into the order system's search. At this point, I don't know if it's even possible to do what you want without changes to the uc_order module.
#2
Ok, I see. I just wanted to create a new order to my newly created customer (it's quite common task in a role of salesperson when an order is coming via phone for example;)).
I don't have a patch (at least yet).
Thanks,
Tormi