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.
...