Difference between revisions of "More options for Advance Order Search's Keyword part"

From AbleCommerce Wiki
Jump to: navigation, search
Line 40: Line 40:
  
 
The above code shows the default options available in code. You can easily modify the code to add more options as bellow where i have added the '''ShipToFirstName'''.
 
The above code shows the default options available in code. You can easily modify the code to add more options as bellow where i have added the '''ShipToFirstName'''.
 
  
 
<code>
 
<code>

Revision as of 03:22, 3 September 2008

You can easily incorporate some more options for the Keyword part of the Advance Order Search. Following is a list of the options available on the Keyword part of the Advance Order Search.

         BillToFirstName
         BillToLastName
         BillToCompany
         BillToAddress1
         BillToAddress2
         BillToCity
         BillToProvince
         ShipToFirstName
         ShipToLastName
         ShipToCompany
         ShipToAddress1
         ShipToAddress2
         ShipToCity
         ShipToProvince
         OrderNotes

For example Edit the Website/Admin/Orders/Default.aspx file and locate the following code


<asp:DropDownList ID="KeywordSearchField" runat="server">
     <asp:ListItem Value="BillToLastName" Text="Bill To Last Name"></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="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>

The above code shows the default options available in code. You can easily modify the code to add more options as bellow where i have added the ShipToFirstName.


<asp:DropDownList ID="KeywordSearchField" runat="server">
     <asp:ListItem Value="BillToLastName" Text="Bill To Last Name"></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="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:ListItem Value="ShipToFirstName" Text="Ship To First Name"></asp:ListItem>
</asp:DropDownList>