• Resolved Chris

    (@seepops)


    Hi Yoan,

    Having a problem with the Auto Refund function for a booking with WooCommerce. Here’s how to replicate the issue:

    1. In Bookings, head to a booking to refund and select it.
    2. Click on the refund icon button.
    3. In the dialog, select “Auto Refund” and click Refund.

    https://snipboard.io/lGsWYN.jpg

    Dialog should disappear and refund go through but the “Loading” icon appears and the dialog remains on screen. If you then head to the WooCommerce order it has recorded a refund but for £0.00.

    https://snipboard.io/HYl91t.jpg

    WordPress v6.0
    WooCommerce v6.6.0
    Booking Activities v1.14.2
    Tested with only essential plugins and no conflict discovered.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author yoancutillas

    (@yoancutillas)

    Hello Chris,
    Thank you for your report, I could reproduce the issue and fix it.
    The fix will be included in the next release.

    wp-content\plugins\booking-activities\controller\controller-woocommerce-bookings.php line 543
    replace
    $user_id = $order->get_customer_id();
    with

    if( ! is_a( $order, 'WC_Order' ) ) { return; }	
    $user_id = $order->get_customer_id();
    Plugin Author yoancutillas

    (@yoancutillas)

    Released in 1.14.3

    Thread Starter Chris

    (@seepops)

    Thanks Yoan! Tested and works perfectly. Great work!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Auto refund not working’ is closed to new replies.