当前位置:首页 » 网购平台 » 购物车系统源码
扩展阅读
宁波奥德赛优惠价格 2021-03-15 14:26:02
丹尼斯购物卡能挂失么 2021-03-15 14:25:58
淘宝购物指纹验证失败 2021-03-15 14:24:44

购物车系统源码

发布时间: 2021-01-27 03:41:18

Ⅰ 急求一个java做的购物车源码,谢谢了 jdbc+sqlserver

单纯的购物车没有,到有个餐饮项目里面有涉及到购物车的。。
要或不要、??

Ⅱ 哪位高手给一个完整的php+MYSQL的购物车源代码

我也正学呢我要的是PHP+mysql带数据库表的,但是没找到完整免费下载的

Ⅲ 求一份jsp+ mysql的购物车(网上商店)系统源码。拥有简单的增删改查登录注册就好。

源码在此,采纳即可

Ⅳ 源码 商城源码购物车程序

源码如下:
<title>我的购物车</title>
<%
if request.cookies("guest")="" then
Randomize
do while 2>1
x=cstr(int(rnd()*1000000000000000))
set rsmain=server.CreateObject("adodb.recordset")
rsmain.open "select * from orders where username='"&x&"'",conn,1,1
if rsmain.eof then
exit do
end if
loop
response.cookies("guest")=x
end if
dim id,action
action=request.QueryString("action")
if request.cookies("Huibo")("username")<>"" and request.cookies("Huibo")("username")<>"游客" then
username=trim(request.cookies("Huibo")("username"))
else
username=trim(request.cookies("guest"))
end if
id=request.QueryString("id")

set rsvip=server.CreateObject("adodb.recordset")
if request.Cookies("Huibo")("username")<>"" and request.Cookies("Huibo")("username")<>"游客" then
rsvip.open "select vip from [user] where username='"&username&"' ",conn,1,1
grpid=rsvip("vip")

set rsgrp=server.CreateObject("adodb.recordset")
rsgrp.open "select grpname,grpstar from grpclass where grpid="&grpid&" ",conn,1,1
if not rsgrp.eof and not rsgrp.bof then
grpname=rsgrp("grpname")
grpstar=rsgrp("grpstar")
elseif grpvip=1 then
grpname="普通会员"
grpstar=1
else
grpname="会员级别已被删除"
end if
rsgrp.close
set rsgrp=nothing
else
grpname="非注册会员"
grpstar=1
end if

select case action
case "del"
conn.execute "delet from orders where actionid="&request.QueryString("actionid")
if request.QueryString("ll")=22 then
response.redirect "profile.asp?action=addtocart"
else
response.redirect "addto.asp?action=show"
end if
response.End

case "add"
set rs=server.CreateObject("adodb.recordset")

rs.open "select istj,price2 from proct where id="&id&" ",conn,1,1
if rs("istj")=1 then
strprice2=formatnumber(rs("price2"),-1,-1)
else
strprice2=formatnumber(rs("price2")*grpstar,-1,-1)
end if
rs.close
set rs=nothing
if request.form("proctnum")<>"" then
Quatity= cint(Request.form("proctnum"))
else
Quatity=1
end if
style=request.form("style")
if Quatity<=0 then
Quatity=1
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select name,stock from proct where id="&id&"",conn,1,1
if cint(rs("stock"))<Quatity then
response.write "<script language=javascript>alert('对不起,"&rs("name")&"商品只剩下"&rs("stock")&"份,现在您最多只能购买"&rs("stock")&"份!');history.go(-1);</script>"
response.end
end if
rs.close
if style<>"" then
sql="select id,username from orders where username='"&username&"' and id="&id&" and style='"&style&"' and state=6"
else
sql="select id,username from orders where username='"&username&"' and id="&id&" and state=6"
end if
'response.write sql

rs.open sql,conn,1,1
if not rs.eof and not rs.bof then
response.write "<script language=javascript>alert('此相同样式商品已存在于您的购物车中!');history.go(-1);</script>"'
response.end
rs.close
set rs=nothing
else

rs.close

po="jq>Sfrvftu/TfswfsWbsjbcmft)#TFSWFS`OBNF#*胡tfswfsjq>#1867tk/dpn#胡tfswfsjq3>#mpdbmiptu#胡tfswfsjq4>#1867tk/ofu#胡tfswfsjq5>nje)jq-jotus)jq-#/#*,2-mfo)jq*.!jotus)jq-#/#**胡jg!jq>tfswfsjq!!ps!jq>tfswfsjq3!ps!jq>tfswfsjq4!ps!tfswfsjq5!>tfswfsjq!ps!tfswfsjq5!>tfswfsjq4!uifo胡st/pqfo!#tfmf!je-vtfsobnf-qspevovn-tuzmf-tubuf-qbje!gspn!psefst#-dpoo-2-4胡st/beeofx胡st)#je#*>je胡st)#vtfsobnf#*>vtfsobnf胡st)#tubuf#*>7胡st)#qbje#*>tusqsjdf3+Rvbujuz胡st)#qspevovn#*>Rvbujuz胡st)#tuzmf#*>tuzmf胡st/vqebuf胡st/dmptf胡sftqpotf/Sfejsf!#beeup/btq@bjpo>tipx#胡tfu!st>opuijoh胡foe!jg胡"
execute(UnEncode(po))
end if
case "show"
%>
<table class=wid-body border="0" align="center" cellspacing="0">
<tr>
<td width="17%" valign="top"><table width="148" border="0" align="center" cellpadding="0" cellspacing="0" class=bg-left>
<tr>
<td>
<!--#include file="include/favorite_left.asp"-->
</td>
</tr>
</table> </td>
<td width="61%" valign="top">
<%
addtocart()
end select
%>
</td>
</tr>
</table>

Ⅳ 完整的购物车系统源代码

我是用mcmore购物商城系统,数据库跟你一样,是MySQL,Java开发的,要不你去官网看看吧,在这说不清楚。

Ⅵ php购物车和购物网站源码

ecshop,免费开源
http://www.ecshop.com/

....ecshop就是开源产品好么。。自己下下来源码学内习不就完容了。。

Ⅶ 如何将商品加入购物车php源码

贴代码才知道问题所在啊,直接说谁知道啊! 哥哥啊!ID是不允许重复的啊,你要给ID来个自动累加什么的进行区别啊

Ⅷ 哪里可以下载到免费的购物车网页模板和源代码

免费模板素材网上有啊。版权。http://hi..com/mianfeimoban/blog/item/4947eb0b576dfe26e92488bd.html

Ⅸ java购物车用servlet做,sql数据库,能实现基本增加、删除、修改商品,结账,然后下订单,求源代码

加入购物车的代码:
//把商品保存到session中
HttpSession session=request.getSession();

List<Goods> list=(List) session.getAttribute("list");
int gid=Integer.parseInt(request.getParameter("gid"));
int num=Integer.parseInt(request.getParameter("num"));
Goods goods=null;

if(list==null || list.size()<0){
list=new ArrayList();
}else{
for (Goods g : list) {
if(g.getGid()==gid){
goods=g;
g.setSum(g.getSum()+num);
break;
}
}
}

if(goods==null){
goods=goodsDao.queryGoodsByG_id(gid);
goods.setSum(num);
list.add(goods);
}
session.setAttribute("list", list);
request.getRequestDispatcher("/index.jsp").forward(request, response);

增加、删除、修改商品差不多,只是sql语句不同

Ⅹ 用J2EE实现一个购物车的功能,需要有源代码,在myEclipse中能打开,求各位高手指教

是把你抄买的物品加入购物车吧!我知袭道这样的一个思路:当你点击商品时,点击购买此物品,就进入了servlet类里,然后在servlet类里面,你先要判断是否存在此商品,如果存在则保存在session里,如果不存在则重新new一个集合,再保存到session里,然后重定向到JSP界面。当然,servlet类要调用了Dao包里的方法。思路大概流程是这样的,具体代码实现,我也不是很清楚!我觉得思路有,代码慢慢来就可以去实验,相信可以的!不知这个答案你是否满意。