Modifying the Default Settings in Order Manager

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
wave_werks
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 91
Joined: Mon Sep 22, 2008 8:37 pm
Location: Northeast Ohio
Contact:

Modifying the Default Settings in Order Manager

Post by wave_werks » Mon May 11, 2009 9:59 am

How can I modify the Admin Order Manager to show "Last 30 Days" as the default selection for the date range option?
- Jeff
Wave Werks

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

Re: Modifying the Default Settings in Order Manager

Post by mazhar » Mon May 11, 2009 10:03 am

Locate following code in your Admin/Orders/Default.aspx page

Code: Select all

<asp:ListItem Value="5">Last 30 Days</asp:ListItem>
and make it as below

Code: Select all

<asp:ListItem Value="5" Selected="True">Last 30 Days</asp:ListItem>
Hopefully it will workout.

wave_werks
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 91
Joined: Mon Sep 22, 2008 8:37 pm
Location: Northeast Ohio
Contact:

Re: Modifying the Default Settings in Order Manager

Post by wave_werks » Mon May 11, 2009 10:35 am

Using your method I was able to get 50 Per Page to display as the Page Size default.

Code: Select all

<asp:DropDownList ID="PageSize" runat="server">
                                    <asp:ListItem Text="10 per page" Value="10"></asp:ListItem>
                                    <asp:ListItem Text="20 per page" Value="20"></asp:ListItem>
                                    <asp:ListItem Text="50 per page" Value="50" Selected="true"></asp:ListItem>
                                    <asp:ListItem Text="show all" Value=""></asp:ListItem>
                                </asp:DropDownList>
Unfortunately your suggestion did not work for setting Last 30 Days as the Date Range default.

Any other thoughts?
- Jeff
Wave Werks

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

Re: Modifying the Default Settings in Order Manager

Post by mazhar » Mon May 11, 2009 10:37 am

Hmm that's strange if its working for one option then it should work for all. After specifying your default selection make a fresh request to the page.

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

Re: Modifying the Default Settings in Order Manager

Post by mazhar » Mon May 11, 2009 10:45 am

OK try this revert previous change I told you and then edit Admin/Orders/Default.aspx.cs file and locate following line of code

Code: Select all

if (string.IsNullOrEmpty(tempDateFilter)) tempDateFilter = "1";
and then make it look like

Code: Select all

if (string.IsNullOrEmpty(tempDateFilter)) tempDateFilter = "5";
save change clear browser cache and then try again.

wave_werks
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 91
Joined: Mon Sep 22, 2008 8:37 pm
Location: Northeast Ohio
Contact:

Re: Modifying the Default Settings in Order Manager

Post by wave_werks » Mon May 11, 2009 11:18 am

Worked perfectly. :D

That will save many, many unneeded clicks from happening every day.

Thanks!!!
- Jeff
Wave Werks

Post Reply