Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

newsletter signup from html page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-07-2007, 08:49 AM
 
Chris B Chris B is offline
 

eXpert
  
Join Date: Oct 2002
Posts: 226
 

Default 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
__________________
4.0x - 4.5x
Reply With Quote
  #2  
Old 10-04-2007, 05:26 AM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default Re: newsletter signup from html page

I'd like to be able to do this as well. Anyone have any ideas?
__________________
4.1.9 (Linux) Live Store
www.thecrackedbook.com
Find used books and out of print books.
Reply With Quote
  #3  
Old 10-04-2007, 05:37 AM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default 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"> <input type="hidden" name="subscribe_lng" value="{$store_language}" /> <input type="text" name="newsemail" size="19" /> <a href="javascript: document.subscribeform.submit();" js_to_href="Y">Subscribe</a> </form>
Here is the link to the thread: http://forum.x-cart.com/showthread.php?t=32615&highlight=newsletter
__________________
4.1.9 (Linux) Live Store
www.thecrackedbook.com
Find used books and out of print books.
Reply With Quote
  #4  
Old 10-04-2007, 11:01 AM
 
Chris B Chris B is offline
 

eXpert
  
Join Date: Oct 2002
Posts: 226
 

Default 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&nbsp;</FONT><IMG src="/store/skin1/images/go_menu.gif" width="27" height="14" border="0" align="absmiddle"></A>
</TD>
</TR>
</FORM>
</TABLE>
__________________
4.0x - 4.5x
Reply With Quote
  #5  
Old 10-28-2007, 05:11 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default 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?
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
  #6  
Old 10-28-2007, 05:25 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default 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?
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
  #7  
Old 01-03-2008, 06:26 AM
 
OpheliaPayne OpheliaPayne is offline
 

Senior Member
  
Join Date: Aug 2007
Posts: 130
 

Default 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.
__________________
xCart 4.6.1
Reply With Quote
  #8  
Old 02-01-2008, 05:37 AM
 
ottodacat ottodacat is offline
 

Member
  
Join Date: Nov 2007
Posts: 14
 

Default 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/
__________________
lite commerce version 2.2
Reply With Quote
  #9  
Old 02-01-2008, 09:30 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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.
Reply With Quote
  #10  
Old 02-12-2008, 10:59 AM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:24 AM.

   

 
X-Cart forums © 2001-2020