Paypal Options in Website Templates

Adding options to the Paypal cart forms

The information on this page does NOT apply to templates that include Paypal "Type 2" forms. Check the top of your template "help.html" to see if you have "Type 2" Paypal forms. Your template "help.html" will clearly state "Paypal Type 2 Forms" near the top of the page. See the Type 2 Paypal Order Form Setup support page if you do have this note.

With a Paypal cart or Paypal single order forms, you can add one option that affects the price and another option that does not if you would like. Below is the code for this. The code from an LXGuggenheim template is used for this example. If you have another template you may need to change the "button" or "submit" code. This is the last item in each form and can be found just before the </form>

NOTE: In some Allwebco templates an example of options may be already included in your download in either gallery 2 or gallery 3 (FORMgallery2.htm or FORMgallery3.htm).

How this will appear on your page:
The final form we are creating will appear on your page like the samples below. You can use the link below each form to get the code, or you can view the source on this page to copy this code for your page.

Sample #1 (price option):

Get the code for the above form >

Or you can have two selections, a drop and a radio selection as seem below:

Sample #2 (two options):

Red Blue Green

Get the code for the above form >

Or you can have two drop selections as seem below:

Sample #3 (two dropdowns):

Get the code for the above form >

Or you can have one selection that does not affect the price:

Sample #4 (option only):

Get the code for the above form >

You can also add a comments box to the Paypal form for custom notes about an item:

Sample #5 (item notes):

Enter Item Comments:

Get the code for the above form >

Adding a quantity option:
To add a quantity for your Paypal item that will look like the following do the steps below:

When adding an option for quantity be sure your form has the following line included:

<input type="hidden" name="add" value="1">

Add this line if your form does not now have this. Leave this line value at "1".

Check if your form includes a type="hidden" for the "quantity". If it does you can replace that with this code. If you have no "quantity" value add the following. You can select and copy the code on this page to paste into your form area.

<select name="quantity" style="width:40px;font-size:9px;margin-top:4px">
<option value="1" selected>1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="5">6</option>

You can alter the "style" in the above code for your font size and width.

About the code:
For complete details about the code used above and what each item does, you can login to your paypal account and check out the developers area. Or, for a quick look, use the visual link below.

If you are adding a selection that changes the price, then when you receive the order you will only be able to tell what that item is by the price. You can not have an option that changes price and has a variable name associated with it at the same time. To view all the options you can add to a Paypal form, login to your Paypal account and check in the developers area.

Related Topics:
PayPal Form Setup


Allwebco Template Support

Allwebco Website Template Support

Click here to open a new or upgrade to a Paypal merchant account

Website Template Support
Website Template Support