How to get multiple checkboxes in one meta field

I ended up using Advanced Custom Fields Plugin with get_field( “facilities” ) in my template.

I created a Field Group and added facilities as checkboxes. Much faster than checking my code. I would’ve liked to add the checkboxes straight into WooCommerce but this was a time saver and no more time is needed to fix the original code.