[Cart ]
[Cart Link Generator ]
[Cart Links Explained ]
[Buy Now ]
[Subscription ]
[Donation ]
[Options ]
[Variables ]
[Shipping ]
[Languages ]
BUTTON OPTIONS
Example Button Using Drop Down Menus
Code example below
Example Button Using a Text box, Radio Button, and Drop Down Menu
Code example below
You can add up to 4 options for each button. The option variable names are: on0,
os0, on1, and os1. They need to be added in the order I have shown. I have
provided some example code for your review. Please note that the examples below
are just that, examples. You can format them to your specifications as long as
the variable names are in order. This code is specific to the button and will
need to be placed within the button code.
Please note that I have only used 3 of the 4 options in the first example above.
on0, os0, and on1. You can also add one more, os1. This one would need to go
after the the on1 option value (after the last select option I have listed).
Also note, that you do not need to use select drop down boxes. You can use text
boxes, radio buttons, etc. The choice on HTML code is really up to you. I simply
have select boxes in my example.
The The portion in the ""
is what you will see. So you will see Color: Blue. The customer will only see
Blue. (noted out side the . It is
important to add the extra Blue outside the <...> as this is what the
customer sees. You can add additional colors by simply repeating another line
before the tag. (example: Green). You may add as many choices as you would like. An example
of what you will see on your receipt is: Color- Blue: Size- Small: Design-
Wolves:
Important Note: If you are using Buy Now, Subscription, or Donation buttons you must use these options in pairs. (I.E. you would need to use on0 and os0 together and on1 and os1 together) If you don't need to pass two variables, just one, or just three you can use to simply "name" the item, and use a hidden field instead of a text, drop down, etc.
Color:<br>
<select name="on0">
<option value="Color- Blue">Blue
<option value="Color- Red">Red
</select>
Size:<br>
<select name="os0">
<option value="Size- Small">Small
<option value="Size- Medium">Medium
<option value="Size- Large">Large
</select>
Design:<br>
<select name="on1">
<option value="Design- Wolves">Wolves
<option value="Design- Horses">Horses
<option value="Design- Children at Play">Children at Play
</select>
The whole button (after adding the information) should look somewhat like the
code below.
First Example Code:
<!-- START PAYPAL SHOPPING CART BUTTON -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr"
method="post">
Color:<br>
<select name="on0">
<option value="Color- Blue">Blue
<option value="Color- Red">Red
</select>
Size:<br>
<select name="os0">
<option value="Size- Small">Small
<option value="Size- Medium">Medium
<option value="Size- Large">Large
</select>
Design:<br>
<select name="on1">
<option value="Design- Wolves">Wolves
<option value="Design- Horses">Horses
<option value="Design- Children at Play">Children at Play
</select>
<nput type="hidden" name="add" value="1">
<input type="hidden" name="cmd"
value="_cart">
<!-- edit value --><input type="hidden"
name="business" value="youremail@domain.com">
<!-- edit value --><input type="hidden" name="item_name"
value="Insert Item Name Here">
<!-- edit value --><input type="hidden"
name="amount" value="15.00">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif"
border="0" name="submit">
</form>
<!-- END PAYPAL SHOPPING CART BUTTON -->
Second Example Code:
<!-- START PAYPAL BUTTON -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<table border="0" width=300>
<tr>
<td width="40%">
Name:<br>
<input type="text" name="on0" value="" size=10>
</td>
<td width="60%">
Inscription:<br>
<input type="text" name="os0" value="">
</td>
</tr>
<tr>
<td width="40%">
Color:<br>
<select name="on1">
<option value="Red">Red
<option value="Blue">Blue
<option value="Green">Green
</select>
</td>
<td width="60%">
Book Title:<br>
<input type="radio" name="os1" value="Title - Ben's Day at the Zoo">Ben's Day at the Zoo
<input type="radio" name="os1" value="Title - Kate's Big Adventure">Kates Big Adventure
<input type="radio" name="os1" value="Title - Spot Learns to Sit">Spot Learns to Sit
</td>
</tr>
<tr>
<td>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" border="0" name="submit">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<!-- edit value --><input type="hidden" name="business" value="youremail@domain.com">
<!-- edit value --><input type="hidden" name="item_name" value="Insert Item Name Here">
<!-- edit value --><input type="hidden" name="amount" value="15.00">
<input type="hidden" name="currency_code" value="USD">
</form>
</td>
<td>
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<!-- edit value -->
<input type="hidden" name="business" value="youremail@domain.com">
<input type="image" src="https://www.paypal.com/en_US/i/btn/view_cart_02.gif" border="0" name="submit">
<input type="hidden" name="display" value="1">
</form>
<!-- END PAYPAL BUTTON -->
</td></tr></table>