diff --git a/packages/Webkul/BookingProduct/src/Resources/views/shop/default/products/view/booking/event.blade.php b/packages/Webkul/BookingProduct/src/Resources/views/shop/default/products/view/booking/event.blade.php index 37a1791f8..2d0e96c0a 100644 --- a/packages/Webkul/BookingProduct/src/Resources/views/shop/default/products/view/booking/event.blade.php +++ b/packages/Webkul/BookingProduct/src/Resources/views/shop/default/products/view/booking/event.blade.php @@ -38,8 +38,8 @@ + :quantity="defaultQty" + :min-quantity="defaultQty"> @@ -61,6 +61,12 @@ return { tickets: @json($bookingSlotHelper->getTickets($bookingProduct)), } + }, + + computed: { + defaultQty: function() { + return this.tickets.length > 1 ? 0 : 1; + } } }); diff --git a/packages/Webkul/BookingProduct/src/Resources/views/shop/velocity/products/view/booking/event.blade.php b/packages/Webkul/BookingProduct/src/Resources/views/shop/velocity/products/view/booking/event.blade.php index 37a1791f8..2d0e96c0a 100644 --- a/packages/Webkul/BookingProduct/src/Resources/views/shop/velocity/products/view/booking/event.blade.php +++ b/packages/Webkul/BookingProduct/src/Resources/views/shop/velocity/products/view/booking/event.blade.php @@ -38,8 +38,8 @@ + :quantity="defaultQty" + :min-quantity="defaultQty"> @@ -61,6 +61,12 @@ return { tickets: @json($bookingSlotHelper->getTickets($bookingProduct)), } + }, + + computed: { + defaultQty: function() { + return this.tickets.length > 1 ? 0 : 1; + } } });