On the manager Users page, The search fields are very picky, If the user name is Peter, pete wont work. If the company is Black Water, Black wont find them.
Any way to change this?
Manage Users - search
Re: Manage Users - search
Use a wildcard asterisk after the Pete like "Pete*" to find them.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
Re: Manage Users - search
Can I add company name to this display list on the search page?
Re: Manage Users - search
Yep its simple to add company name to list. Just edit the Website/admin/people/default.aspx and locate following code block
and replace it with this one
and finally add following method to its code file next to GetFullName method
Code: Select all
<asp:TemplateField HeaderText="Name" SortExpression="A.LastName">
<HeaderStyle horizontalalign="Left" />
<ItemStyle horizontalalign="Left" />
<ItemTemplate>
<asp:Label ID="FullNameLabel" runat="server" Text='<%#GetFullName(Container.DataItem)%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Code: Select all
<asp:TemplateField HeaderText="Name" SortExpression="A.LastName">
<HeaderStyle horizontalalign="Left" />
<ItemStyle horizontalalign="Left" />
<ItemTemplate>
<asp:Label ID="FullNameLabel" runat="server" Text='<%#GetFullName(Container.DataItem)%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Company" SortExpression="A.Company">
<HeaderStyle horizontalalign="Left" />
<ItemStyle horizontalalign="Left" />
<ItemTemplate>
<asp:Label ID="CompanyNameLabel" runat="server" Text='<%#GetCompanyName(Container.DataItem)%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
Code: Select all
protected string GetCompanyName(object dataItem)
{
User user = (User)dataItem;
Address address = user.PrimaryAddress;
if (address != null)
{
if (!string.IsNullOrEmpty(address.Company))
return address.Company;
}
return string.Empty;
}
Re: Manage Users - search
Thanks I did it on both admin/orders/create/createorders1.asp and admin/people/users/default.asp worked good.
Re: Manage Users - search
Thanks Mazhar,
Very helpful solution.
Regards,
Irfan Kadri
Very helpful solution.
Regards,
Irfan Kadri