Hi,
I see two ways to do it:
- in the System>Emails menu, you can edit the "order status notification" email which is sent to the customer when an order is confirmed. And in it, you can use the PHP sleep function to stop the processing of the page for a while (
www.php.net/manual/en/function.sleep.php
).
So technically, it is possible.
However, there are several limitations to that:
1. you will hit the "max execution time" limit of your php.ini (which is 60 seconds by default).
2. the page which will send the email will be postponed too so the user will see the end page take a lot of time to display.
- An alternative would be to create an extra order status (via the System>Order statuses) and use that order status in the "collect on develiery" payment method setting and turn off the user notification there. Then, in System>Mass actions, you could create a mass action with a trigger "every hour" with a filter on the order_status column being equal to that new order status and an action "change the order status" to "confirmed" with the user notification checkbox checked. You also need to make sure that your cron task is setup:
www.hikashop.com/support/documentation/5...ashop-cron-task.html
That way, the user won't be notified directly. And every hour, the mass action will check the orders in that order status and automatically change the order status of these orders to "confirmed" and send the email to the user.
Alternatively, if you have control on the email sending server, you could configure a rule to delay the sending of such emails.