Toggle deliveryDate off in Product/Advanced - Only works with postcode off

You can now switch off the Calendar on a per product basis using the Display Delivery Date toggle. Set this to No, but keep Display Delivery Options on, and you will get all the delivery/collection options at checkout.


It will hardcode a delivery date of 10/10/2050 but if you want to change this, for example, add 3 days onto the date of order (to allow for postage), then add in the following code in the Custom Footer...


<script>

// Variables

var dateHidden = document.querySelector('#date');

var d = new Date();


// Log Date plus 3 days

d.setDate(d.getDate()+3);

var month = d.getMonth()+1;

var day = d.getDate();

var output = ((''+day).length<2 ? '0' : '') + day + '/' + ((''+month).length<2 ? '0' : '') + month + '/' + d.getFullYear();


// Change date value

if (dateHidden.value == '10/10/2050') {

    dateHidden.value = output;

}

</script>



Fix - Blank delivery charge caused by the Update Quantity field button

Tim has rewritten the Updated button on shopping cart so that it doesn't interfere with the submission of the shopping cart page, which allowed you to proceed to Order page 1 without selecting a delivery charge. The update quantity now runs on a ajax call to adjust quantity without affecting anything else.