Product List shows error: Selected product quantity cannot be less than 1.

  • olliadocuments
    Asked on April 30, 2024 at 11:53 AM

    Hello,

    Without doing any changes to our form, there is now a message that prevent clients from ordering online.

    "selected product cannot be less than 1" when in fact, it can as customers can choose any flavours or not.

    Could you please help fix this error?

    Thank you,

    David

    Jotform Thread 14405823 Screenshot
  • Sidharth JotForm Support
    Replied on April 30, 2024 at 12:45 PM

    Hi David,

    Thanks for reaching out to Jotform Support. After reviewing your form, I noticed that you have included sub-products from the product options, but the main product is set up to be selected by default. This causes an error to occur when you try to make any changes to the product selection since the product quantity cannot be left blank or set to zero. To fix this issue, you need to remove any products that are currently selected by default from the payment element. Let me show you how:

    1. In the Form Builder, click on the Product List element, and then click on the Shopping Basket icon.
    2. Select the product and then click on the Edit icon.
    3. In the Basic tab, toggle the Selected by Default button to No position.
    4. Finally, click on the Save button. Product List shows error: Selected product quantity cannot be less than 1 Screenshot 40
    5. Do this for each product that you have selected as default.

    If you want to show the sub-products to the user by default so that they can select from them, you can add the CSS code given below. Let me show you how:

    1. In Form Builder, click on the Paint Roller icon at the top right corner.
    2. Click on the Styles tab.
    3. Scroll down to the Inject Custom CSS section, and paste the CSS code given below:
    /*Show the sub-products by default*/
    .form-product-child-table { 
     display: block !important;
    }

    Product List shows error: Selected product quantity cannot be less than 1 Screenshot 51

    That's it. Now, when any sub-product is selected, the main product will also be selected. Check out the screenshot below to see the result:

    Product List shows error: Selected product quantity cannot be less than 1 Screenshot 62

    Give it a try, and let me know if there's anything else I can help you with.

 
Your Answer