Okay
  Public Ticket #3762040
Send customer email after 7 days without new order
Closed

Comments

  •  3
    Adam McG started the conversation

    Hey again team,

    I'm looking to send customers an email if they have not placed an order within 7 days to remind them to place an order. Given your experience, what is the best way to achieve this? a cron job?

    Thank you!

  •  2,281
    WebWizards replied

    Hi Adam,

    Generally I think it is achievable with a simple code snippet. I found the following code that I believe should work: https://pastecode.io/s/7oy1hrgo

    That can be added to functions.php or any snippets plugin.

     

    I would suggest perhaps to use a mail logging plugin https://wordpress.org/plugins/wp-mail-logging/ so you can keep track of what emails are sent.

     

    Kind regards,

    Stefan