How to Display Multi-step Newsletter Popup

In order to display multi-step popups in Magento 2 Newsletter Popup, you need to select any popup you’ve created before, and specify another popup that will be displayed after clicking on the element in its HTML code. In order to perform this, add an attribute with popup ID that needs to be displayed to the element (e.g. button or link) required.

Code Example

data-npid="_POPUP_ID_"

You can also use an attribute that records custom subscribers’ actions in the History section.

Code Example

data-npaction="_DESCRIPTION_TO_HISTORY_"

Use this attribute with “Cancel” value in order to close the popup and write records to the “History” section.

Code Example

data-npaction="Cancel"

Detailed description:

  1. This is an example of the html code in the template of the popup.
Magento 2 newsletter popup developer
Was this article helpful?