However, I'm trying to tailor the newsletter subscription pop up and I'm having difficulties with it. Does anyone use it and can give me some pointers?
For example, this is their default pop up, which works.
<divclass="pqnp-popup-box"style="background:url('{module_path}views/img/front_subscription/popup.jpg') bottom left no-repeat;"><formid="{id.form}"method="POST"><divclass="pqnp-popup-form-group pqnp-popup-clearfix pqnp-popup-logo-box"><divclass="pqnp-popup-show-logo"><imgsrc="{shop_logo_url}"/></div></div><divclass="pqnp-popup-form-group pqnp-popup-clearfix pqnp-popup-title-box"><h1class="pqnp-popup-title">Be the first to know</h1><h5class="pqnp-popup-title-small">about our latest products and exclusive offers.</h5></div><divclass="pqnp-popup-form-group"><labelfor="{id.email}">Email Address<sup>*</sup></label><inputid="{id.email}"class="pqnp-popup-form-control"type="text"name="{field.email}"placeholder="Email Address"/></div><divclass="pqnp-popup-form-group pqnp-popup-row"><!-- @if intval({display_firstname}) == 1 --><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12 pqnp-popup-xs-form-group"><labelfor="{id.firstname}">First Name{render_mandatory_firstname}</label><inputid="{id.firstname}"class="pqnp-popup-form-control"type="text"name="{field.firstname}"placeholder="First Name"value="{form.firstname}"/></div><!-- @endif --><!-- @if intval({display_lastname}) == 1 --><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12"><labelfor="{id.lastname}">Last Name{render_mandatory_lastname}</label><inputid="{id.lastname}"class="pqnp-popup-form-control"type="text"name="{field.lastname}"placeholder="Last Name"value="{form.lastname}"/></div><!-- @endif --></div><divclass="pqnp-popup-form-group pqnp-popup-row"><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12 pqnp-popup-xs-form-group"><!-- @if intval({display_gender}) == 1 --><labelfor="{id.gender}">Gender</label><selectid="{id.gender}"class="pqnp-popup-form-control"name="{field.gender}"><optionvalue="0">- neutral -</option>
{render_gender_options}</select><!-- @endif --></div><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12"><!-- @if intval({display_birthday}) == 1 --><labelfor="{id.birthday}">Date of Birth</label><inputid="{id.birthday}"class="pqnp-popup-form-control pqnp-popup-birthday"type="date"name="{field.birthday}"value="{form.birthday}"/><!-- @endif --></div></div><!-- @if intval({display_list_of_interest}) == 1 --><divclass="pqnp-popup-form-group pqnp-popup-row"><divclass="pqnp-popup-col-sm-12"><label>Shoping Preferences</label><divclass="pqnp-popup-row"><!-- @foreach {list_of_interest} as {item} --><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12 pqnp-custom-checkbox-col"><spanclass="pqnp-custom-checkbox"><label><inputtype="checkbox"name="{field.list_of_interest}"value="{item.id_newsletter_pro_list_of_interest}"condition-if="intval({item.checked}) == 1"checked="checked"condition-endif=""/><span><iclass="pqnp-icon-checkbox-checked pqnp-checkbox-checked"></i></span><span>{item.name}</span></label></span></div><!-- @endforeach --></div></div></div><!-- @endif --><divclass="pqnp-popup-form-group pqnp-popup-row"><divclass="pqnp-popup-col-sm-12"><spanclass="pqnp-custom-checkbox"><label><inputid="{id.terms_and_conditions}"type="checkbox"name="{field.terms_and_conditions}"value="1"/><span><iclass="pqnp-icon-checkbox-checked pqnp-checkbox-checked"></i></span><span>I agree with the <ahref="{terms_and_conditions_url}"class="pqnp-popup-button-link"target="_blank">terms and conditoins</a>.</span></label></span></div></div><divid="{id.error}"class="pqnp-popup-alert pqnp-popup-alert-danger pqnp-popup-error"style="display: none;"></div><divid="{id.success}"class="pqnp-popup-alert pqnp-popup-alert-success pqnp-popup-success"style="display: none;"></div><divclass="pqnp-popup-form-group pqnp-popup-row"><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12 pqnp-popup-xs-form-group"><ahref="javascript:{}"id="{id.subscribe}"class="pqnp-popup-button pqnp-popup-button-primary pqnp-submit-newsletterpro-subscribe">Subscribe</a></div><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12"><ahref="javascript:{}"id="{id.unsubscribe}"class="pqnp-popup-button pqnp-popup-button-danger pqnp-submit-newsletterpro-unsubscribe">Unsubscribe</a></div></div><divclass="pqnp-popup-row"><divclass="pqnp-popup-col-sm-8"><ahref="javascript:{}"id="{id.destroy}"class="pqnp-popup-button-link pqnp-popup-button-sm-link pqnp-popup-button-link-dark">Don't show me this popup again.</a></div><divclass="pqnp-popup-col-sm-4 pqnp-popup-text-right"><divid="{id.close_timeout}"class="pqnp-close-timeout pqnp-popup-text-sm"style="display: none;"></div></div></div></form></div>
I'd like to remove that one has to tick the terms and conditions box and simplify it. I tried that like this but the error message that I must agree with the terms and conditions:
<divclass="pqnp-popup-box"style="background:url('{module_path}views/img/front_subscription/popup.jpg') bottom left no-repeat;"><formid="{id.form}"method="POST"><divclass="pqnp-popup-form-group pqnp-popup-clearfix pqnp-popup-logo-box"><divclass="pqnp-popup-show-logo"><imgsrc="{shop_logo_url}"/></div></div><divclass="pqnp-popup-form-group pqnp-popup-clearfix pqnp-popup-title-box"><h1class="pqnp-popup-title">Be the first to know</h1><h5class="pqnp-popup-title-small">about our latest products and exclusive offers.</h5></div><divclass="pqnp-popup-form-group"><labelfor="{id.email}">Email Address<sup>*</sup></label><inputid="{id.email}"class="pqnp-popup-form-control"type="text"name="{field.email}"placeholder="Email Address"/></div><divclass="pqnp-popup-form-group pqnp-popup-row"><span>We don't use your email for anything but the newsletter.</span></div><divid="{id.error}"class="pqnp-popup-alert pqnp-popup-alert-danger pqnp-popup-error"style="display: none;"></div><divid="{id.success}"class="pqnp-popup-alert pqnp-popup-alert-success pqnp-popup-success"style="display: none;"></div><divclass="pqnp-popup-form-group pqnp-popup-row"><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12 pqnp-popup-xs-form-group"><ahref="javascript:{}"id="{id.subscribe}"class="pqnp-popup-button pqnp-popup-button-primary pqnp-submit-newsletterpro-subscribe">Subscribe</a></div><divclass="pqnp-popup-col-sm-6 pqnp-popup-col-xs-12"><ahref="javascript:{}"id="{id.unsubscribe}"class="pqnp-popup-button pqnp-popup-button-danger pqnp-submit-newsletterpro-unsubscribe">Unsubscribe</a></div></div><divclass="pqnp-popup-row"><divclass="pqnp-popup-col-sm-8"><ahref="javascript:{}"id="{id.destroy}"class="pqnp-popup-button-link pqnp-popup-button-sm-link pqnp-popup-button-link-dark">Don't show me this popup again.</a></div><divclass="pqnp-popup-col-sm-4 pqnp-popup-text-right"><divid="{id.close_timeout}"class="pqnp-close-timeout pqnp-popup-text-sm"style="display: none;"></div></div></div></form></div>
And I also tried this, but nothing happens, the email address doesn't register.
<divclass="pqnp-popup-box"bottom=""left=""no-repeat=""><formid="{id.form}"method="POST"><divclass="pqnp-popup-form-group pqnp-popup-clearfix pqnp-popup-logo-box"><divclass="pqnp-popup-show-logo"><imgsrc="{shop_logo_url}"/></div></div><inputid="np-popup-email"class="form-control"type="text"name="email"value="Email-Adresse"/><br/><strong><ahref="#"id="submit-newsletterpro-subscribe"class="np-button submit-newsletterpro-subscribe">Anmelden<br/></a></strong><br/><divid="ajax-errors-subscribe"class="alert alert-danger"style="display: none;"></div><divid="ajax-success-subscribe"class="alert alert-success"style="display: none;"></div>
Wir verwenden die Email-Adresse für den Newsletter und sonst für nichts. Du kannst Dich jederzeit abmelden. <br/><ahref="javascript:{}"id="newsletterpro-subscribe-close-forever"class="close-forever"><br/><span>Den Popup bitte nicht mehr zeigen.</span></a></form></div>
Question
30knees
I'm using this module and it works well: https://addons.prestashop.com/en/newsletter-sms/7484-newsletter-pro.html
However, I'm trying to tailor the newsletter subscription pop up and I'm having difficulties with it. Does anyone use it and can give me some pointers?
For example, this is their default pop up, which works.
I'd like to remove that one has to tick the terms and conditions box and simplify it. I tried that like this but the error message that I must agree with the terms and conditions:
And I also tried this, but nothing happens, the email address doesn't register.
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now