This Magento 2 module allows you to enable a newsletter subscription checkbox on the checkout page. Customers can subscribe to your newsletter list in Marketing > Communications > Newsletter Subscribers
during checkout.
- Add this extension to your repository
composer config repositories.magenizr/magento2-newsletter-subscribe-at-checkout git https://github.com/magenizr/Magenizr_NewsletterSubscribeAtCheckout.git
- Update your composer.json
composer require "magenizr/magento2-newsletter-subscribe-at-checkout":"1.0.1"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing magenizr/magento2-newsletter-subscribe-at-checkout (1.0.1): Downloading (100%)
Writing lock file
Generating autoload files
- Enable the module and clear static content.
php bin/magento module:enable Magenizr_NewsletterSubscribeAtCheckout --clear-static-content
php bin/magento setup:upgrade
- Download the latest version of the source code.
- Extract the downloaded tar.gz file. Example:
tar -xzf Magenizr_NewsletterSubscribeAtCheckout_1.0.1.tar.gz
. - Copy the code into
./app/code/Magenizr/NewsletterSubscribeAtCheckout/
. - Enable the module and clear static content.
php bin/magento module:enable Magenizr_NewsletterSubscribeAtCheckout --clear-static-content
php bin/magento setup:upgrade
- The option
Checked
allows you to pre-tick the newsletter checkbox. Default isNo
. - The text field
Label
allows you to display a custom label. - With the option
Note
you can display a custom text right below the newsletter subscription. HTML is supported.
The functionality can be used in the backend section Stores > Configuration > Sales > Checkout > Newsletter Subscribe At Checkout
.
If you have any issues with this extension, open an issue on Github. For a custom build, don't hesitate to contact us on Magento Marketplace.
===== 1.0.1 =====
- Added HTML support to the
Note
field.
===== 1.0.0 =====
- Stable version
- Code based on latest version of https://github.com/tobias-forkel/Magento2_NewsletterSubscribeAtCheckout