Author |
Topic |
|
Jill
VP-CART Super User
USA
249 Posts |
Posted - August 26 2002 : 22:36:47
|
Does anyone know of a way to change the default sort order, for View Orders in the admin, to descending, so that the newest orders will be at the top of the page?
Thanks, Jill
|
|
epseja
VP-CART New User
USA
61 Posts |
Posted - January 31 2005 : 15:46:30
|
Yes, I am also looking for a way to do this. I've scoured the code, but there is no obvious place to specify a sort order...
-EPseja
|
|
|
Dulrr
VP-CART New User
57 Posts |
Posted - January 31 2005 : 16:21:17
|
I'm not 100% certain this will work, but it should do the trick.
In shopa_displayorders.asp, go to line 96
Find:
SortUpdown=request("SortUpdown") If SortUpdown="" then sortupdown="ASC" end if
Change to:
SortUpdown=request("SortUpdown") If SortUpdown="" then sortupdown="DESC" end if
If my guess is correct, this should change the sort order to be descending unless otherwise specified.
There's a chance that VPASP is relying on this if statement and will pass blank values and expect them to be interpreted as ascending, so there may be trouble displaying in non-descending order. (As oppossed to con-descending, I suppose?) It should be fine, looking at the code at the top of the file again, but let us know if any problems arise.
~D |
|
|
wft
VP-CART New User
66 Posts |
Posted - January 31 2005 : 22:44:26
|
Dulrr- thanks much for the hints.
to also change the default sorting in back office editing such as edit categories, edit shippings and others.
in shopa_editdisplay.asp , around line 138,
change sortupdown = "DESC" or "ASC" as need
thanks again for the tips..just wish this can be done via configuration settings too:-)
jim
www.website-flash-templates.com
|
|
|
epseja
VP-CART New User
USA
61 Posts |
Posted - February 17 2005 : 10:37:05
|
Aha! Who'd have thought it would be that simple. Thanks for the quick and easy solution.
-EPseja-
|
|
|
|
Topic |
|