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

Newsletter subscription form

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-17-2007, 10:40 AM
 
sccr410 sccr410 is offline
 

Member
  
Join Date: May 2007
Posts: 16
 

Default Newsletter subscription form

I've scoured these forums but just can't find anything on this...

What is the HTML to subscribe to a newsletter? We aren't posting news on the site, want to use it strickly for sending email newsletters. I've created the newslist mailing list in the administration.
__________________
v 4.1.7
Reply With Quote
  #2  
Old 07-17-2007, 10:47 AM
  Jayk's Avatar 
Jayk Jayk is offline
 

eXpert
  
Join Date: Nov 2003
Location: Calgary, Alberta, Canada
Posts: 333
 

Default Re: Newsletter subscription form

If I remember right with the stock X-Cart news module, you have to enter your subscription form as a news item.

We didn't like the functionality of the stock news module, so we added phpList with a custom tpl on the sidebar and are quite happy with it.

Jason
__________________
X-Cart Gold 4.4.3
Blog: www.flashinthepan.ca
Reply With Quote
  #3  
Old 07-17-2007, 10:56 AM
 
sccr410 sccr410 is offline
 

Member
  
Join Date: May 2007
Posts: 16
 

Default Re: Newsletter subscription form

Quote:
Originally Posted by Jayk
If I remember right with the stock X-Cart news module, you have to enter your subscription form as a news item.
Sorry, but this doesn't make any sense to me. Enter an HTML form as a news item? I want to create a subscription form in the footer of the website.
__________________
v 4.1.7
Reply With Quote
  #4  
Old 07-17-2007, 12:22 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Newsletter subscription form

try this:

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>

This is the most basic of subscribe forms.

You will want to modify it to make it pretty.

This is basically ripped out of news.tpl

Check it out for yourself.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #5  
Old 07-17-2007, 12:40 PM
 
sccr410 sccr410 is offline
 

Member
  
Join Date: May 2007
Posts: 16
 

Default Re: Newsletter subscription form

That was the closest (should be news.php though). Unfortunately, nothing happens - you just end up back on the home page.

http://www.sassypup.net
__________________
v 4.1.7
Reply With Quote
  #6  
Old 07-17-2007, 12:51 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Newsletter subscription form

Quote:
(should be news.php though)

yes - I reworked it for my site.

This code (with some CSS injected to make the button) works just fine.

If you want to see it in action, PM me and I'll send you a link.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 07-17-2007, 12:55 PM
 
sccr410 sccr410 is offline
 

Member
  
Join Date: May 2007
Posts: 16
 

Default Re: Newsletter subscription form

You're on 4.1.8, I'm on 4.1.7 - maybe there is a difference between the two? I just copied/pasted the code you put up and nothing happens. Maybe I didn't setup the newsletter in the admin correctly? Seemed pretty easy, don't know how I could have messed it up.
__________________
v 4.1.7
Reply With Quote
  #8  
Old 07-25-2007, 01:12 PM
 
sccr410 sccr410 is offline
 

Member
  
Join Date: May 2007
Posts: 16
 

Default Re: Newsletter subscription form

Anyone have any ideas on what the HTML code is to create a newsletter subscription form? This seems pretty straightforward but I can't find anything on it.
__________________
v 4.1.7
Reply With Quote
  #9  
Old 07-25-2007, 05:09 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Newsletter subscription form

I gave it to you.. mine is working on my home page. PM me and I'll give you the link.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #10  
Old 10-28-2007, 05:17 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

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

Default Re: Newsletter subscription form

Care to share the code to accompish this in 4.1.8? I had it working in 4.0.18, but since I upgraded to 4.1, my subscribe forms on html pages are no longer working.
__________________
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
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 09:25 PM.

   

 
X-Cart forums © 2001-2020