Newsletter Widget - Magento 2 module documentation

Author: Jakub Szczubełek

Newsletter Widget Module

Module overview

The module allows you to display a pop-up that will allow customers to subscribe tothe Newsletter via their email address. In the confirmation email you can send a unique code with a discount.

Module compatibility

This module is compatibile with Magento Community versions: 2.3.

How it works

After installing the module, go to the Admin Panel in Stores > Settings >Configuration > Aurora > Newsletter popup it is possible to configure the module

Newsletter Widget 1

Enable Newsletter Popup - Enable / disable Newsletter Popup.
Newsletter Popup Delay - Time in seconds after which Popup Newsletter is to bedisplayed.
Default Coupon Rule - Contains Cart price rule with automatically generated coupons.
Coupon Block - The included code allows you to place a coupon code in an email(remember to replace 'ruleId' with the correct identifier of the rule).

To create a new price rule, in Marketing > Cart Price Rules click ‘Add New Rule

Newsletter Widget 2

On the rule creation page, complete all necessary information, remember to check theoption: Coupon on Specific Coupon and the Use Auto Generation checkbox

Newsletter Widget 3

To create a new price rule, in Marketing > Cart Price Rules click ‘Add New Rule’. On the rule creation page, complete all necessary information, remember to check theoption: Coupon on Specific Coupon and the Use Auto Generation checkbox, If everything is configured correctly, the generated promotional codes should be displayed atthe bottom of the page.

Newsletter Widget 4

For codes to be sent to subscribers in e-mails, the code from Coupon Block should beprovided to the template responsible for confirming the subscription.

Newsletter Widget 5

Popup view

Newsletter Widget 6

Installation

Composer

  1. Add repo to composer.json:
"repositories": [
    ...
    {
        "type": "vcs",
        "url": "git@git.auroracreation.com:magento2/newsletter-widget.git"
    }
    ...
],
  1. Add package to composer.json:
"require": {
    ...
    "aurora/newsletter-widget": "*"
    ...
},
  1. In Magento root folder run commands:
composer update aurora/newsletter-widget
php bin/magento module:enable Aurora_Newsletter
php bin/magento setup:upgrade

Manual

  1. Unzip archive.
  2. Upload extension files on your server to:
{Magento root}
└── app/
    └── code
  1. In Magento root folder run commands:
php bin/magento module:enable Aurora_Newsletter
php bin/magento setup:upgrade

Thank you for your interest in our products!