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
 VP-ASP 6.50 Features and Facilities
 Category and Subcategory Menu issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

goshen
VP-ASP New User

132 Posts

Posted - March 20 2007 :  01:07:15  Show Profile  Reply with Quote
Has anyone been able to figure out how to ensure that the subcategories stay under their primary categories. It is very annoying to have category show up as a standalone on the category list that displays from the <%NavigateShowCategories%> routine.

VPASP, please correct this for us. One will expect that if Category 1 has two subcategories (1a and 1b), then those should show up as shown below:

Category 1
Subcategory 1a
Subcategory 1b
Category 2
Subcategory 2a
Subcategory 2b
Subcategory 2c
Subcategory 2d

.....and not like this (as is default with VPASP:
Category 1
Subcategory 2b
Category 2
Subcategory 2a
Subcategory 1a
Subcategory 2c
Subcategory 2d
Subcategory 1b

devshb
Senior Member

United Kingdom
1898 Posts

Posted - March 20 2007 :  05:31:13  Show Profile  Visit devshb's Homepage  Reply with Quote
what we do is use catextra to specify the ordering, and then change the catsort (or sortcat; can't remember offhand, but it's in the products config options in the site-setup area) config option to use:
catextra,catdescription

instead of just:
catdescription

for the values of catextra (ie for ordering), don't use numbers as it's a text field so "20" would come before "3", instead, use catextra values like this for the corresponding category descriptions:
Category 1 - "001-000"
Subcategory 1a "001-001"
Subcategory 1b "001-002"
Category 2 "002-000"
Subcategory 2a "002-001"
Subcategory 2b "002-002"
Subcategory 2c "002-003"
Subcategory 2d "002-004"

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

Edited by - devshb on March 20 2007 05:32:33
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000