Maybe this thread can help: Activate the purchasing services according to the opening hours: morning and afternoon