Manual for: Quick.Cart | Quick.Cart.Ext | Quick.Cms | Quick.Cms.Ext
Polski English
Quick.Cart

Graphic adjustment

When the application is activated, it’s time to adjust the design (colouring, layout, graphics) to your individual needs. HTML and CSS codes are stored in the “templates/default/” directory (file with tpl extension - HTML code, file with css extension - CSS code). While doing the modifications of graphics, you should keep in mind the following:

Information presented below might be helpful for your own website's graphics modification. You will find even more practical instructions and examples in the Tips & Tricks section.

Before getting on with it also read basic terms and templates sections.

Modification of style CSS

Default style template is placed in the “templates/default/style.css” file.

The best way to change design of a page is to create a new style file in the templates/ directory e.g.”style2.css”. In that file you can write new styles or copy content of the default “style.css” file to the new one and make modifications to it. When modifications are ready switch the style template in the “database/config/general.php” file by changing the line.

$config['style'] = "style.css";

Schema you can see below describes specific elements of the code.

List of products

CSS names structure

Product's details

CSS names structure

Basket

CSS names structure

Order form

CSS names structure

Changing design of subpages and whole application (templates and themes)

Templates:

Elements of particular page such as title, content, photos, list of subpages, etc. for default layout are placed in the templates/default/pages_default.tpl file.

You can change this layout for every page. The way to create a template is described in the “tips” section.

Attention: copy to a new file only the blocks you want to modify. Other blocks will load from the default template - “pages_default.tpl”.

Themes:

When you need to change layout/design of a particular element, like header or menu, it is not enough to change templates only (as it is described above) but all composition must be altered as for example you need to hide the left menu on a selected page.

In this case the themes mechanism will come in handy. The apropriate files are stored in the “actions\themes\” directory. The “default.php” file contains the default theme. This file is responsible for generating menus (all types) as well as the whole page structure (header, body, footer).

To create a new theme, follow the steps described in the “tips” section.

Version for mobile devices

For the first time in the 3.0 version of the script we added a possibility to prepare another version of the website for mobile devices like mobile phones, palmtops, etc.

Mobile version of the webiste is available at “mobile.php” (so for example: your-website-domain.com/mobile.php). If you want to change any element in the mobile version of your website to a different one, you have to copy the specific block from the original code and put it in the same file with changed name, the new name beginning with: “MOBILE_”. For example: If you want to change a footer in your mobile website, you have to copy the FOOT block in the templates/default/container.tpl file and change the name of the copied block to MOBILE_FOOT. Then you can change the code in this new block.

print | « back