PrestaShop Documentation

The PrestaShop file structure

Prestashop developers have done our best to separate various parts of the best and intuitive software.

This is the way the file is organized:

/ Admin: Contains all Prestashop files related to Back-Office. When accessing this folder with your browser, you will be asked to provide the right identification, for security reasons. Important: You have to make sure to protect the folder with the .htaccess or .passwd file!
/ Cache: contains temporary folders that are generated and reused to ease the server load.
/ Class: contains all files related to the Prestashop object model. Each file represents (and contains) php class, and the method / properties.
/ Config: Contains all Prestashop configuration files. Unless requested, you should not edit it, because they are directly handled by Prestashop’s installer and back-office.
/ Controller: contains all files related to prestashop controllers – as in the model-view-controller (or MVC), the software architecture used by Prestashop. Each file controls the special part of Prestashop.
/ CSS: contains all CSS files that are not installed on the theme – therefore, this is mostly used by the office back Prestashop.
/ Docs: contains some documentation. Note: This must be removed in the production environment.
/ Download: Contains your digital products, which can be downloaded: PDF, MP3, etc.
/ img: contains all images, icons, and prestashop image files – it, which does not belong to the theme. This is where you can find pictures for the product category (/ c sub-folder, for products (/ p folders) and that for your own back-office (/ admin sub-folder).
/ Install: Contains all files related to the Prestashop Installer. You will be asked to delete it after installation, to increase security.
/ JS: Contains all JavaScript files that are not installed on the theme. Most of them are included in the back office. It’s also a place you will find a jQuery framework.
/ Localization: Contains all Prestashop loan files – that is, files that contain local information, such as currency, language, tax rules, and tax rules, countries, and various units used in selected countries (for example, one liter, deep weight kilogram, etc.).
/ Log: contains log files produced by Prestashop at various stages, for example during the installation process.
/ Mails: Contains all HTML files and text related to emails sent by Prestashop. Each language has a specific folder, where you can edit the content manually if you want.
/ Module: contains all prestashop modules, each in its own folder. If you want to delete the module, uninstall the first of the back-office, you can only delete the folder.
/ Override: This is a special folder that appears with Prestashop 1.4. By using the usual Prestashop Folder / File Name Convention, it is possible to create files that rule out the Prestashop default class or controller. This allows you to change Prestashop’s core behavior without touching the original file, keeping them safe for the next update.
/ PDF: Contains all template files (.pl) related to the generation of PDF files (invoices, shipping slip, etc.). Change these files to change the appearance of the PDF file produced by Prestashop.
/ Theme: contains all the themes currently installed, each in its own folder.
/ Tool: Contains an external tool that is integrated into Prestashop. For example, this is where you will find Smarty (Template / Theme Engine), FPDF (PDF file generator), Swift (sending letter), Pear XML parser (PHP Tool).
/ Translation: contains sub-folders for every language available. However, if you want to change the translation, you must do it using the Prestashop internal tool, and not edit it directly in this folder.
/ Upload: Contains files that will be uploaded by clients for customized products (for

About zohaibk

We develop useful addons for #E-Commerce and #CRM software to provide extra features.#PrestaShop,#Magento,#SugarCRM,#Vtiger & #Android #apps
View all posts by zohaibk →