E
E
eliasj2021-03-16 12:24:48
WordPress
eliasj, 2021-03-16 12:24:48

How to notify a user that they have items left in their cart (woocommerce)?

Hello, I need on the woocommerce website, if a user added a product to the cart, and then left the site, then it is necessary to notify him by mail (e-mail) that there are goods in the cart.
I'm guessing there must be a specific hook that I can hook into to send an email,
but I can't find the information.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yarovikov, 2021-03-16
@eliasj

I think it's better to do this with wp_cron. Create a scheduled event at the time of adding items to the cart. And then, after, say, a day, check - if they are still there, then we execute the event of sending to the mail, if not, then we simply delete the event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question