- changed status to resolved
Capacity in Availability rules is ignored
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)
-
-
reporter If there is only 1 custom availability per day, then it works ok, but as soon as you add more, then capacity is not taken into account anymore. To reproduce do it like in the link: https://bizzthemes.com/forums/topic/custom-capacity-is-ignored/
-
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?
-
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.
-
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.
-
reporter Yes, this is the case. If custom capacity is higher or the same as product capacity, then it doesn't work.
-
Ok, update 3.1 will be released today and this fix will be included.
- Log in to comment
Fixed with 3.0.9