Hide specific shipping methode depending on day and time of day
To get the current day of week you can use the date(‘w’) function call (complete format description can be found here. The whole condition to exclude the shipping method, say it is saturday and over 11 o’clock, can be written as date(‘w’) == 6 && date(‘H’) > 11 and the whole if block would be … Read more