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-Cart StoreFront Customer Forum

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

 All Forums
 VPCart Forum
 sorting ccategory only picks up first category
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

3 Posts

Posted - November 06 2003 :  16:43:59  Show Profile  Visit b3troy's Homepage  Reply with Quote

Is there a way to force the xproductsort to pick up the lowest ccategory id when sorting? at the moment is picks up the alph id as it is added. eg if more then one category is selected (12,2,4) the sort is working on 12 not 2?

Any suggestions.


Starting Member

37 Posts

Posted - November 08 2003 :  09:42:24  Show Profile  Reply with Quote
Yes. Are you talking about xsortproducts? I use the pother1 field in the products table and alpha characters. So code the pother1 (or pother2, pother3, etc) field in all of your product records in category 12 as "Z" then change your xsortproducts so it's sorting by pother1,cname. That will force category 12 at the end. Or create another field in products and sort on that field. Hope this helps.

If you use this, you'll have to code all of your products accordingly, i.e. the pother1 field for products in category 1 would be "A", etc. If you have more than 26 categories, then start using "AA", "BB", etc.

Edited by - meldrape on November 08 2003 09:44:40
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000