Shop-Script software uses Smarty templates engine (http://smarty.php.net). Smarty is a very popular template engine which is used by the big number of PHP web solutions (shopping carts, community forums, chats and more). Smarty allows you to change look & feel of your shopping cart as you like.
Design is defined in templates - HTML files located in the
templates/tmpl1/ subfolder of the directory where you installed Shop-Script
to. Design is 100% separated from PHP source files.
The main front end template is index.tpl.html (this template
defines layout of your shopping cart design). Please open this file in your
text or HTML editor (e.g. Macromedia DreamWeaver, MicroSoft FrontPage, Adobe
GoLive) and make necessary changes in it (change colors, logos, etc.).
To redesign your shopping cart you should have basic HTML knowledge and/or experience of using HTML editor.
Template of your Shop-Script FREE shopping cart system is binded
to the interface language.
A list of available languages is set in the php file cfg/language_list.php.
Open it in your text editor.
Here is an example of adding an Englih language.
$lang_list[0] = new Language();
$lang_list[0]->description = "English";
$lang_list[0]->filename = "./includes/language/english.php";
$lang_list[0]->template_path = "./templates/tmpl1/";
As you can see in this sample, $lang_list[]->template_path
sets template, that will be used. You can simply change it's value to
a new one ("./templates/tmpl3/", f.e.).
Each language can be combined with a separate template as well as a single template
can be used with many languages.
Folder templates_c is used by Smarty to parse templates and compile PHP files. Make sure that Shop-Script scripts are allowed to write in this folder (if they are not, corresponding warnings will appear). This folder is also should be protected from public access.
![]() |
![]() |
View next: |
|
![]() |
![]() |