Home | Store | osCommerce Tutorials

osCommerce Navigate Through Categories Introduction

We learned from previous tutorials that the value of $category_depth passing down to the main program determine what the osCommerce homepage contents of the Main Content (Body text) will be displayed.

Let's recall what we learned before. The value of $category_depth passing down to the main program may be:

  • $category_depth = 'top'
  • $category_depth = 'nested'
  • $category_depth = 'products'

The picture below summarize how the contents of Main Content of osCommerce homepage will display according to the value of $category_depth passing to the main program.

osCommerce category_depth value

$category_depth = 'nested'

In this tutorial series, we are going to study how the codes work when the value of $category_depth passing to the main codes of osCommerce homepage is 'nested'. In other words, we are going to study the codes to navigate through categories.