What is a PrestaShop module?
PrestaShop’s extensibility revolves around modules, which are small programs that make use of PrestaShop’s functionality and changes them or add to them in order to make PrestaShop easier to use or more customized.
Technical principles behind a module
PrestaShop uses encrypted cookies to store all the session information, for visitors/clients as well as for employees/administrators.
The Cookie class (/classes/Cookie.php) is used to read and write cookies.
In order to access the cookies from within PrestaShop code, you can use th…
In an MVC architecture, a Controller manages the synchronization events between the View and the Model, and keeps them up to date. It receives all the user events and triggers the actions to perform.
If an action needs data to be changed, the Controller will “ask” the Model to change th…
Accessing the database
The database structure
By default, PrestaShop’s database tables start with the ps_ prefix. This can be customized during installation
All table names are in lowercase, and words are separated with an underscore character (“_“):