VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 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-ASP 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-ASP 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-ASP 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-ASP 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-ASP 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