What are the significant steps to add a new module?

• Create a new directory: app/code/module/modulename
• Create and populate the registration.php, composer.json and etc/ module.
xml.
• Ensure that the module_ Modulename module name is set in
registration.php and etc/module.xml.
• Set the correct PSR-4 path and module name in composer.json.
• Run bin/magento module:enable SwiftOtter_ExportOrders
• Run bin/magento setup:upgrade –keep-generated to install this module
into the database (see the setup_module table) and run any setup scripts.

admin

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top