YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Adjusting Inventory from a shopping cart purchase Options
qmayer
#1 Posted : Tuesday, February 25, 2003 8:18:05 PM
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.
Sponsor  
 
paypal_pb
#2 Posted : Tuesday, February 25, 2003 9:14:33 PM
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
qmayer
#3 Posted : Wednesday, February 26, 2003 2:55:55 AM
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?
qmayer
#4 Posted : Thursday, February 27, 2003 3:29:53 PM
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?
nathaned
#5 Posted : Saturday, March 01, 2003 5:49:43 PM
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.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.230 seconds.