Zen Cart Logo
Forums / General Questions / Email thankyou and redirect script wanted

Email thankyou and redirect script wanted

Locked

Views: 4,525

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
4 Jul 2008, 8:25 PM
#1
wildfashions avatar

wildfashions

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Email thankyou and redirect script wanted

Hi, does anyone know the script and where to put it so that as soon as someone has sent an e-mail it says 'Thank you' and redirects back to contact page.

Thanks in advance :smile:

4 Jul 2008, 9:53 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,643
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

If you are talking about your Zen Cart - it should do that automatically - BTW- the shop you have in your signature is broken - sending a contact_us goes to a blank page.

5 Jul 2008, 4:25 AM
#3
wildfashions avatar

wildfashions

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

Hi and thanks for the reply, The Contact Us page does send you to a blank page after sending an e-mail, but it does send. How do I fix the blank page problem?

5 Jul 2008, 5:23 AM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

After submission a person should be redirected to: contact_us.html?action=success

If you are using a Custom Template, what happens when you switch to Classic Template and try it?

5 Jul 2008, 5:35 AM
#5
wildfashions avatar

wildfashions

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

Hi, exactly the same happens when I switch to Classic! A blank page!

5 Jul 2008, 8:05 AM
#7
wildfashions avatar

wildfashions

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

DrByte:

Troubleshooting tool posted in your duplicate post on another thread: http://www.zen-cart.com/forum/showthread.php?p=579800#post579800

That just brings up masses of text so...................plan B

How do I remove the Contact Us form so I can insert my own?

Many thanks in advance

PS: Sorry I found that thread after posting a thread here.

5 Jul 2008, 8:16 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Email thankyou and redirect script wanted

If your contact-us page is broken, you probably have incorrectly altered one or more files, including but not limited to:
/includes/modules/pages/contact_us/header_php.php
/includes/languages/english/contact_us.php
/includes/templates/your_template/templates/tpl_contact_us_default.php

Maybe you need to replace those files with the originals?
Maybe turning on the debug-logging tool mentioned in my previous post might shed some light on the specific PHP errors you've got which are causing the problem.
Maybe comparing those files with the originals that come with Zen Cart might identify causes.

Granted, there's not much more we can do to help you without knowing what version of Zen Cart you're using, whether it's been upgraded, from what version, a list of all addons you've added, your PHP version, and even what you're using for your email settings.

5 Jul 2008, 8:51 AM
#9
wildfashions avatar

wildfashions

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

Hi ran debugging tool and it produced the following error (generated 3 reports)

[05-Jul-2008 04:46:38] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wildfash/public_html/catalogue/includes/languages/english.php:1401) in /home/wildfash/public_html/catalogue/includes/init_includes/init_templates.php on line 78

Your help is appreciated and hopefully I will be a quick learner :unsure:

5 Jul 2008, 8:54 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Email thankyou and redirect script wanted

glamour1artworks:

[05-Jul-2008 04:46:38] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/wildfash/public_html/catalogue**/includes/languages/english.php:1401**) in

Another FAQ found by looking up that message:
https://www.zen-cart.com/tutorials/index.php?article=87

5 Jul 2008, 9:14 AM
#11
wildfashions avatar

wildfashions

New Zenner

Join Date:
Oct 2007
Posts:
43
Plugin Contributions:
0

Re: Email thankyou and redirect script wanted

Hi, I fixed the problem! I was a little confused at first because there was no text on lines 1400 and 4001 so I just deleted them and Hey Presto :smile: it works.

PS: Didn't think of putting full error message into 'Search' but will do in future.

Thanks

5 Jul 2008, 9:28 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Email thankyou and redirect script wanted

Glad it's fixed, and glad you were able to pick up some tips in the process.

glamour1artworks:

PS: Didn't think of putting full error message into 'Search' but will do in future.
Sometimes just a few key words can be very helpful, esp since often the full error message is quoted already, thus creating a potential "hit" on search results.