OSCommerce/STS, how to add a dropdown for parent categories, then for child categories, then grandchild cats?
What I am trying to do is just put a basic dropdown box on a page that is populated with all the categories, then once one is selected, a second box appears that has sub-categories, (which of course depends on the category selected), and then a 3rd level of categories depending on what was selected at the second level.
I am using the STS module but am un-aware of the syntax of how to do the above. I know we would have initially the level 1 or the Parent category dropdown box, then on selection we would pass in the database query parameters, then make the second level categories visible. Likewise for the 3rd level. I also believe it would only be a few lines of code and I am not sure how to write it and I can not figure out the keywords to find something similar on OSCommerce. So if anyone has any thoughts and advice, I would very much appreciate it.
- Anonymous10 years agoFavorite Answer
I don't know how to do that but this seems to explain how to set up a custom categories box - http://www.oscommerce.info/kb/osCommerce/General_I...
None of the contributions I found used STS to modify the categories box. They mostly use CSS.
I found these in the contributions page of osCommerce :
.They let you control the appearance of the category box. I presume you can edit the CSS code to indent the smaller sub categories and change the background image to + or -
This is the search result for "tree menu category box" in contributions.
Good luck.Source(s): http://addons.oscommerce.com