Overview
Modules are extensions that display content on the storefront, such as featured products, banners, or custom widgets. They can be positioned in layouts and configured through the admin panel.Module Structure
A complete module includes:- Admin controller: Configuration interface
- Catalog controller: Frontend display logic
- Admin model: Settings management
- View templates: Display templates
- Language files: Translatable strings
Creating a Module
1. Admin Controller
admin/controller/extension/myvendor/module/featured.php:
2. Catalog Controller
catalog/controller/extension/myvendor/module/featured.php:
3. View Template
catalog/view/template/extension/myvendor/module/featured.twig:
4. Language Files
admin/language/en-gb/extension/myvendor/module/featured.php:
Adding to Layouts
Modules appear in layouts through the admin panel:- Go to Design > Layouts
- Edit a layout (e.g., Home)
- Add module to desired position
- Configure module settings
Module Settings
Store module configuration using settings model:Next Steps
Payment Gateways
Develop payment extensions
Event System
Use events in modules

