購物車

利用網際網路促成買賣雙方交易而建立的資訊系統,通常被稱為線上購物、網路購物、購物車、網購等名稱。因為具備有跨時間、空間的便利性,至今已產生許多巨頭如:亞馬、淘寶、ebay...。但是在各巨頭的平台的經營壓力非常大,除了高額的保證金和回扣還有許多硬性規定產生罰款。因此有許多網店開始向獨立的購物網站轉變,獨立網站正在成為了電子商務的發展趨勢。獨立網站不僅可以擁有自己的域名、品牌、LOGO,而且還能永續經營企業及個人網店的特色,讓網站有機會在某個領域形成一個自身的品牌而非永遠屈居於大型商城之下。

下載

下載
下載後請將裡面的資料庫檔案「estore.db」複製到方便存取且不會變更的資料夾目錄,而專案目錄中的檔案可複蓋原有專案的目前錄。也就是說,可以先建立1個名為「estore」的專案然後再用壓縮檔的檔案複蓋。

接下來請找到WEB-INF資料夾,修改裡面的applicationContext.xml檔案後即可啟動專案
jdbc:sqlite:改成你的資料庫路徑

資料設計

code_product_category 產品分類代碼
code_product_status 訂單狀態代碼
companys 公司資料簡介
order_detail 商品細節資料
order_main 訂單主檔
paramater 系統參數
products 商品主檔
products_pics 商品照片
sys_server 伺服器列表
user_rules 使用者權限
users 使用者


第1個網頁

請找到Main.jsp將以下內容複製並取代原有檔案
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="decorator"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<!--[if IE 8 ]><html class="ie8"><![endif]-->
<!--[if IE 9 ]><html class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html lang="zh-tw" class="" style="overflow-x: hidden;">
<!--<![endif]-->
<head>
<base href="<%=basePath%>">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
<meta charset="UTF-8">


<title><c:forEach items="${paramater}" var="c">
		<c:if test="${c.company eq param.store && c.name eq 'site_name'}">${c.value}</c:if>
	</c:forEach></title>


<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" href="lib/swiper/css/swiper.min.css">
<!--[if IE 8 ]><link rel="stylesheet" href="lib/swiper-2.7.6/idangerous.swiper.css"><![endif]-->
<link type="text/css" rel="stylesheet"
	href="fonts/shipping-font/styles.css">
<link rel="stylesheet" href="styles/css/styles.css">
<link rel="stylesheet" href="styles/css/theme-common.css" id="theme">
<!--[if (gte IE 6)&(lte IE 8)]><script type="text/javascript" src="lib/selectivizr-min.js"></script><![endif]-->
<script src="lib/modernizr.custom.04294.js"></script>
<!--[if IE 8 ]><script src="lib/respond/respond.min.js"></script><![endif]-->
<!--2gis-->
<!--<link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>-->
</head>
<body>
	<div class="preloader-block">
		<img src="img/preloader.gif" alt="">
	</div>
	<div class="bx-panel-dummy"></div>
	<div class="landing-wrap" id="landing-wrap">
		<div class="wd-cut">
			<%@ include file="header.jsp"%>
			<div class="main-section">
				<c:if test="${body_banner!=null}"><%@ include
						file="banner.jsp"%></c:if>
				<div style="height: 174px;"></div>
				<%@ include file="category.jsp"%>
				<c:forEach items="${paramater}" var="c">
					<c:if test="${c.company eq param.store && c.name eq 'site_name'}">
						<c:if test="${c.body_discount!=null}"><%@ include
								file="promotions.jsp"%></c:if>
					</c:if>
				</c:forEach>
			</div>
			<%@ include file="footer.jsp"%>
		</div>
		<%@ include file="tmpchart.jsp"%>
		<!--Load libs-->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
		<script>window.jQuery|| document.write('<script src="lib/jquery/jquery-1.11.3.min.js"><\/script>')
		</script>
		<!-- Load Bootstrap and bootstrap plugins -->
		<script src="lib/bootstrap/dist/js/bootstrap.min.js"></script>
		<script src="lib/bootstrap-select/js/bootstrap-select.min.js"></script>
		<script
			src="lib/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
		<script src="lib/bootstrap-filestyle.min.js"></script>
		<!-- Load some plugins -->
		<!--[if (gt IE 8)|!(IE)]><!-->
		<script src="lib/swiper/js/swiper.jquery.min.js"></script>
		<!--<![endif]-->
		<!--[if IE 8 ]><script src="lib/swiper-2.7.6/idangerous.swiper.min.js"></script><![endif]-->
		<script src="lib/wow/wow.min.js"></script>
		<script src="lib/sly.min.js"></script>
		<script src="lib/countdown/jquery.countdown.min.js"></script>
		<script src="lib/device.js"></script>
		<script src="lib/jquery.parallax-scroll.js"></script>
		<script src="lib/intlTelInput/intlTelInput.min.js"></script>
		<script src="lib/jquery.scrollTo.min.js"></script>
		<script src="lib/jquery.magnify.js"></script>
		<script src="lib/jquery.easing.1.3.js"></script>
		<script src="lib/videoBG/videoBG.js"></script>
		<script src="lib/dragula/dragula.min.js"></script>
		<script src="lib/jquery.cookie.js"></script>
		<!--Load scripts-->
		<script src="lib/calctable.min.js"></script>
		<!-- You can find global settings here -->
		<script src="js/globals.js"></script>
		<script src="js/util-functions.js"></script>
		<script src="js/inits/init-settings.js"></script>
		<script src="js/inits/init-checkBrowser.js"></script>
		<script src="js/inits/init-video.js"></script>
		<script src="js/inits/init-youtube.js"></script>
		<script src="js/inits/init-bigSlider.js"></script>
		<script src="js/inits/init-clientSlider.js"></script>
		<script src="js/inits/init-affix.js"></script>
		<script src="js/inits/init-mainMenu.js"></script>
		<script src="js/inits/init-categories.js"></script>
		<script src="js/inits/init-phoneMasking.js"></script>
		<script src="js/inits/init-validation.js"></script>
		<script src="js/inits/init-promos.js"></script>
		<script src="js/inits/init-numberAnimation.js"></script>
		<script src="js/inits/init-numberInputs.js"></script>
		<script src="js/inits/init-cart.js"></script>
		<script src="js/inits/init-modalDetailed.js"></script>
		<script src="js/entry.js"></script>
		<script>
			var baseUrl = '';
			if (typeof SITE_TEMPLATE_PATH !== "undefined")
				baseUrl = SITE_TEMPLATE_PATH + "/" + baseUrl;
			$(function() {
				ls.init.phoneMasking(document);
				$('.form-tel').intlTelInput("loadUtils",
						baseUrl + 'lib/intlTelInput/utils.js');
			})
		</script>
		<div class="overlay overlay-simplegenie" id="modal_detailed"
			aria-hidden="true" data-backdrop="true" data-keyboard="true"
			tabindex="-1">
			<button type="button" class="overlay-close hidden-xs"
				data-dismiss="modal">&#215;</button>
			<div class="modal-content detail-popup">
				<!-- content added dynamically -->
			</div>
		</div>
		<c:if test="${param.set eq 'true'}">
			<a href="#" id="sett-page" class="glyphicon glyphicon-cog hyde"
				data-toggle="modal" data-target="#modal_settings"></a>
			<%@ include file="setting.jsp"%>
		</c:if>
		<%@ include file="cartList.jsp"%>
	</div>
</body>
</html>

沒有留言:

張貼留言