canal-web/magento-newsletter-popup

There is no license information available for the latest version (dev-master) of this package.

Manage a popup containing the newsletter form

Installs: 86

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 2

Open Issues: 0

Language:HTML

Type:magento-module

dev-master 2017-01-02 09:12 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:39:44 UTC


README

Manage a popup containing the newsletter form

Installation

composer require canal-web/magento-newsletter-form

Usage

Call the block anywhere you like in your layouts :

<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 :

<?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 :

<a href="#" onclick="newsletterPopupCall('#popup_newsletter');">Click Me!</a>