Add to Cart Button

Kathys
Contributor
Contributor

Does anyone know how to add a quantity option to the Add to Cart Button?  I'm trying to create buttons to copy and paste to FrontPage.  Thank you.

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

skier
Advisor
Advisor

As previously mentioned, you must manually code your item button.  There are no features or options within the online button creator for dropdown quantities.

 

The online button creator was intended for folks who are not programmers/coders.  The reason there is no dropdown option for quantities is that one can simply change the quantity on the PayPal Screen.   For example, if you do have a dropdown quantity on your web page and the customer selects 3 each, on the PayPal Screen you will only see 1 in the quantity box.   The 1 represents the 3 the customer selected on your web page.  Now, should the customer change the quantity to 2 on the PayPal Screen, they will actually be getting 6 each from you.  As you can see, this can be quite confusing to customer and may end up causing you issues in the end.  

 

Regards,

 

skier

View solution in original post

Login to Me Too
4 REPLIES 4

skier
Advisor
Advisor

First, you won't be able to use the online button creator to do what you have in mind.  Your item button code must be manually coded.  

 

Below is one example:

 

Widgets - $5.00 Ea

<!-- Start of Form -->
<!-- Note: target="paypal" was replaced with the variable target="_self" -->
<!-- Note: shopping_url also added to code -->
<!-- These two changes allow better functionality with IE and Firefox -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">

Select Quantity:&nbsp;&nbsp;
<select name="quantity">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>

<br><br>
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="youremail @ youremail.com">
<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="no_note" value="1">
<input type="hidden" name="return" value="http://www.yourwebsite.com/successorder.html">
<input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/your_page.html">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted">
<input type="image" src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Form -->

 

 You can find other examples and tips here.

 

 

Regards,

 

skier

Login to Me Too

Kathys
Contributor
Contributor

Oh my gosh, that is way beyond my knowledge level.  To be sure I understand, PayPal, in the simple create a button task,  doesn't offer a quantity option for the Add to Cart Button?

Login to Me Too
Solved

skier
Advisor
Advisor

As previously mentioned, you must manually code your item button.  There are no features or options within the online button creator for dropdown quantities.

 

The online button creator was intended for folks who are not programmers/coders.  The reason there is no dropdown option for quantities is that one can simply change the quantity on the PayPal Screen.   For example, if you do have a dropdown quantity on your web page and the customer selects 3 each, on the PayPal Screen you will only see 1 in the quantity box.   The 1 represents the 3 the customer selected on your web page.  Now, should the customer change the quantity to 2 on the PayPal Screen, they will actually be getting 6 each from you.  As you can see, this can be quite confusing to customer and may end up causing you issues in the end.  

 

Regards,

 

skier

Login to Me Too

Kathys
Contributor
Contributor

Thank you so much for the info.  I'm playing around with the code you sent.  Maybe I'll figure something out, but really appreciate your response.

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.