• Resolved kwellmann

    (@kwellmann)


    add_filter( 'woocommerce_payment_complete_order_status', function() {
      return 'completed';
    }, 10, 2 );

    I’m basically using this function (simplyfied) to autocomplete orders which were payed with payment providers like Sofort and GiroSolutions so the status doesn’t stick to processing. But using this hook doesn’t work. The order gets set to ‘completed’ but no emails (neither to the admin nor to the customer) are sent.

    If I remove the hook the order gets set to ‘processing’ and all emails get sent correctly.

    What am I doing wrong here?

    https://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Autocompletes orders: No emails sent’ is closed to new replies.