Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect Continue Button & https


pmfjoe

Recommended Posts

Posted

I have 2 quick questions that hopefully someone knows the answer to.

 

1) How can I redirect the continue button on the checkout_success page?

 

2) How can I make sure that upon entering the shopping cart or starting the checkout process the person is using https and if they are not that it loads in https? All of my links into my products are going to be https links but just in case.

 

Thank you.

Posted

Answer to question 2.

 

To force a page into being HTTPS at the top just after this:

 

  require('includes/application_top.php');

Add this:

 

  if ( $request_type != 'SSL' ) {
   header('Location: ' . HTTPS_SERVER . DIR_WS_CATALOG . basename($PHP_SELF));
 }

Having your product links HTTPS is a bad idea.

 

The only links that should be HTTPS are the ones where "sensitive" info is involved.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

Thank you Germ, if I can just do that then I won't put the product links in https. I was just worried as when going to the cart/checkout it did not appear to be switching when I was testing it.

Archived

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

×
×
  • Create New...