Thanks to its experience as PrestaShop core developer, Fabien Serny former head of modules at PrestaShop and nowadays founder of Froggy Commerce, presents a developement guide of good practices to create your own modules for PrestaShop.
The modules are the root of the eco system of PrestaShop. They are essential for adding functionalities on a PrestaShop e-commerce website. This book was born of a desire to help developers understand how works the modular part of PrestaShop in order to acquire the best practices to optimize and secure PrestaShop modules.
With a foreword written by Bruno Lévêque, PrestaShop founder, this book is a reference for the development of PrestaShop modules..
The author, Fabien Serny , did everything to facilitate the approach of the development of PrestaShop modules, you will find below all the information about the book.
In the preface, you will read a summary of the book to learn what is possible to do with modules in PrestaShop. You will also find a quick recall of PrestaShop basis needed to understand this book correctly (architecture, database classes, objects models, controllers, overrides and smarty).
In this chapter, we will code together a small module example. You will also learn how to build a quick configuration form. List of topics that will be covered in the chapter:
In this section, you will read about the hooks in PrestaShop, how they work and how you can use them. You will also find a list of all hooks present in PrestaShop. List of topics that will be covered in the chapter:
You will have a presentation of all the variables and methods availables when you develop a module. List of topics that will be covered in the chapter:
In this chapter, you will learn how to manage specific database tables for your modules (creation and update). List of topics that will be covered in the chapter:
We will see how we can add controllers and routes with your module, which will permit to construct a well organized application for PrestaShop. List of topics that will be covered in the chapter:
In this section, we will see how to add a controller in the back office, register on admin hooks and use admin helpers to display list and form. List of topics that will be covered in the chapter:
In this chapter, you will learn the specificity of carrier modules. We will also look on advanced features such as delivery points. List of topics that will be covered in the chapter:
In this chapter, you will learn the specificity of payment modules. You will also learn about the creation of new order states. List of topics that will be covered in the chapter:
In this section, we will see how we can make our module multistore ready. You will also see that, for very simple modules, you do not need to do anything to make them compliant with multistore feature. List of topics that will be covered in the chapter:
In this section, we will see the best practices concerning security in general in PrestaShop but also some advices to apply in modules configuration and coding. List of topics that will be covered in the chapter:
Appendix – list of hooks
PrestaShop expert and 23Prod founder, Fabien Serny is a former core developer of the PrestaShop solution. His career on an open-source project pushes him to share his knowledge.
This book has been designed to support PrestaShop modules developers in their projects. We hope it will satisfy the expectations and help beginners as well as the more experienced to know all the tips on modules development.
Find here the resources associated to the book: