NOTE: This repository has moved to https://github.com/magenizr/Magenizr_NewsletterSubscribeAtCheckout and will be continued there.
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.tobias-forkel/magento2-newsletter-subscribe-at-checkout vcs https://github.com/tobias-forkel/Magento2_NewsletterSubscribeAtCheckout.git
- Update your composer.json
composer require "tobias-forkel/magento2-newsletter-subscribe-at-checkout":"1.0.3"
./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 tobias-forkel/magento2-newsletter-subscribe-at-checkout (1.0.3): Downloading (100%)
Writing lock file
Generating autoload files
- Enable the module and clear static content.
php bin/magento module:enable Forkel_NewsletterSubscribeAtCheckout --clear-static-content
php bin/magento setup:upgrade
- Pull the code.
- Copy the code in
./app/code/Forkel/NewsletterSubscribeAtCheckout/
. - Enable the module and clear static content.
php bin/magento module:enable Forkel_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.
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, please contact me on http://www.tobiasforkel.de.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
. - Commit your changes:
git commit -am 'Add some feature'
. - Push to the branch:
git push origin my-new-feature
. - Submit a pull request.
Follow me on GitHub and Twitter.
===== 1.0.3 =====
- Option
Enable Note
had no effect. [#4] [pooshok] - Code Cleanup.
- Added
<depends>
in system.xml to hide all fields inStores > Configuration > Sales > Checkout > Newsletter Subscribe At Checkout
unless you enable the module.
===== 1.0.2 =====
- Updated composer require. [#1] [Rakhal]
- Removed ifconfig from referenceBlock for 2.2.x compatibility. [#1] [Rakhal]
===== 1.0.1 =====
- Variable note didn't exist when note was disabled.
===== 1.0.0 =====
- Stable version of this module.