Finished checkout page and added a prototype sidebar

This commit is contained in:
CodeServer
2021-08-05 14:08:57 +01:00
parent 6f08764bc0
commit 8a59de3d6f
21 changed files with 650 additions and 199 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
include 'connection.php';
$conn = connectMysql();
session_start();
$buy_id = $_GET['id'];
$mycar = $_SESSION['mycar'];
foreach ($mycar as $product) {
if($product['buy_id'] == $buy_id){
unset($mycar[$buy_id]);
}
}
$_SESSION['mycar'] = $mycar;
header('location: ../shopping/cart.php');
?>