- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi.
We're a small organization who has used the Add to Cart button for several years to sell admission to an event where we charge a different price for adults and children. Babies are free, but we've always had a menu option for them so we have a proper headcount for the venue. I suddenly can't edit the button that I've used for years because it won't accept the "Children 0-3" option any more because the price is $0. Whenever I try to save it, I get the error message "ERROR INVALID INPUT: Item price is required."
Is there a quick workaround for this or a better way to set this up?
Thanks.
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The PayPal Buttons created using the Button creator in your account cannot have a selection with a $0.00 amount as the minimum amount requirement is $0.01. There is a work around however, your code has to manually written differently using the "upload method". Using this method, as long as you have a $$ amount for 1 or more items, you can include an item with a zero dollar amount.
Here's an example you can experiment with, in order to test the code, you must replace the "business" value variable with your PayPal Email Address or your Merchant Account ID. (Suggest using your Merchant Account ID.)
<!DOCTYPE html> <html lang="en"> <head> <title>Button Example</title> <!-- START META TAG SECTION --> <meta charset="utf-8"> <meta name="description" content=""> <meta name="keywords" content=""> <!-- END META TAG SECTION --> </head> <body> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Upload Method Examples <br><br> Add to Cart Example - Uploads 2 Line Items, 2nd Line Item is FREE. <br><br> <!-- START BUTTON EXAMPLES --> <span class="subtitle">Notes:<br></span> This example uploads 2 line items and includes the Shipping, Handling and Option Variables.   It provides a good general idea of how the coding works. <br><br> Tip: Note, the "shipping_x" override variables are used with each item. If you choose not to include a "shipping_x" override variable with an individual item, shipping will be applied from your Account Profile Shipping Table. If you only want shipping associated with one item and don't want any shipping fees coming from your Account Profile Shipping Table, set the value for the other "shipping_x" variables to "0" or "0.00". <br><br> <div class="page-splits"></div> <br> <b>Basic Add to Cart Example: <br>Uploads 2 Line Items, 2nd Line Item is FREE</b> <br><br> <span class="price">Widget Concert Ticket: $50.00 ea plus Shipping & Handling</span> <br><br> <!-- Start of Upload Add to Cart Upload Form --> <form action="https://www.paypal.com/cgi-bin/webscr" target="_self" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID --> <input type="hidden" name="business" value="your PayPal Email Address or your Merchant Account ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <!-- 1st Line Item --> <input type="hidden" name="item_name_1" value="Widget Concert Tickets"> <input type="hidden" name="item_number_1" value="WCT-001"> <input type="hidden" name="amount_1" value="50.00"> <input type="hidden" name="shipping_1" value="6.00"> <input type="hidden" name="handling_1" value="2.00"> <!-- 1st Line Item --> <input type="hidden" name="on0_1" value="Admission"> <input type="hidden" name="os0_1" value="General"> <input type="hidden" name="on1_1" value="Seating"> <input type="hidden" name="os1_1" value="Open"> Please enter desired number of Tickets:   <input type="text" size="2" name="quantity_1"> <br> <br> <!-- 2nd Line Item --> <span class="price">(Your order will include 1 Free Ticket)</span> <input type="hidden" name="item_name_2" value="Comp Ticket"> <input type="hidden" name="item_number_2" value="CT-001"> <input type="hidden" name="amount_2" value="0.00"> <input type="hidden" name="quantity_2" value="1"> <input type="hidden" name="tax_2" value="0.00"> <input type="hidden" name="shipping_2" value="0.00"> <input type="hidden" name="on0_2" value="Admission"> <input type="hidden" name="os0_2" value="General"> <input type="hidden" name="on1_2" value="Seating"> <input type="hidden" name="os1_2" value="Open"> <br> <br> <!-- --> <input type="submit" name="submit" value="submit"> </form> <!-- End of Form --> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br> <hr align="left" width="50%" noshade> <br><br> NOTES: <br> In order to test the code, you must replace the "business" value variable with your PayPal Email Address or your Merchant Account ID. </body> </html>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The PayPal Buttons created using the Button creator in your account cannot have a selection with a $0.00 amount as the minimum amount requirement is $0.01. There is a work around however, your code has to manually written differently using the "upload method". Using this method, as long as you have a $$ amount for 1 or more items, you can include an item with a zero dollar amount.
Here's an example you can experiment with, in order to test the code, you must replace the "business" value variable with your PayPal Email Address or your Merchant Account ID. (Suggest using your Merchant Account ID.)
<!DOCTYPE html> <html lang="en"> <head> <title>Button Example</title> <!-- START META TAG SECTION --> <meta charset="utf-8"> <meta name="description" content=""> <meta name="keywords" content=""> <!-- END META TAG SECTION --> </head> <body> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Upload Method Examples <br><br> Add to Cart Example - Uploads 2 Line Items, 2nd Line Item is FREE. <br><br> <!-- START BUTTON EXAMPLES --> <span class="subtitle">Notes:<br></span> This example uploads 2 line items and includes the Shipping, Handling and Option Variables.   It provides a good general idea of how the coding works. <br><br> Tip: Note, the "shipping_x" override variables are used with each item. If you choose not to include a "shipping_x" override variable with an individual item, shipping will be applied from your Account Profile Shipping Table. If you only want shipping associated with one item and don't want any shipping fees coming from your Account Profile Shipping Table, set the value for the other "shipping_x" variables to "0" or "0.00". <br><br> <div class="page-splits"></div> <br> <b>Basic Add to Cart Example: <br>Uploads 2 Line Items, 2nd Line Item is FREE</b> <br><br> <span class="price">Widget Concert Ticket: $50.00 ea plus Shipping & Handling</span> <br><br> <!-- Start of Upload Add to Cart Upload Form --> <form action="https://www.paypal.com/cgi-bin/webscr" target="_self" method="post"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="upload" value="1"> <!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID --> <input type="hidden" name="business" value="your PayPal Email Address or your Merchant Account ID"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="lc" value="US"> <input type="hidden" name="button_subtype" value="products"> <input type="hidden" name="no_note" value="0"> <!-- 1st Line Item --> <input type="hidden" name="item_name_1" value="Widget Concert Tickets"> <input type="hidden" name="item_number_1" value="WCT-001"> <input type="hidden" name="amount_1" value="50.00"> <input type="hidden" name="shipping_1" value="6.00"> <input type="hidden" name="handling_1" value="2.00"> <!-- 1st Line Item --> <input type="hidden" name="on0_1" value="Admission"> <input type="hidden" name="os0_1" value="General"> <input type="hidden" name="on1_1" value="Seating"> <input type="hidden" name="os1_1" value="Open"> Please enter desired number of Tickets:   <input type="text" size="2" name="quantity_1"> <br> <br> <!-- 2nd Line Item --> <span class="price">(Your order will include 1 Free Ticket)</span> <input type="hidden" name="item_name_2" value="Comp Ticket"> <input type="hidden" name="item_number_2" value="CT-001"> <input type="hidden" name="amount_2" value="0.00"> <input type="hidden" name="quantity_2" value="1"> <input type="hidden" name="tax_2" value="0.00"> <input type="hidden" name="shipping_2" value="0.00"> <input type="hidden" name="on0_2" value="Admission"> <input type="hidden" name="os0_2" value="General"> <input type="hidden" name="on1_2" value="Seating"> <input type="hidden" name="os1_2" value="Open"> <br> <br> <!-- --> <input type="submit" name="submit" value="submit"> </form> <!-- End of Form --> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br> <hr align="left" width="50%" noshade> <br><br> NOTES: <br> In order to test the code, you must replace the "business" value variable with your PayPal Email Address or your Merchant Account ID. </body> </html>

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Unable to get any sensible contact with PayPal Customer Service UK in About Settings
- Scam buyer in About Protections
- I am confused, is someone who can help me in Getting started with PayPal
- Ebay buyer wrongly flagged transaction as unauthorised, months after in Selling on eBay
- Counterfeit Items Dispute Resolution: Requires Buyer to Literally Commit Federal Crime(s) in About Payments