Answer the question
In order to leave comments, you need to log in
Sending messages based on order time?
In general, the task is that, depending on the time and day, a person needs to send 1 out of 3 possible messages.
Before lunch (1st option) • Afternoon (2nd option) • At the weekend (3rd option)
How can you implement this method of sending a message after paying for the order?
Answer the question
In order to leave comments, you need to log in
Make a table,
id | message text | binding to order id | time of the planned dispatch | final dispatch time | send status | other data to send
put on a cron script that will check
the status of the send - not equal to sent
time of the planned send has already come.
You run this script every 1 minute, and it slowly makes a mailing list.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question