X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Static Page for newsletter subscription or unsubscription (https://forum.x-cart.com/showthread.php?t=7033)

connemara 02-27-2008 04:28 PM

Re: Static Page for newsletter subscription or unsubscription
 
OK Got somewhat of a solution, not completely resolved. I wanted to use an image to link and not use the standard subscribe box.

I created static page in the root, using the code from news.php because I also wanted to use the captcha part. Styled to match site. nice.(and thanks to others on this list whose suggestions led to that result).
The image in the head template links to that static page, and opens up into a sized window using greybox technique so the customer can subscribe.

When you subscribe, it goes to the thank you page within the cart.

What I need is to (
(1) either pull that thank you into a different page that doesn't have the menu etc
OR (2) a script to open to full page. Right now, the regular thank you page opens in that defined window (about 350 X 500) so it is pretty awful. Any recommendations please? VERSION 4.1.9

Connie

robertswww 04-30-2008 12:45 PM

Re: Static Page for newsletter subscription or unsubscription
 
Quote:

Originally Posted by 2coolbaby
I am like everyone else. 4.1.x has NO subscribe.php. This prevents being able to use this code, which I have on EVERY page of my website.

This is an easy fix...

just change the ../mail/subscribe.php line to news.php as follows:
(note: modified file path from original posts #3 & #eight)

Code:

To subscribe to the newsletter, enter your email address and click "Subscribe".

<form action="news.php" method=get name=subscribeform2>
<input type="text" name="newsemail" size="40">Subscribe
<input type=hidden name=redirect value="customer">
</form>


Tested and works fine in Static Pages in 4.1.9

Robert


All times are GMT -8. The time now is 01:10 PM.

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