Let’s create a first simple module, this will allow us to better describe its structure. We will name it “My module”.
First, create the module’s folder, in PrestaShop’s /modules folder. Let’s call it mymodule. This will be the module’s “technical” name.
Technical names can only accept lower case alphanumeric characters ([a-z0-9]). Although accepted, we strongly discourage using underscores because they don’t work with translation domains.This folder must contain the main file, a PHP file of the same name as the folder, which will handle most of the processing: mymodule.php.
That is enough for a very basic module. Obviously, more files and folders can be added later, if needed.
The constant testThe main mymodule.php file must start with the following test: