Child pages
  • System Administrator Guide

Versions Compared

Key

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

...

  • config.inc.php: core configuration file for PrestaShop.
  • defines.inc.php: contains all of PrestaShop constant values. Previously defined in settings.inc.php.
  • settings.inc.php: contains the access information to the database, as well as the PrestaShop version number.
  • smarty.config.inc.php: contains all configuration settings pertaining to Smarty, the template/theme engine used by PrestaShop.

config.inc.php file

In production mode:

...

Most of the variables in this file are set during PrestaShop's installation, and should not be edited manually. Change this file at your own risk.

defines.inc.php file

In production mode, make sure that define('_PS_MODE_DEV_', false); is indeed set to

...

false

...

.
On contrary, in developmentIn order to put PrestaShop into debug/test mode, you can get help tracing possible errors by:

...

and thus trace errors and mistake more easily, set define('_PS_MODE_DEV_', false); from false to true.

...

You can also enable the code profiling tool, which displays a lot of information at the bottom of every page: set the define('_PS_DEBUG_PROFILING_', false); line to

...

true, then open front-office or back-office page. At the bottom of it, you will find a summary of the page loading performances. Note that you should really disable your store, so that visitors cannot see this information.

Among other constant values, this file contains the location for all files and folders. If you need these changed, do not forget to keep the original at hand, in case you wish to go back to the original path.

...