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

Static Page for newsletter subscription or unsubscription

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 02-27-2008, 04:28 PM
  connemara's Avatar 
connemara connemara is offline
 

Senior Member
  
Join Date: Jan 2006
Location: Vancouver Island, Canada
Posts: 167
 

Default 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
__________________
Versions 4.7.6
multiple mods and customizations
Reply With Quote
  #22  
Old 04-30-2008, 12:45 PM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default 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
__________________
X-cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 07:18 PM.

   

 
X-Cart forums © 2001-2020