• Hi, I have an event with 5 tours. I created 1 product in Woocommerce and 1 item in booking. The event has slots of 1 hour and the total capacity per hour (for the 5 tours) is 100 persons. I created 5 variants of the product, one per tour.
    The counter seems to be set on each varinat instead of on the product. So each variant can have 100 persons per slot but I want the product to have a maximum of 100 persons…
    How can I achieve this? Has someone an idea?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m trying to resolve this too, have you had any luck.

    I’m going to start trying to interupt the code, but if you have had any luck I’d like to here them.

    Thread Starter patondeleir

    (@patondeleir)

    I got it working (debugging in Visual Studio Code) but I don’t remember where exactly I modified the code ?? and I didn’t write any commentlines to indicate that I modified the code…

    The idea is: they get the productId and then check if the parentId of the product exist or is greater then 0 (variant=true). I just replaced the productId with the parentId when it exists. That way the counter works on the product, not on the variants.

    When I find some time I’ll run a code compare to find the differences. Anyway, don’t by the premium version, they never even answered my question. Money trown away.

    Thank you, unfortunately I did buy it ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Max persons per slot’ is closed to new replies.