Last week, I wrote about how to create a single item order form, but what if you have more than one item and want to integrate your form with PayPal? Well, today I’m going to show you the most basic way to do this. I’m going to skip all of the steps from my last blog post, so if you haven’t read that one, you should head there now.
First, we’ll build a form with two item fields and two quantity fields.
Next, we’ll go to Settings > Payment Integration > PayPal and choose Multiple Items instead of Single Item from the Item List setting.
Now, we hit the green plus symbol icon to add a second item. You can add as many items as you like this way or hit the red minus symbol icon to delete item fields. You can put an identifying word for your item in the first box (I’m using “T-Shirt” and “Pants” in my example), then choose your item field from your form and each of your quantity fields from the form. (Make sure if your quantity fields have the same name that you choose the correct one from your form. They appear in the drop down menu in the same order as they appear on the form.) Make sure you hit the Save Settings button at the bottom of the payment integration page when your done setting up your Paypal Integration.
Other fields, such as shipping, handling, tax, currency, invoice number, etc. are optional flat-rate values. In a future blog post, I’ll show you how to calculate shipping and tax in hidden fields on your form itself for values that are not flat.
Finally, if we view the form and choose a few items, and then hit submit…
…we’ll see that the form works and shows the items we have chosen.