shopping cart templates, oscommerce templates, cre loaded 
templates, zencart templates, magento templates

Ecommerce Products KnowledgeBase

shopping cart templates, oscommerce templates, cre loaded 
templates, zencart templates, magento templates

creloaded template system explained

Print | Bookmark
Bookmark and Share
Creloaded Logo

Directory Structure

Figure 1.0 Creloaded default directory structure
Figure 1.0 Creloaded default directory structure

In the CRE loaded shopping cart software, its template system was designed to separate the design from the rest of the source code. We will discuss the important template related files and directories to explain their function within the template system. This article is not meant to explain every file and directory on your site but just give you enough information so that you will be able to locate the most commonly updated files/directories .

templates directory

this directory is where all template and design related files are located within the cart . The consists of two parts (1) the content directory and (2) actual template directories .

tempates/content directory

the content directory is where you will find all the default code to display the main content of a particular page . The files in the content directory have the following naming convention :  <name of the page>.tpl.php . There is a direct relationship between the name of a file in this directory and the name of a page on your site. If you want to find the code for the content of a particular page on your site, take the name of the page you are looking at ( minus the php extension ) and locate a file with a matching name the templates/content directory . This will the be file that contains the main content of the page. For example, to find the code for the specials.php file on your site, go to the templates/content directory and locate the specials.tpl.php . This will be the source code for that file.

All other directories within the templates directory are the actual template directories where you will find the design, layout and images displayed on your site . The default template directory that comes with the site is named cre_ats. cre_ats is the design that you saw on your site the first time you were able to visit it.

Template files and directory structure

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:

  •  main_page.tpl.php

    this is the main file in the template and is the file where the template layout is set up. It is where you organize the look of your site - where you specify the header, footer, display of the sideboxes and footer .

  • stylesheets.css

    contains the CSS styles used in the template. Please note that this file may not be present in all templates .

  • boxes/

    the boxes directory contains the code for all the side boxes that are available for you to use. a few example of boxes available are the specials, new product and information sidebox . Any sidebox module found in this directory can be installed on your site through the infobox management page in your store admin.

  •  mainpage_modules/

    as the name suggests, this directory contains the code for the modules that can be enabled on your main page. Common files in this directory are the new products, main categories and featured products modules. You can enable modules found in this directory by assigning them to your template within the template configuration page.

  • CSS/

    contains the stylesheets used by the template .

  • images/

    contains the images that are used by your template .

  • az_template/

    if present, contains additional template specific code for the template. May include additional CSS, javascript and layout definitions that are needed by the template.

az_template directory structure and files

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:

  •  template_main.php

    is the consolidated PHP file where the template layout sections are defined. In it you will find the definitions for the header, footer, left and right column. All sections are defined in this file to make tehm easier to locate and customize

  • templ_product_box.php

    if present, defines the layout of the product boxes used by the template like those in the new products page or product listing. This file is used by all relevant pages to make the product box layouts consistent in every page.

  • includes/languages/<language>/menu.php

    contains the definitions of variables used by the template. It is most commonly used to define the menus and buttons text including, box headings and banners. A copy of this file needs to be copied and translated whenever you add a new language to your site as it is necessary to the proper functioning of the template.

 

Was this article helpful?

Yes No
Bookmark and Share
Attachments

Category: CRELOADED

3534 views