X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Add newsletter subscription form to footer (https://forum.x-cart.com/showthread.php?t=73566)

benlind 02-12-2016 01:34 PM

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?

qualiteam 02-14-2016 11:34 PM

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.

designtheweb 06-06-2017 12:40 AM

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?


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

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