Home | Store | osCommerce Tutorials

osCommerce Main Categories File Path

The osCommerce Categories Box is located in the Left Column. We already skim over the file structure of the osCommerce Left Column before. Now, we will study how the Main categories display in the osCommerce homepage.

Before study the code structure of the osCommerce main categories, let's see the file path of the Categories page. The following diagram illustrate how the Categories page (categories.php) inserted into the osCommerce homepage and finally display on the homepage:

osCommerce Categories Box File Structure

The following line of code in the osCommerce homepage will inserted the includes/column_left.php file into index.php.

require(DIR_WS_INCLUDES . 'column_left.php')

The DIR_WS_INCLUDES was defined in the configure.php file as "includes/". Therefore the file path of the column_left.php is includes/column_left.php.

Inside the column_left.php file, the file path of the Main Categories file is:

include(DIR_WS_BOXES . 'categories.php');

The DIR_WS_BOXES was defined in the configure.php file as "includes/boxes/". Therefore the file path of the categories.php is:

includes/boxes/categories.php

This osCommerce tutorial discuss the file path of osCommerce Main Categories.