Yes it was another snippet causing the problem. Thanks.
Okay so I understand not to enable stock management in woocommerce. However I still don’t know how to setup your system to ensure that items with a fixed quantity cannot be double booked for the same dates. In the Product Date – Booking Product section I have an item set with a Fixed unit = 1, which I thought would prevent the item from being double booked. But I can still book that item for a specific date and then book it again for the same date. Is there some other setting I need to make to prevent the ability to make double bookings?