Shop-Script FREE includes one demo template. It can found in the templates/tmpl1 folder. Shop-Script FREE uses Smarty templates engine (http://smarty.php.net).
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: |
|
![]() |
![]() |