...
At this stage, if you place the module's folder on the /modules
folder, the module can already be seen in the "Modules" page in the back - office, in the "Other modules" section – albeit with no real name nor thumbnail.
...
- 'name' attribute. This attributes serves as an internal identifier. The value MUST be the name of the module's folder. Do not use special characters or spaces, and keep it lower-case.
- 'tab' attribute. The title for the section that shall contain this module in PrestaShop's back - office modules list. You may use an existing name, such as
seo
,front_office_features
oranalytics_stats
, or a custom one. In this last case, a new section will be created with your identifier. We chose "front_office_features
" because this first module will mostly have an impact on the front-end.Here is the list of available "Tab" attributes, and their corresponding section in the "Modules" page:
"Tab" attribute Module section administration
Administration advertising_marketing
Advertising & Marketing analytics_stats
Analytics & Stats billing_invoicing
Billing & Invoices checkout
Checkout content_management
Content Management dashboard
Dashboard emailing
E-mailing export
Export front_office_features
Front Office Features i18n_localization
I18n & Localization market_place
Market Place merchandizing
Merchandizing migration_tools
Migration Tools mobile
Mobile others
Other Modules payments_gateways
Payments & Gateways payment_security
Payment Security pricing_promotion
Pricing & Promotion quick_bulk_update
Quick / Bulk update search_filter
Search & Filter seo
SEO shipping_logistics
Shipping & Logistics slideshows
Slideshows smart_shopping
Smart Shopping social_networks
Social Networks - 'version' attribute. The version number for the module, displayed in the modules list. It is a string, so that you may use such variation as "1.0b", "3.07 beta 3" or "0.94 (not for production use)".
- 'author' attribute. This is displayed as-is in the PrestaShop modules list.
...
- A name for the module, which will be displayed in the back - office's modules list.
- A description for the module, which will be displayed in the back - office's modules list.
- A message, asking the administrator if he really does want to uninstall the module. To be used in the installation code.
- A warning that the module doesn't have its
MYMODULE_NAME
database value set yet (this last point being specific to our example, as we will see later).
The constructor method is now complete. You are free to add more to it later if necessary, but this the bare minimum for a working module.
Now go to your back - office, in the Modules page: the module is visible in the modules list, with its information displayed – and no icon for now.
...