• Resolved ehmarketing

    (@ehmarketing)


    Hi there,

    I need to remove some of the Order Actions (Resend New Order Notification / Regenerate Download Permission). Could anyone advise how to do this?

    Also, what is the difference between ‘Email invoice / order details to customer’ and ‘Email Invoice’? Having tried both the resulting email seemed identical.

    Also, is there a way to create a custom option that could automatically print an Invoice and Packing List on one click?

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @ehmarketing!

    I need to remove some of the Order Actions (Resend New Order Notification / Regenerate Download Permission). Could anyone advise how to do this?

    You can do this with the following code snippet:

    add_filter( 'woocommerce_order_actions', function ( $actions ) {
    	
        	// Unset whatever actions you don't need available in the
        	// WooCommerce order edit screen.
    	unset( $actions['send_order_details_admin'] );
    	unset( $actions['send_order_details'] );
    	unset( $actions['regenerate_download_permissions'] );
    	
    	return $actions;
    }, 20 );

    You can add the code to your site following the steps here:

    https://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/

    Also, what is the difference between ‘Email invoice / order details to customer’ and ‘Email Invoice’?

    I don’t see a separate action for “Email invoice” in the core. Is that perhaps added with another plugin?

    Also, is there a way to create a custom option that could automatically print an Invoice and Packing List on one click?

    You could use something like https://woocommerce.com/products/print-invoices-packing-lists/

    Cheers!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy!

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order Actions – how to edit?’ is closed to new replies.