Ensuring that basket page always passes to https checkout page?
Customer just commented that when they got through to our checkout page it didn't have the https prefix and, therefore, isn't secure.
How do I ensure that the basket page always passes to the https checkout page? Do I simply change this from:
<?php
//WA eCart Redirect Check Out
if (isset($_POST["LEDCart_Checkout"]) || isset($_POST["LEDCart_Checkout_x"])) {
$Redirect_redirStr="checkout.php";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") < 0) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}
$LEDCart->redirStr = $Redirect_redirStr;
}
$LEDCart->cartAction = "Checkout";
}
?>
to...
<?php
//WA eCart Redirect Check Out
if (isset($_POST["LEDCart_Checkout"]) || isset($_POST["LEDCart_Checkout_x"])) {
$Redirect_redirStr="https:///www.ledwarehouseuk.com/checkout.php";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") < 0) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}
$LEDCart->redirStr = $Redirect_redirStr;
}
$LEDCart->cartAction = "Checkout";
}
?>
Thank you.
NJ