shopfeatures.asp

来自「本软件可以实现的功能如下:   用户管理」· ASP 代码 · 共 31 行

ASP
31
字号
<%
'******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 + =
减小字号Ctrl + -
显示快捷键?