Adding options to the Paypal cart forms
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.
Notes:
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.