• Resolved wbbrito

    (@wbbrito)


    Hi,

    I would like help in three matters:

    1 – How do I limit the choice of order status options that the supplier can choose within each order? I would like him to have the option to just change to “Shipping Order” and “Order Completed”

    2 – In the ordering area, the standard button that appears is the order completed. How do I change the button to “Shipping Order”?

    3 – The default email configuration for a new order for the supplier is every time an order is generated. How do I change or create a new one so that the supplier receives a confirmation email only when the order is approved (Processing status)

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @wbbrito ,

    1. To remove order status for vendors you can use this code in your theme’s functions.php file –

    function remove_dokan_vendor_order_status( $statuses ) ){
        
            if (dokan_is_seller_dashboard() ) {
    
              // Remove the // before the unset to hide that particular order status
                 unset( $statuses['wc-refunded'] );
                 unset( $statuses['wc-processing'] );
                 unset( $statuses['wc-on-hold'] );
                // unset( $statuses['wc-failed'] );
                // unset( $statuses['wc-pending'] );
                // unset( $statuses['wc-completed'] );
                // unset( $statuses['wc-cancelled'] );
            }
            
        }
        return $statuses;
    }
    add_filter( 'wc_order_statuses', 'remove_dokan_vendor_order_status' );

    2. Unfortunately, I did not understand the exact query. Can you please share a screenshot?

    3. Dokan has extended WC_Email class to trigger a new email for vendors. You can see its source code here – https://github.com/weDevsOfficial/dokan/blob/develop/includes/Emails/VendorNewOrder.php
    You can adjust the triggers if you want to control for which order status the emails should be sent in the file. This is a core file so changes will be removed with each plugin update. Make sure to keep backup or use hooks via a child theme. Unfortunately, I do not have a working example to remove the triggers from a child theme.

    Thank you ??

    Thread Starter wbbrito

    (@wbbrito)

    Hello @rur165
    Thanks for the answers

    1 – On this topic I will check if it will work

    2 – I will check if with the answer of the previous answer, this point is already solved.
    I come back to give you news.

    3 – If you can include this in the next update of the plugin, it will be very good, because this way we can choose to activate or not this option.

    Thanks

    Hello @wbbrito ,

    Thanks for your suggestion.

    I will keep this on my suggestion list. You can also request any feature through this link – https://wedevs.com/account/dokan-feature-requests/

    Cheers ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change order status by Vendor’ is closed to new replies.