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

From AbleCommerce Wiki
Jump to: navigation, search
(New page: 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....)
 
Line 3: Line 3:
 
<code>
 
<code>
 
<pre>
 
<pre>
BillToFirstName
+
        BillToFirstName
BillToLastName
+
        BillToLastName
BillToCompany
+
        BillToCompany
BillToAddress1
+
        BillToAddress1
BillToAddress2
+
        BillToAddress2
BillToCity
+
        BillToCity
BillToProvince
+
        BillToProvince
ShipToFirstName
+
        ShipToFirstName
ShipToLastName
+
        ShipToLastName
ShipToCompany
+
        ShipToCompany
ShipToAddress1
+
        ShipToAddress1
ShipToAddress2
+
        ShipToAddress2
ShipToCity
+
        ShipToCity
ShipToProvince
+
        ShipToProvince
OrderNotes
+
        OrderNotes
 
</pre>
 
</pre>
 
</code>
 
</code>
Line 27: Line 27:
  
 
<asp:DropDownList ID="KeywordSearchField" runat="server">
 
<asp:DropDownList ID="KeywordSearchField" runat="server">
                                    <asp:ListItem Value="BillToLastName" Text="Bill To Last Name"></asp:ListItem>
+
    <asp:ListItem Value="BillToLastName" Text="Bill To Last Name"></asp:ListItem>
                                    <asp:ListItem Value="BillToCompany" Text="Bill To Company"></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="BillToAddress1" Text="Bill To Address"></asp:ListItem>
                                    <asp:ListItem Value="ShipToLastName" Text="Ship To Last 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="ShipToCompany" Text="Ship To Company"></asp:ListItem>
                                    <asp:ListItem Value="ShipToAddress1" Text="Ship To Address"></asp:ListItem>
+
    <asp:ListItem Value="ShipToAddress1" Text="Ship To Address"></asp:ListItem>
                                    <asp:ListItem Value="OrderNotes" Text="Order Notes"></asp:ListItem>
+
    <asp:ListItem Value="OrderNotes" Text="Order Notes"></asp:ListItem>
                                </asp:DropDownList>
+
</asp:DropDownList>
 +
 
 +
</pre>
 +
</code>
 +
 
 +
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>
 +
<pre>
 +
 
 +
<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>
  
 
</pre>
 
</pre>
 
</code>
 
</code>

Revision as of 03:21, 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>