Create a function in PHP to handle open and closing time.
The times are in 24 hours format (23:30:00, 00:00:00, 00:30:00, etc)
**Example of working script needed:**
$nowTime = 18:00:00
$StoreOpenTime = 16:30:00
$StoreCloseTime = 23:30:00
Default_OrderOpenTime = 17:00:00
Default_OrderCloseTime = 23:00:00
$CanOrder = true; //do Some if statement check.
If nowTime is 18:00, Store Open at 16:30 but customers can only make orders after 17:00 then $CanOrder would be true;
Other example: If nowTime is 08:00 and Store Open at 10:00 but OrderOpenTime is 17:00 then $CanOrder would be false;
General Rule: Customer can only place order after 17:00 (Default_OrderOpenTime) but depending on the Store Open Time first.
Any questions? Let me know. thanks.