⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shopfeatures.asp

📁 vb的一个事例,简单了一点,但实用的一个电子超市系统
💻 ASP
字号:
<%
'******CartAddItem
dim mycolor
Sub CartAddItem(id, rc)
' Return 0 if added, 4 if product does not exist
' Get from datbase and add to instorage array
dim scartitem
Dim arrCart
Dim TotalOptionPrice
Dim Optionname
CartGetProduct Id, rc
if rc = 0 then
   arrCart = Session("MyCart")
   scartItem = Session("cartItem")
   scartitem=scartitem+1
   Session("cartItem")=scartitem
   arrCart(cProductid,scartItem) = lngcatalogID
   arrCart(cProductCode,scartItem) = strccode
   arrCart(cProductname,scartItem) = strcname
   If isnumeric(quantity) then
     arrCart(cQuantity,scartItem) = CInt(quantity)
   else
     arrCart(cQuantity,scartItem) = 1
   end if
   arrCart(cUnitPrice,scartItem) = curCprice + TotaloptionPrice
   Session("MyCart")=arrCart
end if
end sub
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -