How to add more options in Add to Cart drop down menu?

shelby1123
Contributor
Contributor

I need to expand my options in my Add to Cart button from the10 the button allows to approx. 25 options. I've tried to add custom HTML but am not terribly skilled at it and have not had success. Can someone please advise exactly how I add the custom HTML?

Thanks!

Login to Me Too
3 REPLIES 3

MTS_MichaelL
PayPal Employee
PayPal Employee

Hi,

 

When doing custom additions to the button I recommend not saving it on PayPal account (see post), as PayPal may not recognize the custom variables being submitted and throw an error.

 

An example of code with series of dropdowns:

 

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="amount" value="1">
<input type="hidden" name="business" value="tests@test.com">

<table><tr><td><input type="hidden"  name="on0" value="Colour" size= "1">Colour

<Select name =os0>
<option value="Red">Red</option>
<option value="Gren">Gren</option>
<option value="Blue">Blue</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on1" value="Make" size= "1">Make

<Select name =os1>
<option value="Ford">Ford</option>
<option value="Toyota">Toyota</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on2" value="Model" size= "1">Model

<Select name =os2>
<option value="GT">GT</option>
<option value="Yaris">Yaris</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on3" value="Country" size= "1">Country

<Select name =os3>
<option value="Ireland">Ireland</option>
<option value="UK">UK</option>
<option value="USA">USA</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on4" value="Speed" size= "1">Speed

<Select name =os4>
<option value="MPH">MPH</option>
<option value="MPK">MPK</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on5" value="Material" size= "1">Material

<Select name =os5>
<option value="Carbon">Carbon</option>
<option value="Steel">Steel</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on6" value="Gears" size= "1">Gears

<Select name =os6>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on7" value="Breaks" size= "1">Breaks

<Select name =os7>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on8" value="Tyres" size= "1">Tyres

<Select name =os8>
<option value="Goodyear">Goodyear</option>
<option value="Bridgestone">Bridgestone</option>
</select>

</tr></td></table><table><tr><td><input type="hidden"  name="on9" value="Doors" size= "1">Doors

<Select name =os9>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>


<Select name =os10>

<option value="Red">Red</option>
<option value="Gren">Gren</option>
<option value="Blue">Blue</option>
</select>

</tr></td></table>

<input type="image" src="https://www.sandbox.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">

</form>

 

I hope this helps.

 

Regards,

Michael

MTS

Login to Me Too

smasheasy
New Community Member

Thanks! This worked perfectly. I had to add 50 states to a drop down menu choice. This was brilliant.

Login to Me Too

brewhardware
Frequent Contributor
Frequent Contributor

This is probably off topic, but were all 50 entries going to kick off differnet prices or was it just a general informational input? If the latter, you could have used a single button with a customer text input.

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.