how can I add a quanity to checkout? currently you can only buy 1 at a time?q

bottleknucks
New Community Member
1 REPLY 1

snowshoe
Frequent Advisor
Frequent Advisor

Add to Cart item buttons allow you to change the quantity on the PayPal Checkout Screens however, Buy Now items do not.  (This is by design.)

 

For Buy Now type buttons what you need to do is manually code your Buy Now item button and include the variable "undefined_quantity" with a value set to = "1".   This is one of those tricks that can't be done using the online button creator.   The customer will enter the quantiy on your web page first, then that value is passed to the PayPal Checkout Screens..

 

Check out the Buy Now Example below:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<title>Test</title>

<!-- START META TAG SECTION -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<!-- END META TAG SECTION -->



</head>

<body>

<!-- INSERT TEST CODE HERE -->

Widget - $5.00 ea - Shipping $2.00 for 1st, $1.00 ea additional

<br><br>

<!-- Start of Buy Now Form -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable. -->
<input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or your Merchant Account ID -->
<input type="hidden" name="business" value="your email address">
<!--  -->
<!-- undefined_quantity -->
<!-- "undefined_quantity" value="1" – allows buyers to specify the quantity on the PayPal Checkout Screen. -->
<!-- Optional for Buy Now buttons, Not used with other buttons -->
<input type="hidden" name="undefined_quantity" value="1">
<!--  -->
<input type="hidden" name="item_name" value="Widget">
<input type="hidden" name="item_number" value="W-1001">
<input type="hidden" name="amount" value="5.00">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="shipping" value="2.00">
<input type="hidden" name="shipping2" value="1.00">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<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">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_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>
<!-- End of Buy Now Form -->



<!-- END TEST CODE SECTION -->



</body>
</html>

 

 

 

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.