![]() |
newsletter signup from html page
Is there a method to have a newsletter signup form on a standard html page?
Using Version 4.0.19 Thanks |
Re: newsletter signup from html page
I'd like to be able to do this as well. Anyone have any ideas?
|
Re: newsletter signup from html page
I found this code in another thread and it seems to work.
Code:
<form action="news.php" name="subscribeform" method="post"> |
Re: newsletter signup from html page
This works for 4.019.
Make sure the path is correct for your x-cart installation... <Table> <FORM action="/store/mail/subscribe.php" name="subscribeform"> <INPUT type="hidden" name="redirect" value="customer"> <TR> <TD> Your email: <BR> <INPUT type="text" name="newsemail" size="16"> <BR> <A href="javascript:document.subscribeform.submit()" class="VertMenuItems"><FONT class="VertMenuItems">Subscribe </FONT><IMG src="/store/skin1/images/go_menu.gif" width="27" height="14" border="0" align="absmiddle"></A> </TD> </TR> </FORM> </TABLE> |
Re: newsletter signup from html page
I had this working in 4.0.18, but since I upgraded to 4.1.8, it no longer works. Anyone know how to fix this for the 4.1 branch?
|
Re: newsletter signup from html page
I realized that I do not have a subscribe.php in my mail folder since x-cart installed the update. I wonder if that was a mistake or for a reason. Any ideas?
|
Re: newsletter signup from html page
Use the code at the very beginning, but make sure you have the correct path for news.php. It looks like the "news.php" has replaced the subscribe.php file.
|
Re: newsletter signup from html page
Hi,
Actually I went with an iframe solution (i embedded the sign in through an iframe) and leveraged a free open source solutin which gave me a means to manage the user database separately, see: http://www.selfexile.com/projects/opennewsletter/ |
Re: newsletter signup from html page
As a quick and simple way, all you need to do is go to your x-cart page where your existing newsletter sign-up page is presented. View source on the page, scroll down to the newsletter code, and copy the information between <form and </form> (including anything that provides formatting which may possibly exist outside of these elements).
Then adjust the paths based on it's new location and paste it into your html document. |
Re: newsletter signup from html page
Thank you Jon and the others as I have been struggling to get this working. I have an image on the head section that links to the html page (subscribe.htm). This all opens with greybox. It is perfect. I can subscribe and get the appropriate results. Last challenge:
The results page is within the default cart layout, but the subscribe is in a fixed window so it looks pretty awful since the page gets squished. Is there a way to have the "thank you" or results message go to an html page so I can control how it looks to the customer in that window? Connie |
Re: newsletter signup from html page
hi i am trying to utilize this code but when you try to submit the email address this message comes up
"No news available at the moment" Here is how is how i have the code set Code:
<form name="newsletter" action="news.php" method="post"><center> |
Re: newsletter signup from html page
Hello,
Tried this on 4.4.2 but its not working. Button doesn't do anything when pressed. I think it has to do with the authentication box (type numbers from image) that 4.4.2 requires on newsletter subscription page. Can any X-Cart gurus help getting this to work with just the email field and submit button? I really appreciate it. Thanks Cisco |
Re: newsletter signup from html page
You can try something like this:
Code:
<form action="news.php" name="subscribeform" method="post"> Or this: Code:
<form action="news.php" method="post"> |
Re: newsletter signup from html page
Thanks for the help Alex!
I added both codes to the page and here are the results: 1st Code This code still displays the "anti-bot" input field 2nd Code Once email is typed in and submit button clicked it still goes to the newsletter page The purpose of this is for customers to be able to join the newsletter quickly without going to the newsletter page. How can I achieve this result : http://www.groupon.com/fort-lauderdale/ on top with just an email field and a submit button? As far as the "newsletter 1" and "newsletter 2" checkboxes I dont really need them since I dont plan on running more than a "DEALS" newsletter. So can code not include "anti-bot" and not have specific newsletter checkboxes? Quote:
thanks so much for your help. Cisco thanks Cisco |
Re: newsletter signup from html page
In this case you should use the following form:
Code:
<form name="news_subscription" action="news.php" method="post"> Add all the necessary lists: Code:
<input type="hidden" name="s_lists[]" value="[N]"> The list ID [N] can be found on admin/news.php (see the "targetlist" URL param for the corresponding news list). Insert this code: PHP Code:
right before this line: PHP Code:
in the "modules/News_Management/news_manage.php" script. |
Re: newsletter signup from html page
Ok
This is what I have on the page: Code:
<form name="news_subscription" action="news.php" method="post"> I made the necessary changes to news_management.php. I then go test by adding an email to the field but it still takes me to the news.php page. What am I doing wrong? I really apreciate it Alex. Cisco |
Re: newsletter signup from html page
It seems the ID is not correct, try replacing this code:
Code:
<input type="hidden" name="s_lists[]" value="[1]"> Code:
<input type="hidden" name="s_lists[]" value="1"> Also, make sure the newslist with ID 1, exists in DB (http://.../admin/news.php?targetlist=1) |
Re: newsletter signup from html page
Hello Alex,
Still no good :( The newsletter exists in database as "1". I edited the value but still the same results. Here is the website http://www.ilovemywatches.com I appreciate your patience :D Cisco |
Re: newsletter signup from html page
Can anyone out there please lend a hand? Just a quick look over and point me in the right direction? this could be of help to many x-cart customers.
thanks |
Re: newsletter signup from html page
Got it working! I compared the working code on the original signup page (news.php) and realized the input name "subscribe_lng" and id "semail" were different. It may not be perfect but it works!
This is the code I used to get the newsletter signup on the front page of our store without verification image check: Code:
<form name="subscribeform" action="news.php" method="post"> Also make sure you disable image verification on the modules section for newsletters. Thanks Alex for you help! |
Re: newsletter signup from html page
I guess that this can be removed
Code:
<input type="hidden" name="sl" value="en"> Since you already specified the subscription language value: Code:
<input type="hidden" name="subscribe_lng" value="en"> |
All times are GMT -8. The time now is 02:19 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.