How To Create Your First Module On PrestaShop 1.16 - Amigoways
Amigoways Explain how to create your first module on PrestaShop with these easy step-by-step instructions. We need to create our module’s folder in the folder modules which is located in the root folder. The modules folder contains all the PrestaShop modules. All basic modules will be found here. The folder structure will be shown below. If the module folder name is newmodule , it should have a file name called newmodule.php . The index is the starting file of the module. In the newmodule.php file, you must create a constructor to have basic info such as compatibility, name, author and displayName . The format is as follows. if (!defined('_PS_VERSION_')) exit(); class Newmodule extends Module { public function __construct() { $this->name = ‘New Module’; $this->tab = ”; $this->version = ‘1.0.0’; $this->author = ‘Amigoways Technologies’; $this->need_instance = 1; $this->ps_versions_compliancy ...