Has anyone managed to fix the drop down date prompt at product level to be set to a specific date (tomorrow, today + 1 week etc).
v9.0.2
v9.0.2
<script type="text/javascript"> <!-- var myDate=new Date(); if ( myDate.getHours() < 13 ) // less than 1pm { var daystodeliver = [5,7,6,6,6,6,6][myDate.getDay()]; } else { var daystodeliver = [5,7,7,7,7,7,6][myDate.getDay()]; } myDate.setDate(myDate.getDate()+daystodeliver); document.write(['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][myDate.getDay()]); var dayofmonth = myDate.getDate(); suffix = ((dayofmonth < 10)||(dayofmonth > 20)) ? ['th','st','nd','rd','th','th','th','th','th','th'][dayofmonth % 10] : 'th'; document.write(' ' + dayofmonth + suffix + ' '); document.write(['Jan','Feb','March','April','May','June','July','Aug','Sept','Oct','Nov','Dec'][myDate.getMonth()]); // --> </script>
Comment