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
 Customization
 Sorting Catergories
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gupster
VP-ASP New User

101 Posts

Posted - June 19 2006 :  04:18:31  Show Profile  Visit gupster's Homepage  Reply with Quote
Is there a way to sort the cats in an order that i choose instead of a,b,c e.c.t

Cheers,

www.reactionclubwear.co.uk
www.reactionclothing.co.uk
www.reactionlingerie.co.uk

devshb
Senior Member

United Kingdom
1898 Posts

Posted - June 19 2006 :  05:45:38  Show Profile  Visit devshb's Homepage  Reply with Quote
You can change the config option:
xsortcategories

to the column name that you want to sort by.

we use "catextra" and populate that with the relevant ordering text string.

note that as it's a text field and not a number field, "100" will come before "2" so you'd need to do it like:
"001-000"
"001-001"
"002-000"
"002-001"
etc

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page

gupster
VP-ASP New User

101 Posts

Posted - June 19 2006 :  05:57:33  Show Profile  Visit gupster's Homepage  Reply with Quote
Thanks i will give it a go.

www.reactionclubwear.co.uk
www.reactionclothing.co.uk
www.reactionlingerie.co.uk
Go to Top of Page

gupster
VP-ASP New User

101 Posts

Posted - June 19 2006 :  09:20:28  Show Profile  Visit gupster's Homepage  Reply with Quote
Hi, Ive changed xsortcategories to catextra.


Category 1 i have out 001-000
Category 2 i have out 002-000
Category 3 i have out 003-000

and so on for all 18 catergorys i have then gone back to the site refreshed deleted cookies e.c.t it and nothig has changed.

Please help, thanks.

www.reactionclubwear.co.uk
www.reactionclothing.co.uk
www.reactionlingerie.co.uk
Go to Top of Page

support
Administrator

4266 Posts

Posted - June 19 2006 :  20:18:04  Show Profile  Visit support's Homepage  Reply with Quote
Hi there,

Are you using 6.08? If not open shopproductsubs.asp and locate all references to:

catSQL=catsql & " order by catdescription"

Change to:

'VP-ASP 6.08 - Order by config option rather than hardcoded
catSQL=catsql & " order by " & getconfig("xsortcategories")
' catSQL=catsql & " order by catdescription"

This should allow you to sort your left column links.

Thanks,
Cam

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