Express checkout shopping cart shows only one item

PeterTaps
New Community Member

Here is my form:

 

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">

<input type="hidden" name="business" value="xxx">
<input type="hidden" name="lc" value="US">

<input type="hidden" name="item_name" value="My Event Registration - Adult">
<input type="hidden" name="amount" value="30.00">

<input type="hidden" name="item_name_1" value="My Event Registration - Child">
<input type="hidden" name="amount_1" value="10.00">

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="add" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

 

This code is mostly generated using PayPal Payment Button helper on PayPal's website.

 

It seems PayPal's website generates code only for a single item. As I needed two items, I added another item using input fields item_name_1 and amount_1.

 

When I click on the submit button, I am properly taken to PayPal's shopping cart. However, I only see one item in the cart. I was expecting to see both, Registration-Adult and Registration-Child, in the shopping cart.

 

I am wondering if someone can tell me what is it that I am missing.

 

Thank you in advance for your help.


Regards,

Peter

Login to Me Too
1 REPLY 1

MTS_Ciaran
Moderator
Moderator

The button you have is for an "Add to cart" flow, "Add" buttons only allow a single item at a time, if you need more than 1 item to be added you need to use the "Upload" button. However the upload button is for passing all items to PayPal at once, in other words you cannot use two uploads for the same transaction for example:

 

Here's sample upload button code:

 

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post" >
<input type="hidden" name="cmd" value="_cart">

<input type="hidden" name="business" value="xxx">
<input type="hidden" name="lc" value="US">

<input type="hidden" name="item_name_2" value="My Event Registration - Adult">
<input type="hidden" name="amount_2" value="30.00">

<input type="hidden" name="item_name_1" value="My Event Registration - Child">
<input type="hidden" name="amount_1" value="10.00">

<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.