To do this (following example is for 4 working days ahead), go to Design / Library / Layouts / Datepicker / Datepicker Setup and look for the line (about line 73):
Code: Select all
minDate: $(this).attr('sdate'),
Code: Select all
minDate: $(this).attr('sdate') - 0 + [0,0,2,2,2,2,1][new Date().getDay()],
E.g. for 4 working days ahead:
Orders placed on a Sunday or Monday can be delivered within the same week so no offset is required.
Orders placed on a Tuesday through Friday need a 2 day offset because of the full weekend.
Orders placed on a Saturday need a 1 day offset because of the Sunday.
Note that this doesn't take account of national or other holidays. Only weekdays and weekends.