Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

main categories help


travisb

Recommended Posts

Posted

Instead of showing the subcats when someone clicks a main cat, I want to show a specific page for the cat without showings the rows and columns of subcats. The subcats will only be found in the sidebar. Is there a way in index.php to see when parent_id = 0 to include a different page? If so, where would I add this? Or do you have a better solution? Thanks your help.

Posted

Ok, I edited the categories.php file and made it so if parent_id = 0, change the href to a different page. That seems to work fine.

 

Now I have a new question. When I am on that main category page, I want the subcategories to show up in the side nav. How can I tell it to show the subategories when I am on that page?

Posted

I am having a hard time understanding how the code works. Where in categories.php is the code that determines whether or not to show subcategories for the selected main category?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...