- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi I'm creating a button for some t-shirts. I need to have 40 diferent colors. Is there any way to go beond 10 items on a drop down menu?
Thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, but the trick is, you can't use "hosted" or "encrypted" item button code. The online button creator will only allow 10 options, for more, you need to manually code your item button code. This means the code cannot be stored on the PayPal Servers.
To save coding time, you can use the Online Button Creator to generate a starting point. Here's how:
* First, start with a new item button.
* "Uncheck" the option for "Save Button At PayPal" in Step 2.
* After you "Create" the button code, in the window that displays the code look for the link that says "Remove Code Protection". Select this link. Your code is now ready for customization.
Just to show you how you can do what you have in mind, check out the example below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Button Example Code</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> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Basic Examples <br><br> Another Various Sizes and Prices, Option and Quantity Input. <br><br> <hr align="left" width="50%" noshade> <br><br> <!-- START CONTENTS --> <!-- START BUTTON EXAMPLES --> <!-- START BUTTON EXAMPLES --> <!-- Start of Add to Cart Form --> <!-- Note: target="_self" 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"> <!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. --> <input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg"> <!-- Replace "business" value with your PayPal Email Address or Account ID --> <input type="hidden" name="business" value="your email address"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="add" value="1"> <input type="hidden" name="item_name" value="Widget Candle"> <!-- Replace value with the web page you want the customer to return to --> <input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shop.html"> <!-- Replace value with the web page you want the customer to return to after a successful transaction --> <!-- Optional if data is to be returned <input type="hidden" name="rm" value="1"> --> <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="no_note" value="0"> <input type="hidden" name="cn" value="Add special instructions to the seller:"> <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted"> <!-- --> Select Size:   <input type="hidden" name="on0" value="Size"> <select name="os0"> <option value="Small" selected>Small - $3.00</option> <option value="Medium">Medium - $4.50</option> <option value="Large">Large - $6.00</option> </select> <!-- option_index value=0 is associated with variable on0 --> <input type="hidden" name="option_index" value="0"> <!-- --> <input type="hidden" name="option_select0" value="Small"> <input type="hidden" name="option_amount0" value="3.00"> <input type="hidden" name="option_item_number0" value="WC-S-1001"> <!-- --> <input type="hidden" name="option_select1" value="Medium"> <input type="hidden" name="option_amount1" value="4.50"> <input type="hidden" name="option_item_number1" value="WC-M-2002"> <!-- --> <input type="hidden" name="option_select2" value="Large"> <input type="hidden" name="option_amount2" value="6.00"> <input type="hidden" name="option_item_number2" value="WC-L-3003"> <!-- --> <br><br> Select Scent:   <input type="hidden" name="on1" value="Scent"> <select name="os1"> <OPTION value="Blueberry" selected>Blueberry</OPTION> <OPTION value="Vanilla">Vanilla</OPTION> <OPTION value="Lemon">Lemon</OPTION> <OPTION value="Apple Pie">Apple Pie</OPTION> <OPTION value="Citrus">Citrus</OPTION> <OPTION value="Rain">Rain</OPTION> <OPTION value="Lavendar">Lavendar</OPTION> <OPTION value="Jasmine">Jasmine</OPTION> </select> <br><br> Quantity: <input type="text" name="quantity" size="2"> <br><br> <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> <!-- End of Form --> <!-- Start of View Cart Button Code --> <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 in your View Cart code. --> <input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="display" value="1"> <!-- Replace "business" value with your PayPal Email Address or Account ID --> <input type="hidden" name="business" value="your email address"> <!-- Replace value with the web page you want the customer to return to --> <input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shop.html"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_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 View Cart Button Code --> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br><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 Account ID. </body> </html>
One more tip when you're testing item button code:
After you have made your changes to your item button code, be sure to delete your web browser's cookies, temp files and history before testing the changes. This ensures a clean start. Delete the browser's cookies, temp files and history, then close the browser, reopen it and then test your code. Should you not do this each time, you may get unexpected results due to the previous cookie history.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, but the trick is, you can't use "hosted" or "encrypted" item button code. The online button creator will only allow 10 options, for more, you need to manually code your item button code. This means the code cannot be stored on the PayPal Servers.
To save coding time, you can use the Online Button Creator to generate a starting point. Here's how:
* First, start with a new item button.
* "Uncheck" the option for "Save Button At PayPal" in Step 2.
* After you "Create" the button code, in the window that displays the code look for the link that says "Remove Code Protection". Select this link. Your code is now ready for customization.
Just to show you how you can do what you have in mind, check out the example below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Button Example Code</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> <!-- START SAMPLE CODE SECTION --> <!-- PARAGRAPH 1 --> Basic Examples <br><br> Another Various Sizes and Prices, Option and Quantity Input. <br><br> <hr align="left" width="50%" noshade> <br><br> <!-- START CONTENTS --> <!-- START BUTTON EXAMPLES --> <!-- START BUTTON EXAMPLES --> <!-- Start of Add to Cart Form --> <!-- Note: target="_self" 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"> <!-- If using a Business or Company Logo Graphic, include the "cpp_header_image" variable in your View Cart code. --> <input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg"> <!-- Replace "business" value with your PayPal Email Address or Account ID --> <input type="hidden" name="business" value="your email address"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="add" value="1"> <input type="hidden" name="item_name" value="Widget Candle"> <!-- Replace value with the web page you want the customer to return to --> <input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shop.html"> <!-- Replace value with the web page you want the customer to return to after a successful transaction --> <!-- Optional if data is to be returned <input type="hidden" name="rm" value="1"> --> <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="no_note" value="0"> <input type="hidden" name="cn" value="Add special instructions to the seller:"> <input type="hidden" name="bn" value="PP-ShopCartBF:btn_cart_LG.gif:NonHosted"> <!-- --> Select Size:   <input type="hidden" name="on0" value="Size"> <select name="os0"> <option value="Small" selected>Small - $3.00</option> <option value="Medium">Medium - $4.50</option> <option value="Large">Large - $6.00</option> </select> <!-- option_index value=0 is associated with variable on0 --> <input type="hidden" name="option_index" value="0"> <!-- --> <input type="hidden" name="option_select0" value="Small"> <input type="hidden" name="option_amount0" value="3.00"> <input type="hidden" name="option_item_number0" value="WC-S-1001"> <!-- --> <input type="hidden" name="option_select1" value="Medium"> <input type="hidden" name="option_amount1" value="4.50"> <input type="hidden" name="option_item_number1" value="WC-M-2002"> <!-- --> <input type="hidden" name="option_select2" value="Large"> <input type="hidden" name="option_amount2" value="6.00"> <input type="hidden" name="option_item_number2" value="WC-L-3003"> <!-- --> <br><br> Select Scent:   <input type="hidden" name="on1" value="Scent"> <select name="os1"> <OPTION value="Blueberry" selected>Blueberry</OPTION> <OPTION value="Vanilla">Vanilla</OPTION> <OPTION value="Lemon">Lemon</OPTION> <OPTION value="Apple Pie">Apple Pie</OPTION> <OPTION value="Citrus">Citrus</OPTION> <OPTION value="Rain">Rain</OPTION> <OPTION value="Lavendar">Lavendar</OPTION> <OPTION value="Jasmine">Jasmine</OPTION> </select> <br><br> Quantity: <input type="text" name="quantity" size="2"> <br><br> <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> <!-- End of Form --> <!-- Start of View Cart Button Code --> <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 in your View Cart code. --> <input type="hidden" name="cpp_header_image" value="https://yourwebsite.com/logo.jpg"> <input type="hidden" name="cmd" value="_cart"> <input type="hidden" name="display" value="1"> <!-- Replace "business" value with your PayPal Email Address or Account ID --> <input type="hidden" name="business" value="your email address"> <!-- Replace value with the web page you want the customer to return to --> <input type="hidden" name="shopping_url" value="http://www.yourwebsite.com/Shop.html"> <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_viewcart_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 View Cart Button Code --> <!-- END BUTTON EXAMPLES --> <!-- END SAMPLE CODE SECTION --> <br><br><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 Account ID. </body> </html>
One more tip when you're testing item button code:
After you have made your changes to your item button code, be sure to delete your web browser's cookies, temp files and history before testing the changes. This ensures a clean start. Delete the browser's cookies, temp files and history, then close the browser, reopen it and then test your code. Should you not do this each time, you may get unexpected results due to the previous cookie history.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Couple of thoughts here:
In order to do what you have in mind, the code "must" be manually done. As for protection, it is possible that someone could alter the prices however, it is your responsibly to either accept or cancel the the transaction.
Most not so honest folks know that so they won't waste their time tweaking the code to change the prices. What you need to be more concerned with is what happens after the sale. The buyer or not so honest buyer can simply open a dispute against you requesting a refund for various reasons. They can drag the issue out and end up with both the item and their money back.
There's quite a few steps you can take to protect yourself simply by properly configuring your Account Profile Settings, This is more important than protecting your item button code. For example, you can set your Profile to only accept payments form US PayPal Accounts, don't accept eChecks, don't accept purchases from Student Accounts, don't ship international, place a cap on the total amount you will accept, only accept confirmed addresses, don't deal with intangible items or services, etc. There's even a feature called Authorization and Capture where as you can review the transaction and decide whether you will accept it or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you so much snowshoe!
I will be delivering these in person so not a big worry. But I will keep this in mind for future sales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Bank withdrawal option no longer available in About Payments (Archive)
- Problem converting paypal ringgit balance to USD in About Settings (Archive)
- Verification Code Field Unavailable in About Settings (Archive)
- Cannot remove address although my card isn't linked with it. in About Settings (Archive)
- Is there ANY way (conventional or not) to manipulate the button code in order to... in About Business (Archive)