Tackleunderground
Tackleunderground > Web Tools > Website Questions > PayPal drop down menu help
» Who's Chatting!
Members In Chat: 0
No one is currently using the chat
Enter the Chatroom!
» January 2009
S M T W T F S
28293031 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
» Today's Birthdays
None
» Stats
Members: 8,856
Threads: 14,402
Posts: 110,547
Top Poster: Vodkaman (1,896)
Welcome to our newest member, alabamajon56
Reply
 
Thread Tools
  #1 (permalink)  
Old May 25th, 2005
millsryno's Avatar  
Join Date: Feb 2005
Location: Surprise, AZ
Posts: 371
Gallery: 0
PayPal drop down menu help

OK, I have searched and searched on the web and am very discouraged. Hopefully one of you guys are knowledgable wth PayPal's button factory. In Paypal you can creating Add To Cart buttons. With each button you can create options with drop down boxes.

In the button factory they limit you to only 10 choices per drop down box and only two drop down boxes per button.

I have figured out how to manually add HTML to make it so that I can have an unlimited amount of choices per drop down box. I have also figured out how to make additional drop down boxes for each button. So for example, if I want my customers to be able to choose a size, color and scent, I have figured out how to have these three drop down boxes displayed on my webpage. My problem is that I can only get 2 of the drop down box choices to show up in the shopping cart.

Can anybody give me some guidance?

Thanks,

Ryan
Reply With Quote

  #2 (permalink)  
Old May 25th, 2005
 
Join Date: Nov 2003
Location: San Diego, CA USA
Posts: 1,160
Gallery: 0
Send a message via AIM to siebler_custom_baits Send a message via Yahoo to siebler_custom_baits
my best guess is that only 2 will show up becasue that is how paypal has there table set up. What i did on my site is i grouped things and then added selections.

So for Size Color and Scent i would make a chart with all the sizes then buttoms for color and scent. IN description of item make sure to include sizes though(thats for when its in the cart)
Reply With Quote
  #3 (permalink)  
Old May 25th, 2005
 
Join Date: Jul 2004
Location: Durant, OK
Posts: 255
Gallery: 0
It will be easier on you if you make a button for each individual size, then add color and scent as drop downs.

If you decide to have a "standard" scent (automatically added if nothing else is chosen) make it your first option. Or if there is no scent standard change the first option to "Choose One" or something along those lines. Anything that is the first option will be sent with the order if it isn't changed.

I use Dreamweaver. Once you've pasted the code in code view, you can switch back to the graphic view and modify it alot easier by clicking on the button and modifying any choices from an option window below. Makes it alot easier than copy, pasting and typing choices, especially if you have alot!
Reply With Quote
  #4 (permalink)  
Old May 25th, 2005
 
Join Date: Nov 2003
Location: San Diego, CA USA
Posts: 1,160
Gallery: 0
Send a message via AIM to siebler_custom_baits Send a message via Yahoo to siebler_custom_baits
mojo said what i said but much better. Have a standard size and then dropdown color and scent.
Reply With Quote
  #5 (permalink)  
Old May 26th, 2005
dayooper's Avatar
TU Club Member
 
Join Date: Feb 2004
Location: West Michigan
Posts: 148
Gallery: 1
Adding options to Paypal.

You can check out my website (www.tjstackle.com) and see if that is the way you want your buttons to work. I have multiple drop down boxes per item that the user can specify their choices and when they hit "add to cart", I have code behind the scenes that will concatenate the dop down selections and put it in one of the Paypal fields. If you are interested in the code, let me know and I can send you a sample. BTW, my "real" job is software developing for a large office furniture company.

Benjamin
Reply With Quote
  #6 (permalink)  
Old May 26th, 2005
 
Join Date: Jul 2004
Location: Durant, OK
Posts: 255
Gallery: 0
I'm interested in the code. I want to improve on my site.

Thanks!
Reply With Quote
  #7 (permalink)  
Old May 27th, 2005
dayooper's Avatar
TU Club Member
 
Join Date: Feb 2004
Location: West Michigan
Posts: 148
Gallery: 1
Paypal Workaround for button limitations

Here is the code if anybody is interested. It will take a little bit of programming knowledge to do though.

The first thing to do is to create a Paypal button through their buttom factory that has 2 plain text options. When you view the code behind the button it creates you will notice the variables it uses to send to Paypal. These are on0 (label for option 1), os0 (value for option 1), on1 (label for option 2), and os1 (value for option 2). You can modify these variable before the information is sent to Paypal. Simply create a javascript function and call it in the onclick event of the Paypal Add to Cart button. Example:

"<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" onclick=updatePaypal1() border="0" name="I10" alt="Make payments with PayPal - it's fast, free and secure!" width="87" height="23">"

In this example updatePaypal1() is the name of the javascript function. Within this function you can set the values of the Paypal variable listed above with whatever values you would like. Be careful, because Paypal will limit the length of the text you put in those fields. With this technique you can concatenate things like size, color, weight, etc.. into one Paypal field. It will also allow you to create your own drop down list with as many options as you would like. If you have any questions, let me know. Email me if you would like for me to send a sample html page that shows how this works. It may help if you see it. The code is too long to post here.

Benjamin
Reply With Quote
  #8 (permalink)  
Old May 30th, 2005
millsryno's Avatar  
Join Date: Feb 2005
Location: Surprise, AZ
Posts: 371
Gallery: 0
Thanks for the help. I am still a newbie at this. Let's pretend I want a button for some stick baits that I want to sell. I went to PayPal and created a button. As stated previously, it only lets me have 2 drop down boxes. Let's pretend that I need my customers to have 3 drop down boxes, though, one for size, color and scent.

I am still unsure where to plug that coding in. I am wondering if I paste the code here for the button, if you could maybe type in bold or something the new code required to add the third drop down box for scent. Let's say we want our customer to have four scent choices (anise, garlic, craw, shad).

I don't know if I could even express my gratitude if you can help me figure this out. I am stumped. I contacted PayPal about this and got a response, but I am still not savvy enough to figure out exactly what to do with the information they gave me. Here is that info:

Hello my name is Michael, I will be happy to assist you with your question
regarding multiple drop down boxes.

The reason you only get the information from 2 of the boxes to show is
because the variables used on0/os0 and on1/os1 are proprietory and can not be changed to on2,3, etc.

If you need three dropdowns, use the "custom" variable for the third
dropdown. So, in other words:

<select name="custom">
<option value="first choice">
<option value="second choice">
<option value="etc."
</select>

When you use "custom" the value is passed to you, the seller, but not the
buyer. If you want the buyer to see their choice, then you will need to
use a different variable. The variable "item_number" could be used,
"item_number" can be almost anything as long as it doesn't exceed 127
characters. So, in the example above, substitute "item_number" for
"custom".


Here is the code that PayPal's button factory generated:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<table><tr><td><input type="hidden" name="on0" value="Size">Size</td><td><select name="os0"><option value="3 inch">3 inch<option value="4 inch">4 inch<option value="5 inch">5 inch<option value="6 inch">6 inch<option value="7 inch">7 inch</select>
</td></tr><tr><td><input type="hidden" name="on1" value="Color">Color</td><td><select name="os1"><option value="Watermelon">Watermelon<option value="June Bug">June Bug<option value="Camo">Camo<option value="Green Pumkin">Green Pumkin<option value="Pumpkin Seed">Pumpkin Seed</select>
</td></tr></table><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!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="sales@handpouredworms.com">
<input type="hidden" name="item_name" value="Stick Worms - 10 Pack">
<input type="hidden" name="amount" value="4.99">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
</form>
Reply With Quote
  #9 (permalink)  
Old May 31st, 2005
dayooper's Avatar
TU Club Member
 
Join Date: Feb 2004
Location: West Michigan
Posts: 148
Gallery: 1
Code for multiple dropdown boxes

Millsryno,

Here is the code for multiple drop down boxes. I have highlighted my changes in bold. I have also added a quantity field to make it easier for you customers. Let me know if it works for you or if you have any other questions. You should be able to cut and past this code into Notepad and then run it.

Benjamin
www.tjstackle.com

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script Language="JavaScript">
function updatePaypal(){
var cfrm = document.forms[0]
var temp4
for (var r=0; r < cfrm.D1.length; r++){
if ( cfrm.D1[r].selected ){
temp4 = cfrm.D1[r].value
}
}
cfrm.quantity.value = temp4
var temp1
for (var r=0; r < cfrm.D3.length; r++){
if ( cfrm.D3[r].selected ){
temp1 = cfrm.D3[r].value
}
}
var temp2
for (var r=0; r < cfrm.D2.length; r++){
if ( cfrm.D2[r].selected ){
temp2 = cfrm.D2[r].value
}
}
cfrm.os1.value = temp1 + " " + temp2


}
</script>
</head>

<body>


<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<table><tr><td><input type="hidden" name="on0" value="Size">Size</td><td>
<select name="os0">
<option value="3 inch">3 inch
<option value="4 inch">4 inch
<option value="5 inch">5 inch
<option value="6 inch">6 inch
<option value="7 inch">7 inch</select>
</td></tr><tr><td><input type="hidden" name="on1" value="Color and Scent">Color</td><td>
<select name="D3"><option value="Watermelon">Watermelon
<option value="June Bug">June Bug
<option value="Camo">Camo
<option value="Green Pumkin">Green Pumkin
<option value="Pumpkin Seed">Pumpkin Seed</select>
</td></tr>
<tr><td>Scent</td><td>
<select name="D2"><option value="Anise">Anise
<option value="Garlic">Garlic
<option value="Craw">Craw
<option value="Shad">Shad
</select></td></tr>
<tr><td>Quantity</td><td>
<select name="D1"><option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
</select>
</td></tr>
<tr></td>
</table>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" onclick=updatePaypal() border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="87" height="23">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="quantity" value="1">
<input type="hidden" name="os1" value="">
<input type="hidden" name="business" value="sales@handpouredworms.com">
<input type="hidden" name="item_name" value="Stick Worms - 10 Pack">
<input type="hidden" name="amount" value="4.99">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
</form>
</body>

</html>
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

» Search Forums
OR
Custom Search
TU Supply Shop
TU Football Pool
Please rate us! 10=BEST 1=WORST

Powered by vBadvanced CMPS v3.0.1

All times are GMT -4. The time now is 09:51 PM.


Powered by vBulletin Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 All other images, content & coding Copyright © 2002 - 2006 Jerry Goodwin Inc. All rights reserved.
The materials displayed on the Tackleunderground Web site, including without limitation all editorial materials, informational text, photographs, illustrations, artwork and other graphic materials, and names, logos, trademarks and service marks, are the property of Jerry Goodwin Inc. or its parent companies, subsidiaries, divisions, affiliates or licensors and are protected by copyright, trademark and other intellectual property laws. You agree not to reproduce, retransmit, distribute, disseminate, sell, publish, broadcast or circulate any such material to anyone without the express prior written consent of Jerry Goodwin Inc.
Locations of visitors to this page