0.00  View Cart

The calendar doesn’t work.

If the calendar doesn’t show up, there might be a Javascript error. Open your navigator’s console (F12 > Console), and look for any error. Translation files might be missing, use the contact form or the support forum if it is the case.If you are on a multisite and the calendar is not working, make sure to save the plugin settings again to generate the stylesheet corresponding to your site.

How can I remove the price calculation?

To completely remove the price calculation, add this code to your theme’s functions.php:

add_filter( 'easy_booking_two_dates_price', 'easy_booking_return_base_price', 10, 5 );
 
function easy_booking_return_base_price( $booking_price, $product, $_product, $data, $price_type ) {
	
    $prices_include_tax = get_option('woocommerce_prices_include_tax');
    $price = ( $price_type === 'regular_price' ) ? $_product->get_regular_price() : $_product->get_price();
    $price = $prices_include_tax === 'yes' ? $_product->get_price_including_tax( 1, $price ) : $_product->get_price_excluding_tax( 1, $price );
 
    return $price;
}

Is WooCommerce Easy Booking compatible with Networked Sites?

Yes, version 1.5 is now compatible with multisites. You will need to install the plugin on the network, and then activate it on each site.For the addons, you need to enter the license keys on the network.

I can’t make a product not bookable.

Make sure to uncheck the “Make all products bookable?” options on the plugin settings page (Easy Booking > Settings) if you want to have not bookable products.

How to make a product bookable and not bookable at the same time?

You can make a variable product with two variations : one bookable and one as a regular product.

Where are the “Start text”, “End text” and “Information text” options?

These options were removed from the plugin in version 2.0, because it was impossible to make these custom texts translation-ready.

So, how can I change the “Start” and “End” texts?

Add this code to your theme’s functions.php, and customize it as you want:


add_filter( 'easy_booking_start_text', 'wceb_custom_start_text', 10, 2 );

function wceb_custom_start_text( $text, $product = false ) {

    // You have access to the $product variable (not everywhere) in case you want to display a different text for some products
    $text = __( 'Your custom text', 'textdomain' ); // Translation-ready
    return $text;

}

add_filter( 'easy_booking_end_text', 'wceb_custom_end_text', 10, 2 );

function wceb_custom_end_text( $text, $product = false ) {

    // You have access to the $product variable (not everywhere) in case you want to display a different text for some products
    $text = __( 'Your custom text', 'textdomain' ); // Translation-ready
    return $text;

}

And the information text?

To add an information text before the datepicker(s), add this code to your theme’s functions.php:

/**
  *
  * This function will display a different information text whether there is one or two date(s) to select.
  * @param str $text - The information text (empty by default)
  * @param WC_Product or WC_Product_Variation - Product or variation object
  *
  * @return str $text
  *
  **/
add_filter( 'easy_booking_information_text', 'wceb_custom_info_text', 10, 2 );

function wceb_custom_info_text( $text, $product ) {
	
    $date_format = wceb_get_product_booking_dates( $product );

    if ( $date_format === 'one' ) {
        $text = __( 'Select the date you want.', 'easy_booking' );
    } else {
        $text = __( 'Select your arrival date and your departure date.', 'easy_booking' );
    }

    return $text;

}

How can I change the ” / day” and “Select dates” texts?

There are several filters available to customize the price texts. ‘easy_booking_display_price’ and ‘woocommerce_loop_add_to_cart_link’. Please refer to the plugin documentation for more information.

  • Add text after the “/ day”:
add_filter( 'easy_booking_display_price', 'easy_booking_display_custom_price', 10, 1 );

function easy_booking_display_custom_price( $content ) {
    $content .= ' your custom text';
    return $content;
}
  • Change the “/ day”:
add_filter( 'easy_booking_get_price_html', 'easy_booking_custom_price_html', 10, 4 );

function easy_booking_custom_price_html( $price_html, $product, $booking_duration, $custom_duration) {
    $price_html = 'your custom text';
    return $price_html;
}
  • Change the “Select date(s):
add_filter( 'easy_booking_loop_add_to_cart_link', 'easy_booking_loop_add_to_cart_link', 10, 2 );

function easy_booking_loop_add_to_cart_link( $content, $product ) {
    $link    = get_permalink( $product->id );
    $label   = __( 'Your custom text', 'easy_booking' );
    $content = '<a href="' . esc_url( $link ) . '" rel="nofollow" class="button">' . esc_html( $label  ) . '</a>';

    return $content;
}

Can I have hours instead or in additon to dates?

For the moment this is not possible.

Can the dates be selected on the order page and applied to all products in the cart?

No, the dates need to be selected on the product page for each product individually.

The automatic update doesn’t work for the addons

If you have any issue with the updates of the addons, please send a message with your order number and license key to get the latest version.

How can I help the development of this plugin?

Developping and maintaining WordPress plugins take a lot of time, if you want to support the development you can get one or several addons for Easy Booking. Thank you!