1. Home
  2. Knowledge Base
  3. Bookings for WooCommerce
  4. Advanced
  5. Allow zero cost bookings
  1. Home
  2. Knowledge Base
  3. Bookings for WooCommerce
  4. Allow zero cost bookings

Allow zero cost bookings

By default, Bookings for WooCommerce requires you to enter a cost for the booking. However, you can disable this and allow free bookings by adding this snippet to your functions.php or code snippets file:

<?php
// Allow zero cost bookings
add_filter( 'bfwc_allow_zero_cost_bookings', '__return_true' );
view raw bfwc-allow-zero.php hosted with ❤ by GitHub

Was this article helpful?

Related Articles