Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories menu System


bktnp

Recommended Posts

Posted

I would like to know how does the collapsing and expanding of menu in catagories box is happening. I would like to learn it and understand it. Please do help me.

 

Thank you

New Learner

Posted

The code in the index.php file has three sections: categories, products and home page. The categories section starts with the line

if ($category_depth == 'nested') {

If you go farther down the page you will see the else parts of that statment that is for the other sections. Intially, when you display your site, the home section is accessed. When a category is clicked, the category section is accessed. It reads in the appropriate data from the database and displays the categories.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
The code in the index.php file has three sections: categories, products and home page.  The categories section starts with the line
if ($category_depth == 'nested') {

  If you go farther down the page you will see the else parts of that statment that is for the other sections.  Intially, when you display your site, the home section is accessed.  When a category is clicked, the category section is accessed.  It reads in the appropriate data from the database and displays the categories. 

 

Jack

Posted

Actually, if you take a look at the categories box that should give a better indication of how the menu is collapsed (and expanded). Keep in mind that osC uses a top down approach to constructing the menu.

Archived

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

×
×
  • Create New...