Changing defaults

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Changing defaults

Post by Brewhaus » Sat Feb 23, 2008 4:28 pm

I know that there is a simple answer to this, but it evades me. How can we change the default settings for the Orders screen? For example, a default setting for the Date Range is 'This Week'. How can we change this to be 'All Dates'?

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sun Feb 24, 2008 1:17 pm

Have to modify the code in ~/Admin/Orders/Default.aspx.cs. AC7 saves the state of those filters so they are the same whenever you come back to the page.

I can tell you how to make it do one of these two behaviors:

1. Every single time you open the page, it defaults to All Dates. If you change it, select an order, and then return to the Orders list it will reset to "All Dates".

-or-

2. The first time you open the page in a new browser session it will default to "All Dates". As long as that browser session remains open, it'll remember it's setting and stay to whatever the last value you set, until you close the browser.

Let me know and I'll post the code changes necessary for your choice.
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

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Post by Brewhaus » Sun Feb 24, 2008 5:44 pm

What I wish to do is change the defaults so that every time we go to the Orders screen it is our selections by default. I figured that it was in the /Admin/Orders/Default.aspx or aspx.cs file, but I could not figure out how to change it (although I did spend a half hour or so trying).

We want to see All Dates, and all Unshipped orders (the others can remain on their current defaults). I would have liked to see cancelled orders not show up at all, but unfortunately I do not see that as an option. :(

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Sun Feb 24, 2008 9:16 pm

The dashboard gives you a *really* fast way to browse all the orders for a specific order status.
Those order counts to the right of each status are clickable - automatically brings up the orders list and filters for the given status.

I'll see if I can find the code changes you need - might take me a day or two, orders picked up heavily this weekend.
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

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Post by Brewhaus » Mon Feb 25, 2008 6:55 pm

Because there are a few people using the software, it would be far better to simply set the defaults to automatically bring up the order preferences that we want.

Incidentally, is there any way to have cancelled orders simply not show in the order list? Once an order is cancelled, there is not likely any need to show it in the list. If we, for some unknown reason, really needed to access the order, then we can get at it using the order number itself.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Post by AbleMods » Mon Feb 25, 2008 7:04 pm

I couldn't figure out an easy way to filter cancelled orders or a reason to keep them around. I wrote a delete feature to get of 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

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Post by Brewhaus » Mon Feb 25, 2008 8:16 pm

My only problem with deleting records is that once in a while we do wish to see them for the comments. For now I guess we will have to live with cancelled orders showing up in the list, but I would like to at least change the defaults that I mentioned.

Post Reply