Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need to redirect user after payment


bravid98

Recommended Posts

Posted

Hello,

I need to be able to redirect a user after they have made payment to a separate page so that they may complete their order. I'm reselling SSL certificates and I need to redirect customers to the page where they load their information into (CSR, etc). The page will be different depending on the product they choose.

 

Any ideas?

Posted

Ok, it's this code snippet:

// Now send the file with header() magic

 header("Expires: Mon, 26 Nov 1962 00:00:00 GMT");

 header("Last-Modified: " . gmdate("D,d M Y H:i:s") . " GMT");

 header("Cache-Control: no-cache, must-revalidate");

 header("Pragma: no-cache");

 header("Content-Type: Application/octet-stream");

 header("Content-disposition: attachment; filename=" . $downloads_values['orders_products_filename']);

 

It's forcing the download "file", in my case, the html/php page, to download and not open.

Posted

you might try using the function

 

tep_redirect(tep_href_link(FILENAME, , tep_get_all_get_params($parameters), 'NONSSL'));

 

exit;

 

what you are doing is starting a download operation with your code.....

not redirecting.....

 

I am not 100% sure about the code syntax, but that should get you in the right direction....

 

cheers,

Peter McGrath

-----------------------------

See my Profile (click here) for more information and to contact me for professional osCommerce support that includes SEO development, custom development and security implementation

Archived

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

×
×
  • Create New...