Some topics described in this section may require more advanced skills. It is marked by an asterisk which represents the level of difficulty.
Required skills:
* - basic knowledge of HTML and CSS
** - basic knowledge of HTML, CSS and PHP
How to check PHP version of my server?
For that you will need basic skills of handling a FTP connection. If you don’t have it, contact your administrator.
Connect to an FTP account, create a file on your disc, for example “phpver.php” and paste:
<?php echo phpversion(); ?>
in the file.
Then copy that file to the FTP account and run the file using an Internet browser, for example: your-domain.com/phpver.php
How to check GD library availability?
You need basic skills of handling a FTP connection. If you don’t have it, contact your administrator.
Connect to the FTP account, create a file on your disc, for example “phpinfo.php” and paste:
<?php echo phpinfo(); ?>
in the file.
Then copy that file to the FTP account and run the file using an Internet browser, for example: your-domain.com/phpinfo.php
After opening this page, you should see information about PHP version, PHP configuration, installed addons etc. On that page find information about GD. You should also find “GD Version” there, etc.
How to add your own logo?
First copy the logo to the “templates/default/img/” directory and edit the templates/container.tpl file. The logo is displayed in the <div id=”title”> marker in the BODY block.
If you want to add a logo in the JPG/PNG/GIF format, you need to replace the code:
Quick<span>.</span><strong>Cart</strong>
for the following one:
<img src="$config[dir_skin]img/your_file.jpg" alt="$config[title]" />
If you want to add a logo in the SWF format, you need to delete the code below and paste a HTML code generated from Adobe Flash for example
<a href="$config['index']" tabindex="1">Quick<span>.</span><strong>Cart</strong></a>
Change top banner (logo background) *
If you want to change default top banner, you should prepare a file (default size: 960px wide and 130 high) and name it for example: “page_header.jpg”. Copy it to the “templates/img/” directory. Then edit the “templates/default.css” file and in the line responsible for the #head2 .container block change the path to the background file, for example:
change:
#head2 .container{position:relative;height:130px;background:#fff url('img/header_bg.jpg') no-repeat left bottom;border-top:1px solid #c9c9c9;}
to:
#head2 .container{position:relative;height:130px;background:#fff url('img/naglowek_strony.jpg') no-repeat left bottom;border-top:1px solid #c9c9c9;}
How to change width of the left column? *
If you want to change width of the left column to 200px (by default is 270px, so we need to decrease it about 70px), you should edit the “templates/default/style.css” file and change values in the following lines:
- style to id “column”:
#column{float:left;width:270px;padding:20px 0;background:url('img/body_bg.png') repeat-x left top;}change “width:270px;” to “width:200px;” - it is the width of the left column,
- style to id “content”:
#content{float:left;width:690px;padding:20px 0 10px;text-align:center;background:url('img/body_bg.png') repeat-x left top;}
change “width:690px;” to “width:760px” - it is the width of the block with content on the right side
How can I change design of selected subpage?
It is possible to set theme and template for a particular page and subpage (where you can choose theme and template for a page you can learn in the manual section). There are two ways of changing the design for a particular subpage:
Different top banner (background under logo) for particular page
You can add a top banner for a particular page by editing it in administration. To do that, prepare a file (by default its size is: 960px width and 140px height) and while editing the page choose the “View” tab and upload the file in the “Banner” field.
Templates - changing the middle part of a subpage *
If you want to change design of the middle part of the site, where name, description and photos are displayed, do the following:
- create a new file in “templates/default/” directory. It should begin with “pages_” and have the “tpl” extension e.g. “pages_new.tpl”,
- copy all content or chosen blocks, that you are going to change from the “templates/default/pages_default.tpl” file and paste it to the new file,
- now, you can modify the new file, change the order of variables, change names of classes and id for the CSS style,
- login to administration, edit the page and select a new template in the “View” tab.
Themes - changing design of a whole subpage **
When you need to change whole or most of the design of a particular subpage, you can use themes for that. It will require some skills in the PHP programing. Themes can be found in the “actions/themes/” directory, the default theme is named “default.php”.
- Create a new file in the “actions/themes/” directory, with the php extension and name it e.g. “new.php”,
- copy content of the “default.php” file to the created file,
- modify the “new.php” file to adjust it to your needs,
- login to administration, edit the page and select a new theme in the “View” tab.
How to increase the size limit of uploaded photos?
If longer side of a photo uploaded on the server is larger than 900px, it is resized to 900px (the longer side). We set this restriction because the 1024×768 resolution photos are most commonly use and they don’t fit the screen. Although if you need to display a bigger photo, edit the “database/config/general.php” file and change the following value:
$config['max_dimension_of_image'] = 900;
How to execute a PHP code in templates? **
The script can execute a PHP code in templates. We don’t recommend this solution, but if it is necessary, please use it with consideration. To enable execution of a PHP code in templates:
- edit the “database/config/general.php” file and change value of the “$config[’embed_php’]” variable to:
$config['embed_php'] = true;
- edit any template from the “templates/default/” directory and insert the code there e.g.:
<?php phpinfo(); ?>
Templates with extension tpl can be viewed by an internet browser. We recommend to hide these files when PHP code is included in template files. In the “templates/default/” directory create a “.htaccess” file with content:
Options +Indexes IndexIgnore *.tpl <files *.tpl> order allow,deny deny from all </files>
How to add next menu? **
By default, 3 types of menus (2 upper and 1 on the left side) are displayed. If you want to add a next type of menu for example on the left side, do the following steps:
- edit “database/config/general.php” file and change
$aMenuTypes = Array( 1 => $lang['Menu_1'], 2 => $lang['Menu_2'], 3 => $lang['Menu_3'], 4 => $lang['Menu_4'] );
to
$aMenuTypes = Array( 1 => $lang['Menu_1'], 2 => $lang['Menu_2'], 3 => $lang['Menu_3'], 4 => $lang['Menu_4'], 5 => 'Name for new menu' );
- edit “actions/themes/default.php” file and add code
$sMenu5 = $oPage->throwMenu( 'menus.tpl', 5, $iContent, 1 );
- edit “templates/default/container.tpl” and add $sMenu5 variable behind e.g. $sMenu3 variable in this file,
- log in to the administration and add pages to this type of menu.
How not to display subpages in the left menu? **
If you don’t want to display subpages in left menu, edit the “actions/themes/default.php” file and replace:
$sMenu3 = $oPage->throwMenu( 'menus.tpl', 3, $iContent, 1 );
for
$sMenu3 = $oPage->throwMenu( 'menus.tpl', 3, $iContent, 0 );
How to change price display format?
Default price format is 1000.00, to change that format to, for example 1,000.00, you need to:
- In the "core/common.php" file in the displayPrice( ) function change the:
return $mPrice;
line to:
return number_format( $mPrice, 2, '.', ',' );
- In the "core/common.js" file in the changePriceFormat( ) function, there should the thousands separator be set (separator for decimals won't be changed in that case), so default config lines in that function:
var sDecimalSeparator = '.'; var sThousandSeparator = '';
should be changed to:
var sDecimalSeparator = '.'; var sThousandSeparator = ',';
How to store sessions in the shop directory?
Default PHP sessions are stored in the “/tmp/” directory. If you want them to be stored in the shop directory, for example files/sessions/ you should:
- Create a directory, for example “files/sessions/”,
- Edit the “database/config/general.php” file and in penultimate line paste code:
ini_set( 'session.save_path', 'files/sessions/' );
How to display the order value together with the basket link? *
If you want the ordered product's value to be displayed next to their quantity at the basket link, you need to:
- edit the “templates/default/menus.tpl” file and find code:
<strong>$iOrderProducts</strong>
- follow this code with:
<span class="summary"><strong>$fOrderSummary</strong>$config[currency_symbol]</span>
- edit “index.php” and change the:
#$fOrderSummary
code to:
$fOrderSummary
- edit the “templates/default/style.css” file and set the way the value should be displayed by adding the following code:
#menu1 li.lBasket .summary{}
How to add other sizes of thumbnails? **
By default, thumbnails size is set to 75, 150 and 180. If you want to add another size e.g. 250px, edit the “database/config/general.php” file and change:
$config['images_sizes'] = Array( 0 => 75, 1 => 150, 2 => 180 );
to:
$config['images_sizes'] = Array( 0 => 75, 1 => 150, 2 => 180, 3 => 250 );
Remember, that if you change 100, 150 and 200 values for another, all thumbnails already uploaded in these sizes must to be generated once more in new sizes. You can do that by editing all pages and products which have thumbnails in these sizes and save it without making any changes. The application will recognize differences in thumbnails’ sizes and will generate them again.

