Home Forums WoodMart support forum Return Order Button in Customer dashboard

Return Order Button in Customer dashboard

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #503429

    arpansahdev1
    Participant

    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

    #503568

    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.

Viewing 2 posts - 1 through 2 (of 2 total)