Page 1 of 1
search by phone number
Posted: Thu Jan 08, 2009 7:10 pm
by garyb
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!
Re: search by phone number
Posted: Thu Jan 08, 2009 7:42 pm
by compunerdy
I would love to see more search options added.. phone, part of addres, etc..
Re: search by phone number
Posted: Fri Jan 09, 2009 7:56 am
by mazhar
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.
Re: search by phone number
Posted: Fri Jan 09, 2009 10:29 am
by sohaib
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.