购物门户项目

此项目是购物门户项目。该软件允许在线购物客户累积要购买的商品列表,比喻为“将商品放入购物车”或“添加到购物车”。 结帐时,软件通常会计算订单总额,包括运费和手续费以及相关税费。项目特色有用户注册、用户登录系统、更改密码、忘记密码、配置文件管理系统、购物车、心愿单、订单历史。本人只展示了一小段代码,如想了解更详细请下载附件。

应用介绍

此项目是购物门户项目。该软件允许在线购物客户累积要购买的商品列表,比喻为“将商品放入购物车”或“添加到购物车”。 结帐时,软件通常会计算订单总额,包括运费和手续费以及相关税费。在在线营销中,购物车是网络服务器上的一部分电子商务软件,它允许访问Internet站点的访问者选择最终购买的商品,类似于美国英语术语“购物车”。 在英式英语中,它通常被称为购物篮,几乎只在网站上简称为“购物篮”。项目特色有用户注册、用户登录系统、更改密码、忘记密码、配置文件管理系统、购物车、心愿单、订单历史。讲解了如何运行这个项目:下载项目并解压缩文件、创建数据库“购物”、导入数据库文件(软件包中将提供数据库)、项目链接:http:// localhost / shopping、管理员面板链接:http:// localhost / shopping / admin。本人只展示了一小段代码,如想了解更详细请下载附件。

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
    {   
header('location:index.php');
}
else{
// Code forProduct deletion from  wishlist 
$wid=intval($_GET['del']);
if(isset($_GET['del']))
{
$query=mysqli_query($con,"delete from wishlist where id='$wid'");
}

if(isset($_GET['action']) && $_GET['action']=="add"){
 $id=intval($_GET['id']);
 $query=mysqli_query($con,"delete from wishlist where productId='$id'");
 if(isset($_SESSION['cart'][$id])){
  $_SESSION['cart'][$id]['quantity']++;
 }else{
  $sql_p="SELECT * FROM products WHERE id={$id}";
  $query_p=mysqli_query($con,$sql_p);
  if(mysqli_num_rows($query_p)!=0){
   $row_p=mysqli_fetch_array($query_p);
   $_SESSION['cart'][$row_p['id']]=array("quantity" => 1, "price" => $row_p['productPrice']); 
header('location:my-wishlist.php');
}
  else{
   $message="Product ID is invalid";
  }
 }
}
?>
<!DOCTYPE html>
<html lang="en">
 <head>
  <!-- Meta -->
  <meta charset="utf-8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
  <meta name="description" content="">
  <meta name="author" content="">
     <meta name="keywords" content="MediaCenter, Template, eCommerce">
     <meta name="robots" content="all">
     <title>My Wishlist</title>
     <link rel="stylesheet" href="assets/css/bootstrap.min.css">
     
     <!-- Customizable CSS -->
     <link rel="stylesheet" href="assets/css/main.css">
     <link rel="stylesheet" href="assets/css/green.css">
     <link rel="stylesheet" href="assets/css/owl.carousel.css">
  <link rel="stylesheet" href="assets/css/owl.transitions.css">
  <!--<link rel="stylesheet" href="assets/css/owl.theme.css">-->
  <link href="assets/css/lightbox.css" rel="stylesheet">
  <link rel="stylesheet" href="assets/css/animate.min.css">
  <link rel="stylesheet" href="assets/css/rateit.css">
  <link rel="stylesheet" href="assets/css/bootstrap-select.min.css">
  <!-- Demo Purpose Only. Should be removed in production -->
  <link rel="stylesheet" href="assets/css/config.css">
  <link href="assets/css/green.css" rel="alternate stylesheet" title="Green color">
  <link href="assets/css/blue.css" rel="alternate stylesheet" title="Blue color">
  <link href="assets/css/red.css" rel="alternate stylesheet" title="Red color">
  <link href="assets/css/orange.css" rel="alternate stylesheet" title="Orange color">
  <link href="assets/css/dark-green.css" rel="alternate stylesheet" title="Darkgreen color">
  <!-- Demo Purpose Only. Should be removed in production : END -->
  
  <!-- Icons/Glyphs -->
  <link rel="stylesheet" href="assets/css/font-awesome.min.css">
        <!-- Fonts --> 
  <link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700' rel='stylesheet' type='text/css'>
  <link rel="shortcut icon" href="assets/images/favicon.ico">
 </head>
    <body class="cnt-home">
<header class="header-style-1">
 <!-- ============================================== TOP MENU ============================================== -->
<?php include('includes/top-header.php');?>
<!-- ============================================== TOP MENU : END ============================================== -->
<?php include('includes/main-header.php');?>
 <!-- ============================================== NAVBAR ============================================== -->
<?php include('includes/menu-bar.php');?>
<!-- ============================================== NAVBAR : END ============================================== -->
</header>
<!-- ============================================== HEADER : END ============================================== -->
<div class="breadcrumb">
 <div class="container">
  <div class="breadcrumb-inner">
   <ul class="list-inline list-unstyled">
    <li><a href="home.html">Home</a></li>
    <li class='active'>Wishlish</li>
   </ul>
  </div><!-- /.breadcrumb-inner -->
 </div><!-- /.container -->
</div><!-- /.breadcrumb -->
<div class="body-content outer-top-bd">
 <div class="container">
  <div class="my-wishlist-page inner-bottom-sm">
   <div class="row">
    <div class="col-md-12 my-wishlist">
 <div class="table-responsive">
  <table class="table">
   <thead>
    <tr>
     <th colspan="4">my wishlist</th>
    </tr>
   </thead>
   <tbody>
<?php
$ret=mysqli_query($con,"select products.productName as pname,products.productName as proid,products.productImage1 as pimage,products.productPrice as pprice,wishlist.productId as pid,wishlist.id as wid from wishlist join products on products.id=wishlist.productId where wishlist.userId='".$_SESSION['id']."'");
$num=mysqli_num_rows($ret);
 if($num>0)
 {
while ($row=mysqli_fetch_array($ret)) {
?>
    <tr>
     <td class="col-md-2"><img src="admin/productimages/<?php echo htmlentities($row['pid']);?>/<?php echo htmlentities($row['pimage']);?>" alt="<?php echo htmlentities($row['pname']);?>" width="60" height="100"></td>
     <td class="col-md-6">
      <div class="product-name"><a href="product-details.php?pid=<?php echo htmlentities($pd=$row['pid']);?>"><?php echo htmlentities($row['pname']);?></a></div>
<?php $rt=mysqli_query($con,"select * from productreviews where productId='$pd'");
$num=mysqli_num_rows($rt);
{
?>
      <div class="rating">
       <i class="fa fa-star rate"></i>
       <i class="fa fa-star rate"></i>
       <i class="fa fa-star rate"></i>
       <i class="fa fa-star rate"></i>
       <i class="fa fa-star non-rate"></i>
       <span class="review">( <?php echo htmlentities($num);?> Reviews )</span>
      </div>
      <?php } ?>
      <div class="price">Rs. 
       <?php echo htmlentities($row['pprice']);?>.00
       <span>$900.00</span>
      </div>
     </td>
     <td class="col-md-2">
      <a href="my-wishlist.php?page=product&action=add&id=<?php echo $row['pid']; ?>" class="btn-upper btn btn-primary">Add to cart</a>
     </td>
     <td class="col-md-2 close-btn">
      <a href="my-wishlist.php?del=<?php echo htmlentities($row['wid']);?>" onClick="return confirm('Are you sure you want to delete?')" class=""><i class="fa fa-times"></i></a>
     </td>
    </tr>
    <?php } } else{ ?>
    <tr>
     <td style="font-size: 18px; font-weight:bold ">Your Wishlist is Empty</td>
    </tr>
    <?php } ?>
   </tbody>
  </table>
 </div>
</div>   </div><!-- /.row -->
  </div><!-- /.sigin-in-->
 <?php include('includes/brands-slider.php');?>
</div>
</div>
<?php include('includes/footer.php');?>
 <script src="assets/js/jquery-1.11.1.min.js"></script>
 
 <script src="assets/js/bootstrap.min.js"></script>
 
 <script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
 <script src="assets/js/owl.carousel.min.js"></script>
 
 <script src="assets/js/echo.min.js"></script>
 <script src="assets/js/jquery.easing-1.3.min.js"></script>
 <script src="assets/js/bootstrap-slider.min.js"></script>
    <script src="assets/js/jquery.rateit.min.js"></script>
    <script type="text/javascript" src="assets/js/lightbox.min.js"></script>
    <script src="assets/js/bootstrap-select.min.js"></script>
    <script src="assets/js/wow.min.js"></script>
 <script src="assets/js/scripts.js"></script>
 <!-- For demo purposes – can be removed on production -->
 
 <script src="switchstylesheet/switchstylesheet.js"></script>
 
 <script>
  $(document).ready(function(){ 
   $(".changecolor").switchstylesheet( { seperator:"color"} );
   $('.show-theme-options').click(function(){
    $(this).parent().toggleClass('open');
    return false;
   });
  });
  $(window).bind("load", function() {
     $('.show-theme-options').delay(2000).trigger('click');
  });
 </script>
</body>
</html>
<?php } ?>

文件列表(部分)

名称 大小 修改日期
Online Shopping Portal project0.00 KB2019-08-24
Read me.txt0.65 KB2019-07-34
shopping0.00 KB2019-08-36
admin0.00 KB2019-08-26
assets0.00 KB2019-08-28
css0.00 KB2019-08-26
main-responsive.css11.59 KB2013-12-54
main.css122.95 KB2014-01-42
print.css0.36 KB2013-12-12
rtl-version.css21.62 KB2013-11-58
theme_black_and_white.css3.86 KB2013-11-20
theme_dark.css3.86 KB2013-11-34
theme_green.css3.75 KB2013-11-20
theme_light.css4.12 KB2013-11-26
theme_navy.css4.03 KB2013-11-54
fonts0.00 KB2019-08-26
fonts0.00 KB2019-08-26
clip-font.eot107.26 KB2013-11-50
clip-font.svg278.59 KB2013-11-50
clip-font.ttf107.09 KB2013-11-50
clip-font.woff107.17 KB2013-11-50
lte-ie7.js13.20 KB2013-10-18
style.css24.34 KB2013-11-02
images0.00 KB2019-08-26
lightgrey.png0.28 KB2013-10-44
loading.gif1.81 KB2013-09-04
menu-white-arrow-rtl.png0.28 KB2013-11-10
menu-white-arrow.png0.28 KB2013-10-52
js0.00 KB2019-08-28
charts.js22.40 KB2013-10-28
form-calendar.js7.08 KB2013-10-28
form-dropzone.js0.51 KB2013-10-48

立即下载

相关下载

[购物门户项目] 此项目是购物门户项目。该软件允许在线购物客户累积要购买的商品列表,比喻为“将商品放入购物车”或“添加到购物车”。 结帐时,软件通常会计算订单总额,包括运费和手续费以及相关税费。项目特色有用户注册、用户登录系统、更改密码、忘记密码、配置文件管理系统、购物车、心愿单、订单历史。本人只展示了一小段代码,如想了解更详细请下载附件。

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部