how to limit number of products bought

  • Profile Image
    Asked on February 22, 2016 at 08:49 AM

    Hi, is there a way to limit the number of products bought to 12 for each class?

  • Profile Image
    Answered on February 22, 2016 at 10:50 AM

    Unfortunately, it is not possible to add a quantity limit on the payment tool wizard, however, you can use our widgets to do this.

    Here's an example form: 

    Here's how I did mine:

    1. First, I'll add a "Ticket Purchases" widget for each product separately. 

    2. Now this widget cannot hold a numeric value, like a price. So we will use a text box to where we will output the price of that product when it is selected. Repeat steps 1 and 2 for the other products.

    3. I will then use conditional logic to assign price values on each widget product.


    This is how product 1 is setup specifically:

    IF widget for "Product 1" is filled out, then output "60" on the text box "Product 1 Value".


    Now repeat the same steps on how to create the condition for the other two products.


    4. Now we want to sum up all the text boxes so that we can get a total price. We will use the form calculation widget for this.

    Here's how my form calculation widget is setup, I'll fetch all the text box field for the product values and sum it up. 


    5. We now have a product with quantity limits on it, but how do we pass it on our payment tool? This is possible by following this guide: 

    You can clone my form to see how it is actually setup, here's a guide on how to clone it:


    If you don't want to show the text box with price values, you can easily hide them by right clicking on the field and select "Hide".


    Let us know if you need more assistance on this.

  • Profile Image
    Answered on February 22, 2016 at 11:21 AM

    Great, thanks very much.

    However, when you click through to Paypal it just says Booking. It does not specify which booking so how will she know which class has been bought?

    Thank you.

  • Profile Image
    Answered on February 22, 2016 at 12:36 PM

    No. Since the products are managed using separate widgets and calculated to a total price, the only final price shall be sent to PayPal. However, the class information is available in the submission data and you may include it in the auto-responder sent to the user. 

    Hope this information helps! 

  • Profile Image
    Answered on February 22, 2016 at 01:01 PM

    OK thank you. very helpful.