PrestaShop - Developer Notes

PrestaShop is a fully featured shopping platform and offers much of the functionality that other eCommerce shopping platforms do. Compared to, for example, Magento PrestaShop is significantly simpler to develop for.

Here is the run down of the key aspects that any one building a web site on PrestaShop should be aware of.


PrestaShop is based around a modular design which is quite similar to Joomlas module system. A modules presence and position on the front end is defined by hooking the module into a particular section on the frontend. There are loads of hooks that can be used. Most modules will add them selves to the hook they think is most appropriate on install. The ordering of modules also defines the order they appear in a given hook. A key point of managing modules that can easily be over looked is that you can grab and drag modules in a given hook by clicking and holding the position change buttons.


Off the shelf themes are usually not simply a new set of templates and CSS but also modules as well. Quite allot of themes are built around specific modules being in specific hooks some times in a specific order.

Creating your own module

Defining your own module is really straight forward: Create a folder in modules called my_module. Create a file called my_module.php, in this file create a class called My_module which extends Module. Create a config.xml with the following template: <?xml version=“1.0” encoding=“UTF-8” ?> my_module My Module 1 A test module, it does nothing My self front_office_features 0 1 Done, the module will appear in the module list but do nothing. You can look at the base module class to see all the function available that get called by PrestaShop are different times to do what you need to do.

Tags: developmentphpdeveloperprestashoptiptips