How to block all Sundays and specific dates on Date reservation widget?

  • Profile Image
    ipunt
    Asked on July 28, 2017 at 01:07 PM

    The date reservation works but now I need to block all Sundays and specific dates.

    How would I do that?

  • Profile Image
    Kiran
    Answered on July 28, 2017 at 01:09 PM

    Unfortunately, there is no direct feature to block specific dates with the Date reservation widget. However, you may try injecting CSS code to the widget to block the dates.

    For blocking Sundays, you may inject the following CSS code to Custom CSS section of the widget.

    td:nth-child(7) {

    cursor: default!important;

    pointer-events: none;    

    opacity: .35;

    background-image: none;

    }

    I am checking on the code and instructions to block specific dates on the calender. Once I have any information in this regard, I'll post it here.

  • Profile Image
    ipunt
    Answered on July 28, 2017 at 06:49 PM

    Hello Kiran,

     

    Thank you for your swift answer but it doesn't seem to work. Sundays remains selectable and not graded out.

     

    Also all the help with blocking certain dates would be very helpful.

     

    Regards,

     

    Ivo

  • Profile Image
    ipunt
    Answered on July 28, 2017 at 07:17 PM

    The date reservation widget does not allow multiple entries on same date. This is not what I want.

     

    I just need an inline calendar with possible blocked dates.

     

    Any suggestions?

     

    I tried the date picker which has these options but it won't show INLINE. Unless I override this with CSS. But then again it will not hide again when a date is selected.

  • Profile Image
    Kiran
    Answered on July 29, 2017 at 01:16 AM

    Sundays remain selectable and not graded out.

    It is required to add the CSS code to the Custom CSS section of the widget. 

    After adding the code to the widget, it should be displayed as shown in the screenshot below:

    The date reservation widget does not allow multiple entries on the same date.

    Yes. Unfortunately, the date reservation widget doesn't allow the same date multiple times.

    I just need an inline calendar with possible blocked dates.

    Since we have the other thread open on this issue, we'll discuss this on that thread shortly.

    Thanks!

     

     

  • Profile Image
    ipunt
    Answered on July 29, 2017 at 05:19 AM

    Thank you for your answer. 

     

    Any ideas how to bypass the one-time-only entry?

  • Profile Image
    Mike_G
    Answered on July 29, 2017 at 09:43 AM

    I would like to apologize for any inconvenience, unfortunately, the Date Reservation widget is not designed to allow multiple selections in a single day.