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....)
 
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
<code>
 
<code>
 
<pre>
 
<pre>
BillToFirstName
+
        BillToFirstName
BillToLastName
+
        BillToLastName
BillToCompany
+
        BillToCompany
BillToAddress1
+
        BillToAddress1
BillToAddress2
+
        BillToAddress2
BillToCity
+
        BillToCity
BillToProvince
+
        BillToProvince
ShipToFirstName
+
        BillToCountryCode
ShipToLastName
+
        ShipToFirstName
ShipToCompany
+
        ShipToLastName
ShipToAddress1
+
        ShipToCompany
ShipToAddress2
+
        ShipToAddress1
ShipToCity
+
        ShipToAddress2
ShipToProvince
+
        ShipToCity
OrderNotes
+
        ShipToProvince
 +
        ShipToCountryCode
 +
        OrderNotes
 
</pre>
 
</pre>
 
</code>
 
</code>
Line 27: Line 29:
  
 
<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>

Latest revision as of 07:32, 16 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
         BillToCountryCode
         ShipToFirstName
         ShipToLastName
         ShipToCompany
         ShipToAddress1
         ShipToAddress2
         ShipToCity
         ShipToProvince
         ShipToCountryCode
         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>