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

Add newsletter subscription form to footer

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 02-12-2016, 01:34 PM
 
benlind benlind is offline
 

Member
  
Join Date: Feb 2016
Posts: 24
 

Default Add newsletter subscription form to footer

I would like to add a simple newsletter subscription form to my footer. Ideally this will include both an email address and first name input, but just an email address is fine.

I tried using this code that I adapted from a post on the forums:

HTML Code:
<form action="news.php" name="subscribeform" method="post"> <input type="hidden" name="subscribe_lng" value="{$store_language|escape}" /> <input type="text" class="input-email" id="semail" name="newsemail" size="30" value="{$newsemail|default:""|escape}" /> <button type="submit">Sign Up</button> </form>

If I submit this form, I get a 404 not found error on news.php.

What is the appropriate HTML/smarty code to add to my footer to add this newsletter subscribe form?
__________________
X-Cart version 5.2
Reply With Quote
  #2  
Old 02-14-2016, 11:34 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Add newsletter subscription form to footer

There is no news.php file in X-Cart 5. The code was for X-Cart 4 and it will not work in X-Cart 5, unfortunately.

When working with e-mail newsletters, there is a high risk if getting your server added to a black list. If this happens, none of your customers will likely receive an e-mail from you.

That's why in X-Cart 5 we removed the built-in newsletter logic and created a module that integrates with MailChimp who are experts in working with e-mail newsletters. However, the module does not have the function to display the subscription form in the footer, so you still require someone to customize it for you by creating a small custom module.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 06-06-2017, 12:40 AM
  designtheweb's Avatar 
designtheweb designtheweb is offline
 

Senior Member
  
Join Date: Mar 2005
Location: Sydney Australia
Posts: 132
 

Default Re: Add newsletter subscription form to footer

That shouldn't be a problem as long as your news.php is changed to something else. I use phplist which is an excellent free newsletter.

What I'd like to know is how can I use the existing boxes at the bottom of X-Cart 5 so people can just push subscribe that takes them to my mailer website. Any ideas?
__________________
"The more you know - the less you pay"

Various websites using

4.66 Pro & 5
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 08:15 AM.

   

 
X-Cart forums © 2001-2020