|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/30/2003 Posts: 4 Location: ,
|
Is this possible using IPN? If so, how would I write the loop? Thanks.
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
It is possible. I believe I've seen some code on these boards that show what to do. Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/30/2003 Posts: 4 Location: ,
|
I've read that, but it looks like it only works with single item purchases. How would it work if the user bought 3 things?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/30/2003 Posts: 4 Location: ,
|
"item_number_1, item_number_2, etc..."
What exactly will be in those variables? An item number like "UPRO9PAGE" or something like that?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/16/2002 Posts: 15 Location: ,
|
Looks like this. 'this pulls how many items are in the cart NumCartItems = Request.Form("num_cart_items")
'creates an array For i = 1 to NumCartItems If Request.Form("item_number" & i) <> "" Then set Cm = Server.CreateObject("ADODB.Command") Cm.ActiveConnection = "yourconnection string" Cm.CommandText = "your SQL statement to update the inventory" Cm.CommandType = 1 Cm.Execute Else Exit For End If Next
Hope this helps,
Nathan E.
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.230 seconds.