search by phone number

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
garyb
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Tue Jan 06, 2009 3:41 pm

search by phone number

Post by garyb » Thu Jan 08, 2009 7:10 pm

When adding a new order while under administrator, /Admin/Orders/PlaceOrder2.aspx, I was wondering if there would be a way to search for a user by phone number. Just browsing the Commerce API I see a way to search Email and Username.

Is there away to add this functionality without buying the source code and recompiling?


Thanks so much!
Last edited by garyb on Tue Jan 13, 2009 5:07 pm, edited 1 time in total.

User avatar
compunerdy
Admiral (ADM)
Admiral (ADM)
Posts: 1283
Joined: Sun Nov 18, 2007 3:55 pm

Re: search by phone number

Post by compunerdy » Thu Jan 08, 2009 7:42 pm

I would love to see more search options added.. phone, part of addres, etc..

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: search by phone number

Post by mazhar » Fri Jan 09, 2009 7:56 am

Is there away to add this functionality without buying the source code and recompiling?
Yes it is possible to accomplish this job without access to API source code but you will have to write your own search routines.
The phone number information is available with user addresses. You will need to write a query that joins addresses table to users table along with checks for your search criteria.

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: search by phone number

Post by sohaib » Fri Jan 09, 2009 10:29 am

You could check the code from Admin/People/Users/Default.aspx where user search functionality is a bit more advanced than on PlaceOrder2.aspx page. You can adapt some of it in your code.

Post Reply