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.


#5 search-existing-customer-264518-5.patch2.36 KBMegaChriz
PASSED: [[SimpleTest]]: [MySQL] 1,774 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


freixas’s picture

Assigned: Unassigned » freixas
Category: bug » feature

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.

tormi’s picture

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).


freixas’s picture

Status: Active » Postponed

This feature request has been marked postponed, which is my way of saying that it probably won't get included in the foreseeable future, but that it has some merit and shouldn't be discarded.

freixas’s picture

Assigned: freixas » MegaChriz
MegaChriz’s picture

Version: 5.x-1.0-rc1 » 7.x-1.x-dev
Assigned: MegaChriz » Unassigned
Status: Postponed » Needs review
2.36 KB
PASSED: [[SimpleTest]]: [MySQL] 1,774 pass(es). View

With this patch you will be able to find customers that have addresses, but not orders. The code will search in the uc_addresses table for a matching first and last name.

The patch is for the Drupal 7 version only. Currently, I've no intentions to implement it for the Drupal 6 version too.

jvieille’s picture

Found this issue too in the D6 version.
Users can be found by email address only.

Any hope D6 will be served as well? Jumping from D5 to D7 is frustrating...

Yes, I am a bit demanding these time, launching the commercial part of a quite big / complex site....