Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 General help me questions
 Admin sort order
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jill
VP-CART Super User

USA
249 Posts

Posted - August 26 2002 :  22:36:47  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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

Go to Top of Page

Dulrr
VP-CART New User

57 Posts

Posted - January 31 2005 :  16:21:17  Show Profile  Visit Dulrr's Homepage  Reply with Quote
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
Go to Top of Page

wft
VP-CART New User

66 Posts

Posted - January 31 2005 :  22:44:26  Show Profile  Visit wft's Homepage  Reply with Quote
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

Go to Top of Page

epseja
VP-CART New User

USA
61 Posts

Posted - February 17 2005 :  10:37:05  Show Profile  Reply with Quote
Aha! Who'd have thought it would be that simple. Thanks for the quick and easy solution.

-EPseja-

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00