### [Enabling Quantity Selection in Your Payment Forms](https://wpforms.com/docs/enabling-quantity-selection-in-your-payment-forms/)

**Published:** February 19, 2024
**Author:** David Ozokoye

**Excerpt:** Learn how to allow users buy more than 1 quantity of a product in your payment form.

**Content:**

Would you like to allow your users to choose multiple quantities of a product on your payment form? WPForms allows you to enable quantity support on some payment fields.

This tutorial explains the steps to enable payment quantity in WPForms.

- [Creating a Payment Form](#create)
- [Enabling Quantity for a Form](#enable)
- [Testing Your Form](#testing)
- [Viewing Your Payment](#viewing)

---

Before getting started, make sure [WPForms is installed and activated](https://wpforms.com/docs/install-wpforms-plugin/) on your WordPress site and that you’ve [verified your license](https://wpforms.com/docs/verify-wpforms-license/).

## Creating a Payment Form

To start, you’ll need to [create a new form](https://wpforms.com/docs/creating-first-form/) or edit an existing one to access the form builder. In the form builder, go ahead and add the field(s) you wish to display on your form. For our example, we’ll add the following fields:

- Email
- Single Item or Dropdown Items
- Stripe Credit Card
- Total

To create a payment form, you’ll also need to integrate your site with one of the supported payment gateways. For more details, be sure to see our tutorial on [creating a payment form](https://wpforms.com/docs/how-to-create-a-payment-form-in-wpforms/).

**Note:** To see how quantity selection can be effectively implemented, take a look at our [Sweatshirt Order Form Template](https://wpforms.com/templates/sweatshirt-order-form-template/), which demonstrates multiple product options with quantity selectors.

## Enabling Quantity for a Form

**Note**: Enabling quantity is only supported on the Single Item and Dropdown Items fields.

After creating your payment form, select the Single Item or Dropdown Items field to open its Field Options.

![Select field to open Field Options](https://wpforms.com/wp-content/uploads/2024/02/select-single-item-field.png "Open Field Options Menu")Under the **General** tab, scroll down and toggle the **Enable Quantity** option to the on position.

![Enable product quantity option](https://wpforms.com/wp-content/uploads/2024/02/enable-quantity.png "Enable Product Quantity Option")**Note:** If you’re using any of the following addons: [PayPal Commerce](https://wpforms.com/docs/paypal-commerce-addon/), [PayPal Standard](https://wpforms.com/docs/install-use-paypal-addon-wpforms/), [Square](https://wpforms.com/docs/how-to-install-and-use-the-square-addon-with-wpforms/), [Save and Resume](https://wpforms.com/docs/how-to-install-and-use-the-save-and-resume-addon-with-wpforms/), or [Coupons](https://wpforms.com/docs/coupons-addon/), be sure to update them to the latest version. Otherwise, you won’t be able to enable the quantity option.

After enabling it, you’ll see a dropdown in the preview area next to the payment field. This dropdown will allow users to choose a number representing the quantity they wish to purchase.

![Quantity field dropdown](https://wpforms.com/wp-content/uploads/2024/02/quantity-field-dropdown.png "Quantity Field Dropdown")**Note:** If you’re using the Dropdown Items field, it’ll also look and function the same way.

Below the Enable Quantity toggle, you’ll see the **Range** option. This setting lets you control the minimum and maximum number a user can select for a particular payment item.

![Quantity range](https://wpforms.com/wp-content/uploads/2024/02/quantity-range.png "Quantity Field Minimum and Maximum Range")**Note:** The minimum number you can set is 0. While the maximum number supported is **9999**.

If you’d like to align the quantity dropdown next to the payment field, simply reduce the field size. To do so, right-click on the field, then select **Field Size** and choose the **Small** option.

![Update field size](https://wpforms.com/wp-content/uploads/2024/02/update-field-size.png "Update Field Size")**Note:** If you’re using the [Form Pages](https://wpforms.com/docs/how-to-install-and-use-the-form-pages-addon/), [Conversational Forms](https://wpforms.com/docs/how-to-install-and-use-the-conversational-forms-addon/), or [Lead Forms](https://wpforms.com/docs/lead-forms-addon/) addon, you won’t be able to adjust the size of your form fields.

Reducing the field size will align the quantity dropdown next to the item price.

![Field Next to price](https://wpforms.com/wp-content/uploads/2024/02/quantity-field-next-to-price.png "Aligning Quantity Field Next to Item Price")## Testing Your Form

After customizing your payment form, be sure to save your changes. We also recommend [testing your form](https://wpforms.com/docs/how-to-properly-test-your-wordpress-forms-before-launching-checklist/) to ensure it looks and functions properly.

When you preview your form in the frontend, you’ll be able to choose a quantity from the quantity dropdown.

![Viewing the quantity field](https://wpforms.com/wp-content/uploads/2024/02/quantity-field-frontend.gif "Viewing Quantity Field in Frontend")The quantity dropdown will only show numbers within the range you set during its configuration.

If you’ve enabled order summary in the Total field on your form, users will also see a summary of the items before completing their payment.

![Payment total with summary enabled](https://wpforms.com/wp-content/uploads/2024/02/quantity-order-summary.png "Viewing Total Items Before Making Your Purchase")**Note:** Want to learn how to display an order summary on your payment forms? See our guide on [using the Total field](https://wpforms.com/docs/how-to-require-payment-total-with-a-wordpress-form/) for more details.

## Viewing Your Payment

When viewing payment entries with quantity enabled, it shows the item price and multiplies it by the quantity the user selected.

![Viewing Completed Payments](https://wpforms.com/wp-content/uploads/2024/02/viewing-payments.png "Viewing Completed Payments")This helps you to properly manage and track your sales. To learn more about viewing payments, be sure to check our tutorial on [viewing and managing payments](https://wpforms.com/docs/viewing-and-managing-payments/).

That’s it! Now you know how to allow users to purchase multiple quantities of an item in your payment form.

Next, would you like to offer discounts to users on your WordPress forms? Our [Coupons addon](https://wpforms.com/docs/coupons-addon/) tutorial explains all the steps in detail.

**Categories:** Fields, Payment Forms

---

