• Resolved jazzu

    (@jazzu)


    Hello!

    I just want to replace the “Order on hold” email that’s being sent to the customer with a “Completed order” email.

    I have the email templates in my child theme, so I’m just wondering what should I add to the code, or is there another way?

    Kind regards

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    You can disable certain email events, as explained in this documentation:
    https://woocommerce.com/document/unhookremove-woocommerce-emails/

    And you can trigger the complete order email at the point that you want.
    You can check this article for reference.

    Of course, this will need customization. Since this is a development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    We also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    We recommend as well:
    * WooCommerce Facebook group.

    * The #developers channel of the WooCommerce Community Slack.

    I hope this leads you in the right direction.

    Thread Starter jazzu

    (@jazzu)

    Hi @ihereira !

    Sorry, I just noticed that I left out something. I don’t want to replace the email in general. I just want to replace it when a customer buys a product with a credit card, because there’s no point of the order being on hold, if they use a credit card and the payment is instant. I don’t want to manually complete every order, when they should be completed when they use the credit card..

    I wrote a line in class-wc-email-customer-completed-order.php some time ago that disables BACS. Isn’t there a way to just disable the email if the selected payment is bankart credit card?

    @jazzu

    There’s no default way to do this so a custom development path is a way to go. Kindly follow the channels recommended by my colleague above

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replace Order on hold when paying with a credit card with Order Completed email’ is closed to new replies.