• Resolved jonlguk

    (@jonlguk)


    Hi I am using Product Delivery Date for WooCommerce – Lite . Its a great plugin, I am trying to disable Sundays in the calendar, I thought this was easy to do. I modified the line:

    jQuery( “#delivery_calender_lite” ).datepicker({

    To:

    jQuery( “#delivery_calender_lite” ).datepicker({

    beforeShowDay: function(date) {
    var day = date.getDay();
    return [(day != 0), ”];
    }

    But when I load the product page, I get a white screen.

    Please can you help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor MoxaJogani

    (@moxajogani)

    Hi,

    Can you please replace the code with the below code and check if it works fine?

    beforeShowDay:function(date) {
         var day = date.getDay();
         if( day != 0 ) {
            return [true];
         } else {
            return [false];
         }
    }

    Here is the screenshot for the patch of code: https://screencast.com/t/19XBaW0c2w8

    Please let me know if you have any queries.

    Regards,
    Moxa Jogani

    I have managed to disable Sunday however would like to disable both Saturday and Sunday, is this possible?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Sunday’ is closed to new replies.