Support » Plugin: Delivery Drivers for WooCommerce » Redirect after order change status

  • hello, guys

    I installed your module, but I realised that there is a problem with redirect after order status change. For example, when driver changes order status to “out for delivery” he is redirected to my-account url, I checked difference code from installed plugin and github release 2.9, there’s no difference at “redirect bug” commit. What’s wrong? Could you help please?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Devio Digital

    (@deviodigital)

    What is your permalink structure? It may be an issue with the driver dashboard URL link when permalinks are the default option.

    Knowing your permalink structure will help me better assess the problem and find a solution for you if one is available.

    Thanks!

    Hello Devio, I’m seeing the same thing.

    My permalink structure is set to Post Name.

    I was going to just change the link myself but after looking at the code in: deliver-drivers-for-woocommerce/admin/ddwc-functions.php lines 27/28:
    // Redirect URL.
    $redirect_url = apply_filters( ‘ddwc_driver_dashboard_change_statuses_redirect_url’, get_option( ‘woocommerce_myaccount_page_id’ ) . ‘driver-dashboard/?orderid=’ . $order_id );

    I see that it appears to be set up to link back to the driver dashboard and the specific order, however it is instead linking back to the default /myaccount page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.