Table of contentcontents
Table of Contents | ||
---|---|---|
|
...
Troubleshooting
How to modify a page's display?
...
First, your_page.php
:
Code Block | ||||
---|---|---|---|---|
| ||||
<?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');
?>
|
...
This is done in your PrestaShop install's /config/config.inc.php
file. You should edit it in order to add the following lines:
Code Block | ||||
---|---|---|---|---|
| ||||
@ini_set('display_errors', 'on');
define('PS_DEBUG_SQL', true);
|
...
If you do have access to php.ini
, open it and edit the following lines:
Code Block | ||||
---|---|---|---|---|
| ||||
post_max_size = [anything]
upload_max_filesize = [anything]
|
If you want to set the maximum to 200 megabytes, change their values to
Code Block | ||||
---|---|---|---|---|
| ||||
post_max_size = 200M
upload_max_filesize = 200M
|
...
- Go to the
/mails/en
directory from your shop root. - Edit the HTML template relative to the mail you want to modify: for instance,
order_conf.html
is the e-mail sent for new orders. Insert the link to the survey right in the HTML code (static):
Code Block html html <a href="http://www.myshop.com/survey.php">Click here if you want to participate to our survey !</a>
or a dynamic link with your logo:
Code Block html html <a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;"></a>
- (Optional) To change the default color (which is pink: #DB3484), change the hexadecimal value to your preferred color value.
- Save the file.
...
- Go to phpMyAdmin. If you can access it, ask your host to perform these actions.
- Select your shop's database, and select the
ps_lang
table. - Click "Insert", and create a new entry with these values
- id_lang -> 1
- name -> English
- active -> 1
- iso_code -> fr
- Execute the query.
You should be able to log in again.
How to create a new translation
Follow these steps:
- Go to your PrestaShop back-office, in the "Tools" tab, and its "Languages" subtab.
- Add a new language.
- Note: You can download the flags used in PrestaShop. Don’t forget to activate the language.
- Go to the "Translations" tab.
- In the "Copy" section: select "English, prestashop" to "Your language, prestashop", then click "Copy".
- In the "Modify translations" section: choose "Front Office Translations" in the drop-down list, then click the flag of the new language. Begin to translate the fields. Click "Save the modifications" once it all seems correct to you.
- Repeat the last step for each type of translation ("Back Office", "Modules", etc.).
- Your version of PrestaShop is now totally translated! Test, test, test! Have your friends test it too!
- If you want to contribute it to the PrestaShop project, you can propose your new translation to the PrestaShop Team. In the "Export a language" section, select the new language; in the following fields select "prestashop" then click "Export". Save this file and send it to [email protected] with as subject "New translation: XX" with "XX" being ISO code of the language.
- You have contributed to the PrestaShop project! Thank you so much!