Dokan Customer Order Cancel Problem
-
Hello there,
I want to allow the customer to cancel the order during the order processing phase. Therefore, the customer can cancel the order if the order status is “processing”.
I am using the woocommerce_valid_order_statuses_for_cancel filter to achieve this. But there is a problem for Dokan.
If the customer buys products from more than one seller, his entire order is cancelled. How can I solve this problem?As you know, if a customer purchases products from more than one vendor, a new order type is created: Sub-Order.
So the button should appear here.
How can I define this bot in the sub-orders section of My Account>My Orders> (Any Order)> View>Thank you for your interest.
add_filter( 'woocommerce_valid_order_statuses_for_cancel', 'custom_valid_order_statuses_for_cancel', 10, 1 ); function custom_valid_order_statuses_for_cancel( $statuses ){ // Set HERE the order statuses where you want the cancel button to appear return array_merge( $statuses, array('processing')); }
- The topic ‘Dokan Customer Order Cancel Problem’ is closed to new replies.