Paypal Fields
I'm trying to set up multiple lists and text fields but I'm only allowed to set up 1 list field. How do I create multiple fields?
I'm trying to set up multiple lists and text fields but I'm only allowed to set up 1 list field. How do I create multiple fields?
you posted this under the Button Styler forum, what tool are you using? eCart? Free Tools - Paypal add to cart buttons? other?
I'm assuming you mean Free tools - PayPal Add to cart button.
to add additional options, you need to hand code the option after the button is created.
options are passed using form elements with a naming convention of:
on<int> - This passes the name of the option (where <int> is a number starting at 0)
os<int> - This passes the value of the option (where <int> is a number starting at 0)
if you set up a size option in the button with small, medium and large, the code genewrted will be:
Size:<input type="hidden" name="on0" value="Size" />
<select name="os0">
<option value="Small">Small</option>
<option value=" Medium"> Medium</option>
<option value=" Large"> Large</option>
</select>
so to add a color option, you would add another hidden element named on1 to pass "Color" as the name of thew option and a select list named "os1" to pass the selected color:
Color:<input type="hidden" name="on1" value="Color" />
<select name="os1">
<option value="Red">Red</option>
<option value="Yellow">Yellow</option>
<option value="Blue">Blue</option>
</select>
ok. I thought the tool would do this. How would I add a check-box?
The tool can only add the first option, other options need to be added manually.
what is the checkbox for?
I Agree:<input type="hidden" name="on2" value="I Agree" />
<input type="checkbox" name="os2" value="yes" />
paypal does not offer a way to enforce this agreement though.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.