I have a shopping cart set up on an ASP page. I would like the user to only submit things to the cart that are the same vendor type. If the vendor is not the same, I wish to distroy the cart and create a new one. Here is what I have so far.
IF NOT isArray( Session( "savcart" ) ) THEN
dim ShopCart(8,10)
ELSE
ShopCart = Session( "savcart" )
IF (server.HTMLEncode( ShopCart(CARTUOM,1))<>
txtVdr) then
{some code to delete and re-create the cart}
dim ShopCart(8,10)
END IF
END IF
Does anyone have code to to do this?
IF NOT isArray( Session( "savcart" ) ) THEN
dim ShopCart(8,10)
ELSE
ShopCart = Session( "savcart" )
IF (server.HTMLEncode( ShopCart(CARTUOM,1))<>
txtVdr) then
{some code to delete and re-create the cart}
dim ShopCart(8,10)
END IF
END IF
Does anyone have code to to do this?