Newsletter Pop Up

2015-05-29 newsletter, popup, window

newsletter subscription article tutorial

In this guide I want to show you how easily you can create newsletter popup register form in your store based on PrestaShop engine. To create popup you will have to use our responsive popup module for PrestaShop. But in fact, you can follow the guide below also if you will use other modal popup solution. The most important thing to create newsletter popup modal window is a popup module that have a feature to paste / use html code (our popup module supports html code).

 

How to create newsletter popup

As I already mentioned to create newsletter subscription popup you have to use some kind of modal popup addon. In this guide i will show you how to create popup based on our responsive popup addon. So, please open module configuration page and go to section where you can create new modal popup window.

 

PrestaShop PopUp Pro module - to add new popup use "add new popup" button near "PopUp blocks"

Newsletter popup

 

Define specification of the PopUp there, like name, redisplay time etc. To create PopUp subscription form like in this guide, use these values of PopUp parameters:

 

PopUp border 5
PopUp border color FFFFFF
PopUp background (window) FFFFFF
PopUp overlay color (background) 000000
PopUp overlay opacity 0.5
Disable default "close button" NO
Disable "click anywhere" to close YES
Appearance delay 5


Don't use other options because we want to display newsletter subscription form on each shop page. The last step is popup size and code. So, please open "desktop view" section and define width param for 400 and remove height param (popup window will have size equal to height of contents that you will enter to popup). And at the end paste code below:

<div style="margin:0px; padding:0px; text-align:center;" class="block"> 
<h4 style="margin:0px;">Newsletter subscription</h4> 
<div class="block_content"> 
<form id="newsletterform" action="" method="post"> 
<div class="form-group"> 
<input style="text-align:center; margin-bottom:10px;" class="inputNew form-control grey newsletter-input" id="newsletter-input" type="text" name="email" size="18" value="enter your email here"> 
<button type="submit" name="submitNewsletter" style="min-width:100px;" class="btn btn-default button button-small"> 
<span>Ok</span> 
</button> 
<input type="hidden" name="action" value="0"> 
</div> 
</form> 
</div> 
</div>

To textbox where you can add popup contents. Exactly the same as i show on screenshot below:

 

Newsletter subscription form code for "desktop view"
desktop view prestashop popup pro newsletter subscription

 

You can do the same for tablet view and mobile view, just change the width of the popup to fit mobile devices screens (400 and 250). And that's all! Your newsletter subscription form will work now.

 

quick videoguide

author milos myszczuk
Article by Milosz Myszczuk PrestaShop expert, official PrestaShop community moderator. PHP developer, specialist in relative and spatial databases management, GIS Analyst, CEO & founder of VEKIA interactive agency. Read more about VEKIA company
If you like my articles and want much more valuable tips, feel free to send me donation
1.4 version 1.4.11 1.6 404 addon admin advertise ahref ajax alpha animation api app application authentication back office backup badge banner basics block bootstrap button cache carrier cart catalog category certificate changelog chat class clear client clip cms code colors columns comments configuration contact container content controller cookie counter country coupon css csv currency customer dashboard database debug default delete delivery desktop developer device disable discount displayNav displayTop download dynamic editor effect empty encrypt engine error exchange exclude export facebook faceshop fade fancoupon fancybox fanpage fatal feature feed field file fix fixed font footer free friendly url front ftp full gallery generate gift global godaddy google google+ gray grid groupon header help hide highlight homefeatured homepage hook hosting hover howto htaccess html html5 ID image import include input instagram installation integration iPhone issue javascript jquery kgb knowhow languages law left likebox link list livingsocial loading log login logo loyality mail mailing maintenance manufacturer marketing marquee mcrypt menu meta mobile modification module movie moving multilanguage multiupload must have mysql news newsletter notification number open graph order override page password performance PHP phpmyadmin picture pinterest plugin popup post prestashop prestashop 1.0 prestashop 1.1 prestashop 1.2 prestashop 1.3 prestashop 1.4 prestashop 1.5 price rules problem product profile promotion proslider purifier quantity query quick tip random rates register reinsurance release reporting reset responsive restore results ribbon rich text right sales search security seo service shadow share shipping shop shopmania slider smarty social networks SQL SSL statistics stock store style subcategory superuser support switcher tab tablet tag tax template text theme tinyMCE tips and tricks tpl tracking translations tree trends trigger tumblr tutorial twitter update upgrade upload variables video visits voucher vulnerability web2print wide widget width window wishlist wysiwyg youtube zip zopim