oscommerce template system explained

Oscommerce Logo

Directory Structure

Figure 1.0 Oscommerce default directory structure
Figure 1.0 Oscommerce default directory structure

Technically, oscommerce 2.2RC2 does not have a built in template system. Instead of having a separate section just for design, oscommerce integrates the design into each of its cart pages. When you are creating a template for this cart, you will be modifying the existing files as there is no way to separate the design from the actual source code.

The image attached shows the default directory structure of oscommerce.

In oscommerce, the files and folders that are mostly used in the template customization will be discussed below. Depending on the template, you may see all or only some of the files/directories listed. ( Consider / as the directory root. )


This folder contains the essential parts of the template.In it you will find the files that define the layout of the template ( for example, header, footer ), the CSS, javascript and images that comprise the template . This is the place where you will go should you decide to customize the template .


contains the php files of the info box components  that can be used in either left or right column in your page. A sample of the infobox components that are available to you for use are the best_sellers, categories, currencies and information info box. To use one of the components, you will need to add a reference to them in either the includes/column_left.php or includes/column_right.php file.


holds all the core classes used by the cart. It is also where you will find the boxes.php file which is used by the template to build the product boxes.


this folder contains the core file that runs the application. Basically classes, cart functions, constant variables, languages and etc. Below are the folders placed inside includes folder:

You can view this article online at: