0.00  View Cart

Support WooCommerce Easy Booking filter delete?

This topic contains 1 reply, has 2 voices, and was last updated by  Ashanna 2 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3142

    thobastian
    Participant

    I have a problem with my plugin Themecomplete extra options:

    Can you check if it’s ok now on your end. The 2.09 version of Easy bookings removed a filter that the plugin was using and the calculation on the frontend was off.

    #3158

    Ashanna
    Plugin's author

    Hello,

    The filter was removed in version 2.0.6, it’s all written in the changelog 🙂

    It was replaced by two filters:

    Two dates price calculation:

    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 ) {
        // Do whatever you want
        return $booking_price;
    }

    And one date price calculation (which should only be used if you have the pricing addon):

    add_filter( 'easy_booking_one_date_price', 'easy_booking_return_base_price', 10, 5 );
     
    function easy_booking_return_base_price( $booking_price, $product, $_product, $data, $price_type ) {
    	// Do whatever you want
        return $booking_price;
    }

    I hope this helps!

    Regards,
    Natasha

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.