Table of content
You have to add your own selectors in your theme's CSS file. This file is usually found in /themes/YOUR_THEME/css/global.css
Once created, you can use your selectors in the .tpl page you want to modify.
You can also create your own .tpl file (located in your theme directory), where you can insert your own HTML tags, and create a .php page (at the root of your shop) which will call the .tpl file.
Here is an example:
First, your_page.php
<?php include(dirname(FILE).’/config/config.inc.php’); include(dirname(FILE).’/header.php’); $smarty->display(PS_THEME_DIR.‘your_page.tpl’); include(dirname(FILE).’/footer.php’); ?> |
With that, your_page.tpl contains your HTML code.
The .htaccess file, located at your shop root, enables you to set some environment variables (like the PHP version). You can also use to customize the URL-rewriting rules, and control the access to some directories and some other actions.
VERY IMPORTANT:
First thing to do: make a backup of your existing .htaccess file if any, locally or online.
Once Apache is configured, if there is no .htaccess file in your shop's root directory yet, create an empty one:
Warning: it will overwrite the existing one. If it was an empty file, that's okay, but if you have specific instructions in this existing, you should first move them over to the text-field in the "Generators" sub-tab, so that they are still found in the .htaccess file. If you forget to move your existing .htaccess instructions over, you risk putting your shop offline.
Now that it is enabled, the URL-rewriting should be working fine, which means that URL like this:
http://www.myprestashop.com/product.php?id_product=2
...will be replaced by...
http://www.myprestashop.com/musique-ipods/2-ipod-shuffle.html
If your back-office and/or front-office start displaying a bank or incomplete page regularly without any error message, it is necessary to activate the display of the PHP errors in order to understand the problem.
This is done in your PrestaShop install's /config/config.inc.php file. You should edit it in order to add the following lines:
@ini_set('display_errors', 'on'); define('PS_DEBUG_SQL', true); |
Then refresh the web page.
If it displays an error, contact PrestaShop support at [email protected].
Note that it could also be a .htaccess issue. Read the previous entry, "ow to generate the .htaccess file".
If you make a CSV Import with accentuated texts, beware to select UTF-8 or iso-8859-1 in the "Import" sub-tab of the "Tools" tab, and be sure that the .csv file has been saved with the same encoding.
If needed, save the CSV file from you text-editor (such as Notepad), specifying the right encoding.
Some people may encounter memory allocation issues, particularly when the back-office tries to display images which are quite big in the disk (over 800 Kb). Know that even if you increase the memory limit to 128 Mb, some host, such as 1&1, will keep the limit at 32 Mb. See this FAQ from 1&1.
There are only two solutions, and they are both drastic:
There are cases when PrestaShop will not recognize your e-mail or password when connecting, and nothing happens when you ask for a new password. There can be a number of reasons for this, but the important thing is to be able to log in again. This is will require you to access your database, using phpMyAdmin for instance.
You will have to follow the following procedure:
If it still doesn't work, open the /config/settings.inc.php file and check the value of the "PS_BASE_URI" variable. It should contain the shop's file path:
If all fails, contact the PrestaShop support team.
To change the maximum size of the uploaded files in your server, you have to edit the php.ini file for your PHP install. This can only be done if you do have access to your server's PHP configuration files. If not, ask your host.
If you do have access to php.ini, open it and edit the following lines:
post_max_size = [anything] upload_max_filesize = [anything] |
If you want to set the maximum to 200 Mbytes, change their values to
post_max_size = 200M upload_max_filesize = 200M |
Then, restart the server.