PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Limit number of products

  1. Hi. I have searced from forums and I have a feeling that this can't be done with GF. But I'm gonna ask anyway.

    So I have different products, in my case products are summer high school courses. I only want to accept first 36 students to different courses. Is there some way to limit number of products (courses) I sell?

    Posted 8 years ago on Monday November 28, 2011 | Permalink
  2. Kenguru
    Member

    Hi,

    am not staff, but I think there is a way:

    Form settings --> limit number of entries.

    And you can also define a message when the limit is reached, f.ex. "Sorry, but the course is already fully booked."

    And you can also schedule the form so that it is active only during the defined period of time.

    Posted 8 years ago on Monday November 28, 2011 | Permalink
  3. Yes I'm aware of those, and I'm definitely going to use schedule method. But limit number on entries means overall sum of entries, which can be like 300 students. My product (course list) looks something like this.

    - english group I
    - english group II
    - english group III
    - math group I
    - math group II
    -history group I
    -history group II

    And I would love to see how I can limit all those different courses individually to 36 students and GF would for example report english group I is full, you can not sign up anymore.

    Of course some courses may end up having 18 students or so.

    Posted 8 years ago on Monday November 28, 2011 | Permalink
  4. Currently this can't be done using built in features. You could do it but you would have to do it as a customization.

    You'd have to write custom code to A) check the existing entries for orders where payment was received and B) most likely use the gform_pre_render hook to change available options.

    It may be a fairly complex customization that requires knowledge of how Gravity Forms stores data and how fields are rendered but it could be doable using hooks.

    Posted 8 years ago on Monday November 28, 2011 | Permalink
  5. Kenguru
    Member

    Well, maybe just do different pages per one course, have some description of the course, material needed etc, and add one form per one course (if there is only about under 10 courses)? I believe it would be the easiest and fastest way.

    Posted 8 years ago on Monday November 28, 2011 | Permalink
  6. Thanks for both. I look into those solutions. I might need some help writing custom code.

    @Kenguru that could work and I give it a try. But in my case some courses are in same time, so it could be confusing if students only see one course at the time. For example there are four courses in 8.15am - 930am, so they can take only one of them.

    Posted 8 years ago on Tuesday November 29, 2011 | Permalink
  7. Is there a new way to solve this thing?

    Posted 8 years ago on Monday May 28, 2012 | Permalink
  8. I'm wondering the same thing now... Is there a way of limiting the quantity of individual products that are available when there are different products?
    The only other way I can think of is to have people select a non-duplicate quantity.
    Have there been any other thoughts on this?
    Thanks

    Posted 7 years ago on Thursday May 9, 2013 | Permalink
  9. David Peralty

    Nothing new on our side currently, sorry. Maybe a community member will have come up with a workaround and see this thread.

    Posted 7 years ago on Thursday May 9, 2013 | Permalink