Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Robert DeVore

    (@deviodigital)

    Thanks for the compliment, I’m happy you like the plugin ??

    On the “Edit Order” screen (the first screen), after you select the driver in the metabox, have you also updated the order status to “Driver Assigned”?

    On the second screen (the one showing all WooCommerce orders), there’s code that automatically changes the order status when you change the selected driver.

    However, that auto-changing doesn’t happen on the main “Edit Order” screen. I’ll look into this for a future release.

    And for the redirect, do you mean when the driver logs in? Instead of redirecting them to the driver dashboard page, have it go to the main my-account page?

    If so, you can add the following code to your theme’s functions.php file and change the YOUR_URL_HERE portion to your website’s my-account URL (the full URL)

    https://gist.github.com/robertdevore/bc1a1abaca7135a1a08b701f93596139

    Any other questions, let me know. Thanks!

    Thread Starter abdull85

    (@abdull85)

    yes that is what i do for first one i assign driver then update the order,, but the “out for delivery” does not appear. with the auto option seems everything working fine

    https://gist.github.com/robertdevore/bc1a1abaca7135a1a08b701f93596139
    I tried that on function.php it did not work with changing the full url

    Thread Starter abdull85

    (@abdull85)

    function acme_login_redirect( $link ) {
    // Change the value to your full my-account URL (https://etc)
    $link = ‘https://akleel.com/my-account/driver-dashboard/’;

    return $link;
    }
    add_filter( ‘ddwc_driver_dashboard_login_redirect’, ‘acme_login_redirect’ );

    for some reason the url is not working here but thats what it looks like

    • This reply was modified 4 years, 11 months ago by abdull85.
    Plugin Author Robert DeVore

    (@deviodigital)

    It looks like after the URL you have ;; but it should be ‘;

    Let me know if that fixes it. Thanks!

    Thread Starter abdull85

    (@abdull85)

    it is the way you wrote it but when i past it here it doesnt look the same

    $link = ‘https://akleel.com/my-account/driver-dashboard/‘;

    it does not work :

    • This reply was modified 4 years, 11 months ago by abdull85.
    • This reply was modified 4 years, 11 months ago by abdull85.
    Thread Starter abdull85

    (@abdull85)

    any idea why it is not working ?

    Plugin Author Robert DeVore

    (@deviodigital)

    I cannot say for sure without seeing the code along with the theme/plugins you’re using on your site and testing it myself.

    However, I can verify that I’ve tested this code snippet on two separate installs and it works correctly.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘issue and request’ is closed to new replies.