Cart: disable/enable add-to-cart button even with seating active (#3297)

This commit is contained in:
Richard Schreiber
2023-05-09 18:15:47 +02:00
committed by GitHub
parent 9afaa677c4
commit 232366a639

View File

@@ -421,7 +421,7 @@ $(function () {
}
});
}
if (!is_enabled && !$(".has-seating").length) {
if (!is_enabled && (!$(".has-seating").length || $("#seating-dummy-item-count").length)) {
$("#btn-add-to-cart").prop("disabled", !is_enabled).popover({
'content': function () { return gettext("Please enter a quantity for one of the ticket types.") },
'placement': 'top',