X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Newsletter subscription form (https://forum.x-cart.com/showthread.php?t=32615)

sccr410 07-17-2007 10:40 AM

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.

Jayk 07-17-2007 10:47 AM

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

sccr410 07-17-2007 10:56 AM

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.

carpeperdiem 07-17-2007 12:22 PM

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.

sccr410 07-17-2007 12:40 PM

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

carpeperdiem 07-17-2007 12:51 PM

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.

sccr410 07-17-2007 12:55 PM

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.

sccr410 07-25-2007 01:12 PM

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.

carpeperdiem 07-25-2007 05:09 PM

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.

2coolbaby 10-28-2007 05:17 PM

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.


All times are GMT -8. The time now is 05:44 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.