• Resolved amc11

    (@amc11)


    Hi,

    I have a quick question…

    What is the hook of a order processing email, before it is sent to
    a customer? I need to delay that email so I can get data from other sources.

    Thanks!

    • This topic was modified 4 years, 2 months ago by amc11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    Are you trying to customize the order processing email?

    Here are some useful resources:
    https://www.businessbloomer.com/woocommerce-visual-hook-guide-emails/
    https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/

    I hope this points you in the right direction.

    Thread Starter amc11

    (@amc11)

    Hey!

    No actually I want to make sure the email is delayed/deffered.
    Because, I need to collect pending data from an external source, that isn’t
    available until about a minut or so…

    • This reply was modified 4 years, 2 months ago by amc11.
    • This reply was modified 4 years, 2 months ago by amc11.

    Hi there,

    Programmatically, this involves modifying the hook to:

    1. store the order information in a table
    2. not send the email

    and adding a custom cron job to pick up the information in table (1) above at a later time and include the external source information to then send the email.

    I highly recommend getting a developer to look at the above for you.

    Thread Starter amc11

    (@amc11)

    Hi, thank you!

    We managed to fix this in another way, integrating
    it into a plugin handling the external data source.

    Thanks!

    • This reply was modified 4 years, 2 months ago by amc11.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hook for Processing Order Email’ is closed to new replies.