Skip to content

Commit

Permalink
Send order paid mail on pending to completed status transition (e.g. …
Browse files Browse the repository at this point in the history
…virtual items that do not need additional processing).
  • Loading branch information
dennisnissle committed Sep 10, 2024
1 parent e469398 commit f1b87bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct() {

// Triggers for this email
add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 30 );
add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'trigger' ), 30 );
add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 30 );

$this->placeholders = array(
Expand Down Expand Up @@ -84,7 +85,6 @@ public function trigger( $order_id ) {
$this->helper->setup_email_locale();

if ( $this->is_enabled() && $this->get_recipient() ) {

// Make sure gateways do not insert data here
remove_all_actions( 'woocommerce_email_before_order_table' );

Expand Down

0 comments on commit f1b87bf

Please sign in to comment.