Hey Richard, I am also doing an e-commerce site right now and after reading this thread, it's helped me a lot with designing my inventory. Great concepts!!!
alright, I got it to work though I had to make a few changes. Here is the code!!! Can someone explain to me the error handling codes. Thanks!!!
Public Function Remove
'deletes an item from a user's cart
if not bLoaded then
Remove = false
Exit Function
end if
'HAD TO...
found something neat with sql and now I've replace the execute command with:
c.Execute "DELETE FROM shoppingcart_new WHERE cartitemid IN (" & itemreference & ")"
and took out the for loop:
Case "DELETE"
oCart.Remove(Request.Form("itemcheck"))
still...
hi there I have a checkbox for each item displayed which contains a cartid for each item. When a button is pressed, I have a function which takes all the values of the checked boxes, and go into the database and delete the items matching the cartid. I got it working, but it only works when a...
hey onpnt, I'd tested it already with a hyperlink containing the querystring request("cat") and I get the value on the second page. It's when I use it within the form that I can't get the value. I don't have it anywhere else on the products.asp page.
hey onpnt, this is what displays under 'view source'. I'd tried using ./ and ../ for the parent directory and same thing!
<a href="../products.asp?cat=">Continue Shopping</a>
hmmm...let me check...as for the directory thing, not sure, I'd dled this script from somewhere...I would like know what it is for a parent directory myself. Out of curiosity, what is this mean?
request.servervariables("SCRIPT_NAME")
sorry, not quite sure what you mean? you mean in the shoppingCart.asp where I want to get the querystring? Did I check the output for request("cat")???
hey there, I found my solution but still it's bugging me why the querystring isn't capturing the value? Anyhoo, I just assigned a session variable to request("cat") and reference the session variable when I need it.
***scratching head***
hi there, I'd downloaded a shopping cart script and I'm just playing around with it. It works great and adds the appropriate items, I'm having trouble passing a querystring which holds a value to redirect to a particular page. Here is some code...Any help would be great, I'm scratching my...
I am also doing a shopping cart for someone and I'm using a temp table for items in cart. If they check out then I write the temp table to an order table and delete the items in the temp table. If that helps!!!
hi there, I'm trying to get a recordcount for one of my tables in mysql, but it keeps on giving me a negative value when there are two records in there. Thanks in advance!!!
rs.open sql, c, adOpenStatic, adLockreadOnly, adcmdtext
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.