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