You need to login in order to make a new post. If you do not have a community account, you can get one here.

INS and item count

Hello,

We are trying to integrate our billing system with your notification system (INS) and having a problem. We can not find item counts.

For example, there is an order:
5 hats, $50 each and 3 belts $40 each.
Total: $370

What parameter of INS will tell us how many hats and how many belts were sold?

Thank you.

RSS feed

3 Comments »

# Comment by simba 2CO Staff
2009-05-27 13:11:49

There is not a specific parameter that defines the quantity of particular items. This is because each individual item ordered will be passed back as its own line item. This means that each item ordered will have its own set of ‘item_’ parameters passed back to your INS script.

For example, say these ‘item_’ parameters were passed back for 2 of the same belt:

item_name_1=belt
item_id_1=5

item_name_2=belt
item_id_2=5

As we see in the example, each individual item will get their own set of ‘item_’ parameters. To retrieve the quantity number, the best suggestion is to have your INS script either count the number of times the ‘item_name_#’ is ‘belt’ or the number of times the ‘item_id_#’ is ‘5′.

 
 
# Comment by aspauctionpro
2009-06-03 16:42:00

Just an additional info to get the quantity of each items ordered. For example, to get the 5 hats and 3 belts:

item_name_1=hats
item_quantity_1=5

You can iterate the how many items were ordered. I can give you an example code if you can tell me the development language you are using.

 
 
# Comment by tools
2009-06-04 05:00:21

Thank you. PHP code sample would be good.

 
 
You need to login before leaving a comment If you do not have an account, you can register one here.

Recent Activity:

Welcome to 2Checkout!

2Checkout is a full-service e-commerce solution recognized by Inc. Magazine as one of the fastest growing companies in the United States. 2CO’s proprietary technology supports back-office functions including financial reporting, tracking, fraud prevention, affiliate tracking, customer service and sales tracking. Click here to learn more.

Spotlight Supplier

Spotlight Supplier

Premium Web Hosting

Spotlight Shopping Cart

Spotlight Shopping Cart

VPASP Shopping Cart


Popular Tags

$150 2Checkout 2CO account accounting address affiliate approval automatic beta billing buy cart celebrity changes chargeback charges checkout consumer credit card currency customer delivery download email error essay Euro extension fee fraud FX Getting Started help India INS intangible integration international IPN issues joomla language laptop link login logo md5 medison Money monthly notification option order oscommerce Pakistan Parameter parameter error parameters payment payments payoneer payoneer card paypal pending Product product options products purchase recurring Recurring Payments refund refunds release level returns risk sales scam script sellers sell mp3 service Services setup shipping shopping shopping cart software status subscription subscriptions suggestions support third party Transfer url Valdi vendor verification website