Return Order Button in Customer dashboard
-
Hello,
i want to know is there any is built in feature in woodmart theme for return order button for customer in customer dashboad or any way you can help in that
thanks
Hello,
Try to add the following PHP code snippet to the child theme functions.php file to do this
add_filter('woocommerce_valid_order_statuses_for_cancel', 'my_cancellable_statuses', 10, 2);
function my_cancellable_statuses($statuses, $order){
return array('pending', 'processing', 'on-hold');
}
Best Regards.