Download & Extend

Search for an existing customer doesn't find user by name

Project:Ubercart Addresses
Version:7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

Category:bug report» feature request
Assigned to:Anonymous» freixas

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

#3

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.

#4

Assigned to:freixas» MegaChriz

#5

Version:5.x-1.0-rc1» 7.x-1.x-dev
Assigned to:MegaChriz» Anonymous
Status:postponed» needs review

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.

AttachmentSizeStatusTest resultOperations
search-existing-customer-264518-5.patch2.36 KBIdlePASSED: [[SimpleTest]]: [MySQL] 1,774 pass(es).View details | Re-test