You can add quantity to the products with the Item Quantity field in Paymattic. In this article, you will learn how you can add Item Quantity fields with Paymattic.
- To add Item Quantity, first, you need to create a form. Let’s take a look at how to create a payment form.
- Add general fields as per your necessity.
- Add the Name, Email, or Phone field at the beginning of the form.
- Then, click on Item Quantity from the panel of Form Editor.
Now, change the configuration as per your needs.
The item Quantity field comes with a wide range of configuration options to fine-tune your form settings. Let’s learn about the configuration options below-
Required: The Required option allows you to turn on and off the field to make it mandatory. The choice required option states that the input area must be filled out before the form is submitted.
Default Quantity: The Default Quantity option is for adding the default number of items.
Target Payment Item: To select the product where the quantity will be applied.
Minimum Quantity: This option is for adding the minimum number of items.
Maximum Quantity: This option is for adding the maximum number of items.
Advanced Options #
You can define a custom Admin Label and CSS Class in the Advanced tab of the Donation Progress Item field.
Admin Label: This label is used if the admin wants to see the field’s label from the back-end.
Field Wrapper CSS Class: This is a field used for adding a CSS class for the field wrapper element.
Input Element CSS Class: You can add custom CSS classes to the input field element itself.
Field ID: The Field ID option in the Advanced tab is the CSS class ID for this input field, and it will be used for adding custom CSS to this field.
Conditional render: You can set conditional logic to display the field in the form that will be triggered by specific actions taken on a previous input field. To know more about, Conditional render, check here.
Finally, click on the Update button to save the configuration.
Copy and paste the shortcode of the form on a specific page and you can preview your created form.