Child pages
  • Troubleshooting

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...