Manage a popup containing the newsletter form, (*1)
Installation
composer require canal-web/magento-newsletter-form
, (*2)
Usage
Call the block anywhere you like in your layouts :, (*3)
<block type="newsletterpopup/popup" name="newsletter_popup" template="newsletterpopup/template.phtml">
<block type="newsletter/subscribe" name="newsletter_form" template="newsletterpopup/subscribe.phtml"/>
</block>
If needed, you may place it accurately in your template :, (*4)
<?php echo $this->getChildHtml('newsletter_popup'); ?>
Settings
The popup settings are located under System > Configuration > Canal Web > Popup Newsletter. You may choose between an automatic or a manual trigger.
If automatic, you may define the popup's arrival delay and the cookie duration, preventing the popup from appearing.
To manually trigger the popup, use :, (*5)
```html
Click Me!, (*6)