You are herePHP
PHP
Creating a Zen Cart Template
Creating a new template for Zen Cart is fun. Prior to version 1.3.x of Zen Cart, some HTML tables were used for layout. But in version 1.3.x onwards, Zen Cart has fully abandoned the use of HTML tables for layout, using a CSS-based layout instead.
Creating A File System
Let us start building a new template for Zen Cart by creating a new folder under includes/templates/. Let us name it Packt (or whatever you like). But remember to use underscore instead of spaces in a long name. Avoid using Book Shop. Instead, use book_shop or BookShop.
Under the packt template folder, create the following folders:
- images: this folder will contain all the images needed for the template.
- css: this folder will contain all the CSS files for the template. It's better to copy all the files from the includes/templates/template_default/css directory to this css folder.
- common': this folder will contain the common files for the template. You may copy the files from the includes/templates/template_default/common folder, and edit those to suit your needs.
- sideboxes: this folder will contain module-specific sideboxes. Here, you can add new sideboxes, which you are going to use.
- templates: this folder contains page-specific templates. Whenever you want to change a page's layout, copy the template for that page to this directory and modify it as required.
Information regarding a template is located in the template_info.php file. You need to create a new template_info.php file for the new template. Copy the file called includes/templates/template_default/template_info.php into the new template folder, and then open the template_info.php file in your favorite text editor.
![]() | Zen Cart: E-commerce Application Development author: Suhreed Sarkar asin: 1847191177 |










