• Resolved wweaver

    (@wweaver)


    A customer entered his CVC code wrong and the order failed. He redid the checkout/purchase and the order processed that time but the new order email did not get sent to the admin. Anyone else having this issue and have a solution?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wweaver,

    The Braintree plugin does not control the triggering of the admin order email directly.

    What happens is when the order is paid for, the plugin calls the order complete method which triggers lots of functionality like emails, stock, etc.

    I’ll take a look at the Woocommerce code and see if the admin order email is dependent on a status change. That may give a clue as to why you didn’t receive the admin order email.

    Kind regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wweaver

    I reviewed your site and I noticed you have PayPal enabled but haven’t linked your PayPal account to Braintree yet.

    To link your PayPal account just follow these directions:

    https://docs.paymentplugins.com/wc-braintree/config/#/braintree_paypal

    Kind regards,

    Thread Starter wweaver

    (@wweaver)

    Thank you, but the site owner decided to not enable Paypal at this time.
    It has been disabled.
    Regarding the issue we were discussing, what we are looking at is payment failing due to information mismatch and the customer then providing the correct information.

    When the order moves from failed to processing no new order admin notification is triggered. Everything is pointing back to a hook being missed. Do you see the same thing?

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @wweaver,

    If you look in woocommerce/includes/emails/class-wc-email-new-order.php there are the following hooks that are initiated.

    add_action( 'woocommerce_order_status_pending_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_pending_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_pending_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_failed_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_failed_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_failed_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_cancelled_to_processing_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_cancelled_to_completed_notification', array( $this, 'trigger' ), 10, 2 );
    			add_action( 'woocommerce_order_status_cancelled_to_on-hold_notification', array( $this, 'trigger' ), 10, 2 );
    

    When the order status goes from failed to processing or failed to completed the email should go out to the admin. The Braintree plugin correctly updates the status from cancelled to processing/completed. It sounds like you either have a 3rd party plugin that’s unhooking this email or preventing it from going out.

    Kind Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Failed order at first then redone successful no New Order email is sent to admin’ is closed to new replies.