Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter teowork

    (@teowork)

    I Solved the problem. I was sending $order_id . Yes, It was true for function but trigger wanted $order for other processes.

    Worked do_action:

    
    do_action('woocommerce_order_action_star_cloudprnt_reprint_action', $order);
    

    Thank you for opened my mind

    • This reply was modified 5 years, 10 months ago by teowork.
    Thread Starter teowork

    (@teowork)

    Thank you for your detailed answer. Release plugin is awesome.

    Actually, I tried all alternative method as yours but not working. I created new actions and test trigger by change your code but something wrong. Now, I’m thinking change order status like that hold and again processing 🙂 But it will be bad for completed orders.

    Do you have a suggest for this example URL? I want to use your action with URL like status action.

    
    wp_nonce_url( admin_url( 'admin-ajax.php?action=woocommerce_mark_order_status&status='.$status_slug.'&order_id=' . $order->get_id() ), 'woocommerce-mark-order-status' ),
    • This reply was modified 5 years, 10 months ago by teowork.
Viewing 2 replies - 1 through 2 (of 2 total)