Child pages
  • Troubleshooting

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Table of contentcontents

Table of Contents
maxLevel2

...

Troubleshooting

How to modify a page's display?

...

First, your_page.php:

Code Block
HTML
HTML

<?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
HTML
HTML

@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
html
html

post_max_size = [anything]
upload_max_filesize = [anything]

If you want to set the maximum to 200 megabytes, change their values to

Code Block
html
html

post_max_size = 200M
upload_max_filesize = 200M

...

  1. Go to the /mails/en directory from your shop root.
  2. 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.
  3. 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>
    
  4. (Optional) To change the default color (which is pink: #DB3484), change the hexadecimal value to your preferred color value.
  5. Save the file.

...

  1. Go to phpMyAdmin. If you can access it, ask your host to perform these actions.
  2. Select your shop's database, and select the ps_lang table.
  3. Click "Insert", and create a new entry with these values
    • id_lang -> 1
    • name -> English
    • active -> 1
    • iso_code -> fr
  4. Execute the query.
    You should be able to log in again.

How to create a new translation

Follow these steps:

  1. Go to your PrestaShop back-office, in the "Tools" tab, and its "Languages" subtab.
  2. Add a new language.
  3. Note: You can download the flags used in PrestaShop. Don’t forget to activate the language.
  4. Go to the "Translations" tab.
  5. In the "Copy" section: select "English, prestashop" to "Your language, prestashop", then click "Copy".
  6. 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.
  7. Repeat the last step for each type of translation ("Back Office", "Modules", etc.).
  8. Your version of PrestaShop is now totally translated! Test, test, test! Have your friends test it too!
  9. 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.
  10. You have contributed to the PrestaShop project! Thank you so much!