Capacity in Availability rules is ignored

Issue #169 resolved
Valentina R created an issue

If product has capacity 40 (min=1;max=40) and custom availability rules for example capacity 20 for monday, it still allows to book 40 on monday.

https://bizzthemes.com/forums/topic/custom-capacity-is-ignored/

Comments (7)

  1. Željan Topić

    Just tested the same configuration and works without issues. @jstneti Can you reporduce this on your test site with the latest plugin version and I'll look at it?

  2. Valentina R reporter

    While playing with it, I realized that if I set product capacity to 40 and then have one rule for capacity 30 and another rule for capacity 40 it doesn't work. But if I set the second rule to capacity 20 it works as intended.

    Working example: http://fable.valentina-rakar.com/product/no-staff-members/?date=2017-06-26&time=18%3A00 If you just try to change the third availability rule to capacity 40 (same as product capacity), then the capacity in the second rule is ignored.

    Another test produced this: If product capacity is 40 and one custom availability rule is bigger (50), then all rules with lower capacity are ignored. To reproduce just change capacity in the third rule above to 50.

  3. Željan Topić

    I see it only works, when custom capacity in availability rules is lower than product capacity. Will fix this with 3.1. Let me know if this is the case here, all else works without issues.

  4. Valentina R reporter

    Yes, this is the case. If custom capacity is higher or the same as product capacity, then it doesn't work.

  5. Log in to comment