Hacked By AnonymousFox

Current Path : /home/krishnamexports/www/popup/
Upload File :
Current File : /home/krishnamexports/www/popup/mini-cart-20241115045841.php

<?php //session_destroy();?>

<div class="offcanvas-minicart-wrapper" id="shoppingCartModal">

    <div class="minicart-inner">

        <div class="offcanvas-overlay"></div>

        <div class="minicart-inner-content">

            <div class="minicart-close">

                <i class="pe-7s-close"></i>

            </div>

            <div class="minicart-content-box">                

                <div class="minicart-item-wrapper">

                    <ul class="miniCart">

                        <?php 

                        if(isset($_SESSION['kxproductList']) && count($_SESSION['kxproductList'])>0)

						{

							//print_r($_SESSION['kxproductList']);

							$subTotal = 0; $deliveryCharges = 0; $orderTotal = 0;

							foreach($_SESSION['kxproductList'] as $pL)

							{

								$sqlProductCart     = mysqli_query($cn,"select * from `tbl_product` where `id`='".$pL['productId']."'");

								$sqlProductCartData = mysqli_fetch_array($sqlProductCart);

								?>

                                <li class="minicart-item">

                                    <div class="minicart-thumb">

                                        <a href="<?php echo DEFAULT_URL."product/".$sqlProductCartData['slug_url'];?>">

                                            <img src="<?php echo DEFAULT_URL."products/".$pL['productPhoto'];?>" alt="<?php echo $pL['productName'];?>">

                                        </a>

                                    </div>

                                    <div class="minicart-content">

                                        <h3 class="product-name">

                                            <a href="<?php echo DEFAULT_URL."product/".$pL['productSlugURL'];?>"><?php echo $pL['productName'];?></a>

                                        </h3>

                                        <p><span class="cart-quantity">Qty - <?php echo $pL['qty'];?></span></p>

                                    </div>

                                    <button class="minicart-remove removeToCart" data-productId="<?php echo $pL['productId'];?>" data-polishId="<?php echo $pL['polishId'];?>" data-sizeId="<?php echo $pL['sizeId'];?>"><i class="pe-7s-close"></i></button>

                                </li>

                        	<?php 							

							$subTotal           = $subTotal + ($pL['qty'] * $sqlProductCartData['price']);	

							$deliveryCharges    = $deliveryCharges + $sqlProductCartData['delivery_charge'];							 

							}

							$orderTotal = $subTotal + $deliveryCharges;

						}?>

                    </ul>

                </div>                



                <div class="minicart-pricing-box">

                    <ul class="miniCartTotal">

                    	<?php 

                        if(isset($_SESSION['kxproductList']) && count($_SESSION['kxproductList'])>0)

						{?>							   

                            <!--<li>

                                <span><strong>Sub Total</strong></span>

                                <span><strong id="subTotal"><?php echo currencyPrice($subTotal);?></strong></span>

                            </li>

                            <li>

                                <span><strong>Delivery Charges</strong></span>

                                <span><strong id="deliveryCharges"><?php echo currencyPrice($deliveryCharges);?></strong></span>

                            </li>                        

                            <li class="total">

                                <span><strong>Total</strong></span>

                                <span><strong id="orderTotal"><?php echo currencyPrice($orderTotal);?></strong></span>

                            </li>-->

                    	<?php }else{?>    

                        <div class="empty-cart">

                            <img src="<?php echo DEFAULT_URL;?>assets/img/icon/empty-cart.png">

                            <p>There is no Product in your Enquiry List</p>

                        </div>

                        <?php }?>

                    </ul>                    

                </div>	

                                              

                <div class="minicart-button">                    

                    <?php if(isset($_SESSION['kxproductList']) && count($_SESSION['kxproductList'])>0){?> 	

                    <a href="<?php echo DEFAULT_URL;?>cart"><i class="fa fa-shopping-cart"></i> VIEW SELECTED PRODUCT</a>

                    <a href="<?php echo DEFAULT_URL;?>checkout" class="processCheckout"><i class="fa fa-share"></i> ENQUIRY NOW</a>                    

					<?php }else{?>                

                	<a href="<?php echo DEFAULT_URL;?>"><i class="fa fa-shopping-cart"></i> Continue ENQUIRY</a>                	               

                	<?php }?>

                </div>                               

            </div>

        </div>

    </div>

</div>

Hacked By AnonymousFox1.0, Coded By AnonymousFox