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
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 Admin: default sort for Products
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

49 Posts

Posted - January 05 2007 :  13:09:29  Show Profile  Reply with Quote
We'd like to have the default sort order for the Products grid in Admin sort by cname but I can't for the live of me find where change that. Any direction is appreciated :)

View/Edit Products

VP-ASP Super User

254 Posts

Posted - January 05 2007 :  13:17:47  Show Profile  Reply with Quote
I'd be interested in this as well. It would save that annoying one little step if ccode could be made the default.
Go to Top of Page


4262 Posts

Posted - January 07 2007 :  22:09:03  Show Profile  Visit support's Homepage  Reply with Quote
Hi nxpage,

You will need to edit your shopa_editdisplay.asp, find a subroutine called Sub GenerateSQL,around line 249
you will find something like
If sortfield="" then sortfield=idfield

remove that line and replace it with

If lcase(dbtable) = "products" and sortfield="" then
If sortfield="" then sortfield=idfield
end if

VP-ASP Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000