Zen Cart Logo
Forums / General Questions / Change redirection page after tell a friend form submitted.

Change redirection page after tell a friend form submitted.

Locked

Views: 833

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Aug 2010, 11:55 AM
#1
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Change redirection page after tell a friend form submitted.

Hi,

I'd like to change the page where the system sends the user after they've submitted the tell a friend form. Any ideas how I do this? I'm on v1.3.9c:

http://www.meliss alo.com/indexpreview.php?main_page=tell_a_friend&products_id=82 (remove space in address)

At the moment it just sends the user back to the tell a friend page but I'd prefer it sent them back to the product info page at:

http://www.melis salo.com/indexpreview.php?main_page=product_info&products_id=82

Many many thanks,

Richard

25 Aug 2010, 12:45 PM
#2
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Change redirection page after tell a friend form submitted.

Last bump I promise.

I just really need to know whether it's possible and if so, how easy.

25 Aug 2010, 1:41 PM
#3
andreitero avatar

andreitero

Zen Follower

Join Date:
Dec 2009
Posts:
207
Plugin Contributions:
0

Re: Change redirection page after tell a friend form submitted.

Did you try in includes/modules/pages/tell_a_friend/header_php.php?
I changed it myself for reviews_write. If you write a review here, you will be redirected to the product page.

25 Aug 2010, 4:45 PM
#4
rpain avatar

rpain

Zen Follower

Join Date:
Mar 2005
Location:
Watford, UK
Posts:
146
Plugin Contributions:
0

Re: Change redirection page after tell a friend form submitted.

Thanks - I think this is the file to edit and I managed to get it working by changing line 115 to:

zen_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address, $html_msg, 'tell_a_friend123');

I only chose 'tell_a_friend123' as I wanted to see where it would appear (would it work at all or would it appear in the address). Anyway, it now seems to work as intended but I've no idea why! I read up on the zen_mail function but got a bit lost.

At least it's working even if I've no idea why.

Richard