ricky11 Posted January 15, 2014 Share Posted January 15, 2014 I am unsure how to create my own html signup form that submits forms data to prestashop newsletter subscribers? any help really appreciated? Link to comment Share on other sites More sharing options...
vekia Posted January 15, 2014 Share Posted January 15, 2014 hello you can do it with code like: <form action="ADDRESS_TO_YOUR_HOMEPAGE_HERE" method="post"> <p> <input class="inputNew" id="newsletter-input" type="text" name="email" size="18" value="Your email address"> <input type="submit" value="ok" class="button_mini" name="submitNewsletter"> <input type="hidden" name="action" value="0"> </p> </form> replace: ADDRESS_TO_YOUR_HOMEPAGE_HERE with url to your homepage / shop but remember that your newsletter module must be active. btw. why not to use blocknewsletter form? Link to comment Share on other sites More sharing options...
ricky11 Posted January 16, 2014 Author Share Posted January 16, 2014 Thans,how do use the blocknewsletter module withing a html box? do i cut the blocknewsletter.tpl file and paste the code in the html box, thanks for your help man. RICKY Link to comment Share on other sites More sharing options...
ricky11 Posted January 16, 2014 Author Share Posted January 16, 2014 Thanks for your help, your code work successfully and it does post the info correctly to the newsletter email/ Question could you help me with some user feedback? instead of just posting the form back to the main page, can their be some feedback prompt popup msgbox to the user that the email has been registered? thanks. Link to comment Share on other sites More sharing options...
ricky11 Posted January 16, 2014 Author Share Posted January 16, 2014 Actually do i need to put form action url of home page, because i dont want the page to reload? the email is still stored successfully. Link to comment Share on other sites More sharing options...
ricky11 Posted January 19, 2014 Author Share Posted January 19, 2014 HI again, so how would i use the block newsletter in the html box .. cant figure it out, i am sure i am missing something simple,... Link to comment Share on other sites More sharing options...
vekia Posted January 19, 2014 Share Posted January 19, 2014 it is possible, but in this case you will have to modify a lot of things. if you want to display popup - you will have to add fancybox libraries to each page of your store (frontController modification) it will be necessary to modify the template file to open fancybox popup window after "success" (adding email to newsletter) it will not be as easy as it seems, unfortunately. Link to comment Share on other sites More sharing options...
aymanbakir Posted October 18, 2016 Share Posted October 18, 2016 Hi, Thank you Vekia for your help. Is it possible to display thank you Message after clicking submit? I appreciate your support in posting relevant code. Thank you in advance. Link to comment Share on other sites More sharing options...
Recommended Posts