N
N
natoje-zlo2021-03-23 20:25:03
opencart
natoje-zlo, 2021-03-23 20:25:03

How to send an order letter after a certain time?

How to send an order letter after a certain time? e.g. after placing an order in 20 minutes
only by cron?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Gnevyshev, 2021-03-24
@iResource

Perhaps, through cron - this is not the only, but the most reasonable option.
You can run a cron task at least every minute.
The correct script will not create a large load.
It will look for exactly those orders where the letter has not yet been sent, and more than 20 minutes have passed in time (and less than a day, probably).
If we consider as an alternative - a delay in the script (something like sleep) for 20 minutes - this is not a rational solution at all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question