Search orders by BillToEmail

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
500lbdev
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Fri Dec 14, 2007 12:06 pm

Search orders by BillToEmail

Post by 500lbdev » Fri Feb 13, 2009 6:51 pm

Hi there,

I'm trying to implement the capability on the Order Manager to search (filter) by BillToEmail. I've been able to easily add the ability to search by BillToFirstName and BillToLastName by adding these items to the KeywordSearchField:

Code: Select all

<asp:DropDownList ID="KeywordSearchField" runat="server">
 <asp:ListItem Value="BillToFirstName" Text="Bill To First Name"></asp:ListItem>
 <asp:ListItem Value="BillToLastName" Text="Bill To Last Name"></asp:ListItem>
 <asp:ListItem Value="BillToEmail" Text="Bill To Email Address"></asp:ListItem>
 <asp:ListItem Value="BillToCompany" Text="Bill To Company"></asp:ListItem>
 <asp:ListItem Value="BillToAddress1" Text="Bill To Address"></asp:ListItem>                                    
 <asp:ListItem Value="ShipToFirstName" Text="Ship To First Name"></asp:ListItem>
 <asp:ListItem Value="ShipToLastName" Text="Ship To Last Name"></asp:ListItem>                                    
 <asp:ListItem Value="ShipToCompany" Text="Ship To Company"></asp:ListItem>
 <asp:ListItem Value="ShipToAddress1" Text="Ship To Address"></asp:ListItem>                                    
 <asp:ListItem Value="OrderNotes" Text="Order Notes"></asp:ListItem>                                                                        
</asp:DropDownList>
I've noticed that these filters are added to the criteria parameter of the Search method of the ObjectDataSource. I ran SQL Profiler to determine what generated search query was being passed to the database and noticed that both BillToFirstName and LastName were appended as filters. However, BillToEmail was not.

Is there any easy way to add BillToEmail as a filter?

Thanks!

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

Re: Search orders by BillToEmail

Post by mazhar » Mon Feb 16, 2009 9:04 am

There is no stragiht method to add BillToEmail filter. One possiable workaround could be to add bill to Email as an order note for each order and then use order notes filter and search the BillToEmail.

http://wiki.ablecommerce.com/index.php/ ... yword_part

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Search orders by BillToEmail

Post by triplw » Mon Feb 21, 2011 12:21 pm

One possiable workaround could be to add bill to Email as an order note for each order and then use order notes filter and search the BillToEmail.
Mazhar,
I would like to do this so I can search orders by BillToEmail. Could you tell me how to add the BillToEmail to the order notes?

Thanks

Post Reply