|
1 |
| -Magento_Newsletter module allows clients to subscribe for information about new promotions and discounts and allows store administrators to send newsletters to clients subscribed for them. |
| 1 | +# Magento_Newsletter module |
| 2 | + |
| 3 | +This module allows clients to subscribe for information about new promotions and discounts and allows store administrators to send newsletters to clients subscribed for them. |
| 4 | + |
| 5 | +## Installation |
| 6 | + |
| 7 | +Before installing this module, note that the Magento_Newsletter is dependent on the following modules: |
| 8 | +- `Magento_Store` |
| 9 | +- `Magento_Customer` |
| 10 | +- `Magento_Eav` |
| 11 | +- `Magento_Widget` |
| 12 | + |
| 13 | +Before disabling or uninstalling this module, note that the following modules depends on this module: |
| 14 | +- `Magento_NewsletterGraphQl` |
| 15 | + |
| 16 | +This module creates the following tables in the database: |
| 17 | +- `newsletter_subscriber` |
| 18 | +- `newsletter_template` |
| 19 | +- `newsletter_queue` |
| 20 | +- `newsletter_queue_link` |
| 21 | +- `newsletter_queue_store_link` |
| 22 | +- `newsletter_problem` |
| 23 | + |
| 24 | +For information about a module installation in Magento 2, see [Enable or disable modules](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html). |
| 25 | + |
| 26 | +## Extensibility |
| 27 | + |
| 28 | +Extension developers can interact with the Magento_Newsletter module. For more information about the Magento extension mechanism, see [Magento plug-ins](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html). |
| 29 | + |
| 30 | +[The Magento dependency injection mechanism](https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html) enables you to override the functionality of the Magento_Newsletter module. |
| 31 | + |
| 32 | +A lot of functionality in the module is on JavaScript, use [mixins](https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/javascript/js_mixins.html) to extend it. |
| 33 | + |
| 34 | +### Layouts |
| 35 | + |
| 36 | +This module introduces the following layouts in the `view/frontend/layout` and `view/adminhtml/layout` directories: |
| 37 | +- `view/adminhtml/layout`: |
| 38 | + - `newsletter_problem_block` |
| 39 | + - `newsletter_problem_grid` |
| 40 | + - `newsletter_problem_index` |
| 41 | + - `newsletter_queue_edit` |
| 42 | + - `newsletter_queue_grid` |
| 43 | + - `newsletter_queue_grid_block` |
| 44 | + - `newsletter_queue_index` |
| 45 | + - `newsletter_queue_preview` |
| 46 | + - `newsletter_queue_preview_popup` |
| 47 | + - `newsletter_subscriber_block` |
| 48 | + - `newsletter_subscriber_exportcsv` |
| 49 | + - `newsletter_subscriber_exportxml` |
| 50 | + - `newsletter_subscriber_grid` |
| 51 | + - `newsletter_subscriber_index` |
| 52 | + - `newsletter_template_edit` |
| 53 | + - `newsletter_template_preview` |
| 54 | + - `newsletter_template_preview_popup` |
| 55 | + - `preview` |
| 56 | + |
| 57 | +- `view/frontend/layout`: |
| 58 | + - `customer_account` |
| 59 | + - `customer_account_create` |
| 60 | + - `newsletter_manage_index` |
| 61 | + - `default` |
| 62 | + |
| 63 | +For more information about a layout in Magento 2, see the [Layout documentation](https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-overview.html). |
| 64 | + |
| 65 | +### UI components |
| 66 | + |
| 67 | +This module extends customer form ui component the configuration file located in the `view/base/ui_component` directory: |
| 68 | +- `customer_form` |
| 69 | + |
| 70 | +For information about a UI component in Magento 2, see [Overview of UI components](http://devdocs.magento.com/guides/v2.4/ui_comp_guide/bk-ui_comps.html). |
| 71 | + |
| 72 | +## Additional information |
| 73 | + |
| 74 | +[Learn more about newsletter](https://docs.magento.com/user-guide/marketing/newsletters.html). |
| 75 | + |
| 76 | +### Cron options |
| 77 | + |
| 78 | +Cron group configuration can be set at `etc/crontab.xml`: |
| 79 | +- `newsletter_send_all` - schedules newsletter sending |
| 80 | + |
| 81 | +[Learn how to configure and run cron in Magento.](http://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-cron.html). |
| 82 | + |
0 commit comments