• Resolved daniant88

    (@daniant88)


    Hi there!

    We are having a compatibility issue with yith Booking plugin.

    When a customer purchases a booking product (created with yith plugin) via Revolut (sandbox mode), the checkout process creates the default Woocommerce order but does not create the Booking and no booking emails are sent to the admins or the customers (only the default Woocommerce new order).

    This happens only with Revolut. For all the other payment methods, bookings are generated normally.

    We have contacted the support team of the plugin and they have responded with this:

    “The problem seems to be caused by Revolut plugin which apply some changes during default WooCommerce checkout process.

    At wp-content/plugins/yith-woocommerce-booking.premium/includes/class-yith-wcbk-orders.php we perform this code:

    add_action( ‘woocommerce_checkout_order_processed’, array( $this, ‘check_order_for_booking’ ), 999, 2 );

    When the order is placed by Revolut the method attached default WooCommerce hook is not triggered.”

    Can you help? Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter daniant88

    (@daniant88)

    Hi there, any help with my issue?

    Thanks.

    Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hi @daniant88,

    Thank you contacting with us! Please accept our apologies for the late reply.

    Here it looks like there is a conflict about the usage of the hook (woocommerce_checkout_order_processed) becouse Revolut payment plugin is also using the same hook.

    From the above explanation:

    At wp-content/plugins/yith-woocommerce-booking.premium/includes/class-yith-wcbk-orders.php we perform this code:

    add_action( ‘woocommerce_checkout_order_processed’, array( $this, ‘check_order_for_booking’ ), 999, 2 );

    It looks this plugin uses a very low priority for the hook. If you can decrease the priority on this line from 999 to 299 (or lower) then it should be compatible. Revolut payment plugin using this hook with priority 300 and this meant to be the last step of the order process.

    Thread Starter daniant88

    (@daniant88)

    This works! Thanks a lot! You can mark this thread as closed!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Compatibility issue with Yith Booking’ is closed to new replies.