Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect to a specific page after sale is completed?


akasharkbow

Recommended Posts

How do I go about setting things to redirect to a specific page once the sale is completed? Right now it take people back to the default page but I would rather send them to a survey page that I have built.

 

Any ideas?

 

Cheers,

 

David H. Johnston :twisted:

Link to comment
Share on other sites

I figured it out and I thought I would post what I did just in case somebody was interested in doing the same thing.

 

In the file "checkout_success.php" there is a piece of code towards the top:

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string, 'SSL'));

 

I went into the file "includes/application_top.php" and added in a new define URL (I had to create this file first):

 

define('FILENAME_SURVEY', 'survey.php');

 

I wanted people to go to this file so they could fill out a quick survey if they wanted to.

 

Cheers,

 

David H. Johnston

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...