<div class = "row row-offcanvas row-offcanvas-left"> <div class = "col-md-3 sidebar-offcanvas" id = "sidebar"> <div class = "list-group"> <?php d_getProductCat(); ?> </div> </div> <div class = "col-md-9"> <?php d_cart(); ?> <div id="shopping_cart" align = "right"; style = "border: 2px #f05f40 solid;"> <span style = "font-size: 15px; padding: 5px; line-height: 30px;"> Welcome Guest! <b>Shopping Cart -</b> Total Items: <b><?php total_items(); ?> </b> Total Price: <b><?php total_price(); ?> </b> <a href = "cart.php"> View Cart </a> </span> </div> <br><span>Store > <a href = "store.php?cat=3">Delivery</a> > <?php storeName(); ?> > <?php productName(); ?> </span><br><br> <h1><?php
case 'product': $id = $_GET['id']; $product = get_product($id); break; case 'cart': break; case 'add_to_cart': $id = $_GET['id']; $add_item = add_to_cart($id); $_SESSION['total_items'] = total_items($_SESSION['cart']); $_SESSION['total_price'] = total_price($_SESSION['cart']); header('Location: index.php?view=product&id=' . $id); break; case 'update_cart': update_cart(); $_SESSION['total_items'] = total_items($_SESSION['cart']); $_SESSION['total_price'] = total_price($_SESSION['cart']); header('Location: index.php?view=cart'); break; case 'admin': break; case 'rings': $val = $_POST['val']; $cat = $_GET['id']; $products = get_cat_products($cat, $val); break; case 'news': $news = news(); break; case 'save_goods': db_connect();