0.00  View Cart

Support WooCommerce Easy Booking [Resolved] WC Easy Booking – 2.2.4 – Update Compatibility

This topic contains 8 replies, has 2 voices, and was last updated by  Ashanna 3 days, 22 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6396

    Alexandre Silva
    Participant

    Hello,

    I use Woocommerce Bookings for some products and this plugin for other.

    After i upgrade to the new version 2.2.4, i canยดt config the bookable product using woocommerce bookings.

    I assume that now this plugin is not being compatible with woocommerce bookings?

    Look forward for your reply.

    Thank you

    Alexandre Silva

    #6397

    Ashanna
    Plugin's author

    Hello,

    I’m surprised because WC Bookings uses its own product type (bookable), right? And Easy Booking only uses simple, variable, grouped or bundled products.

    But it’s possible that there is a conflict somewhere. Unfortunately I don’t have the plugin, and it’s very expensive. To be honest, I didn’t think people could use both plugins at the same time!

    What’s not working exactly? Do you get any error somewhere?

    Then main thing I changed in 2.2.4 is the product meta ‘_booking_option’ changed to ‘_bookable’. It’s a pretty generic term so it’s possible that it’s conflicting. Although I don’t see why WC Bookings would use that as product meta.

    Regards,
    Natasha

    #6398

    Alexandre Silva
    Participant

    Hello,

    Thank you for your feedback.

    I need to use both plugins because i use persons for variations. For activities i use WC Bookings and for Car Rental i use easy bookings by sing night mode ๐Ÿ™‚

     

     

     

    If you want i can send you a copy of the plugin and you can test in your side.

    My website is http://www.azoresontravel.com

    The error is as follow:

    Error Details

    =============

    An error of type E_ERROR was caused in line 2228 of the file /home/azoresontravel/public_html/wp-content/plugins/woocommerce-bookings/includes/data-objects/class-wc-product-booking.php. Error message: Uncaught ArgumentCountError: Too few arguments to function WC_Product_Booking::is_bookable(), 0 passed in /home/azoresontravel/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php on line 29 and exactly 1 expected in /home/azoresontravel/public_html/wp-content/plugins/woocommerce-bookings/includes/data-objects/class-wc-product-booking.php:2228

    Stack trace:

    #0 /home/azoresontravel/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php(29): WC_Product_Booking->is_bookable()

    #1 /home/azoresontravel/public_html/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include(‘/home/azoresont…’)

    #2 /home/azoresontravel/public_html/wp-admin/includes/template.php(1310): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array)

    #3 /home/azoresontravel/public_html/wp-admin/edit-form-advanced.php(642): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))

    #4 /home/azoresontrav

    Look forward for your reply.

    Thank you

    #6399

    Ashanna
    Plugin's author

    If it’s ok with you, you can send me the plugin at contact@easy-booking.me. I won’t keep it after. Thanks a lot.

    It doesn’t seem to be a big issue (I was afraid I’d have to change the product meta again), I can have a look later in the afternoon ๐Ÿ™‚

    #6400

    Alexandre Silva
    Participant

    Hi,

    I will send to you by email. You can keep in order to improve your plugins as i use all your 3 plugins.

    I will wait your feedback about it in the next days as i downgrade the plugin.

    Best regards,

    Alexandre Silva

    #6401

    Ashanna
    Plugin's author

    Nevermind, I found the issue. Stupid function in WooCommerce, calling is_bookable().
    It seems that I have to change product meta again then.

    #6402

    Ashanna
    Plugin's author

    Could you please try this to see if this change is enough:

    • In woocommerce-easy-booking-system/includes/admin/class-wceb-admin-product.php
    • Go to line 51 and change ‘bookable’ by ‘wceb_bookable’. It should look like this:
    $product_type_options['wceb_bookable'] = array(
        'id'            => '_bookable',
        'wrapper_class' => implode( ' ', $show ),
        'label'         => __( 'Bookable', 'woocommerce-easy-booking-system' ),
        'description'   => __( 'Bookable products can be rent or booked on a daily/weekly/custom schedule.', 'woocommerce-easy-booking-system' ),
        'default'       => $is_bookable === 'yes' ? 'yes' : 'no'
    );

    #6405

    Alexandre Silva
    Participant

    Hello,

    Thank you very much.

    Is now working and i can now change the product configuration when using woocommerce Bookings.

    Best regards,

    Alexandre Silva

    #6408

    Ashanna
    Plugin's author

    Great. I’ll keep that change in the next update so you don’t need to do anything ๐Ÿ™‚

    Thanks for reporting the issue.

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

The topic ‘[Resolved] WC Easy Booking – 2.2.4 – Update Compatibility’ is closed to new replies.

Want to know what's next with Easy Booking? Check the roadmap!