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.
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.
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.