Support forumCategory: QuestionsGrey-out every day except for 1 day of the week
Felix Caraballo asked 3 weeks ago

Hi, I’m trying to make a booking calendar that only allows visitors to book Thursdays 6pm to midnight. Even if I specified only that schedule to be available in the settings and connections, the calendar won’t grey-out unavailable days and instead tells the visitor “Please select another day” after they already clicked an unavailable day. Instead, I want them to be unable to click unavailable days. This is the page: click here where it says, “Show us what you got!”. Is a dropdown with the calendar. Only Thursdays are supposed to be available to click.

2 Answers
Nikola Loncar Staff answered 3 weeks ago

Hi Felix, looks like some glitch there. For example if you go to the next month and return all other days will be greyed out. Is that what you are looking for?

Best regards,

phelionyx replied 7 days ago

Hi, it has been 2 weeks. Any update?

phelionyx answered 2 weeks ago

Hi Loncar, is me Felix, I originally asked without an account here but now I made one. 
The way they’re being greyed out is not how I mean because they’re still clickable. Note how past days or vacation days are completely unselectable/unclickable. That’s how I want it. I’ve been using EA on sites since April 2018 when I bought the extension Connect, and I don’t remember finding this glitch before then. For example, not that I’m trying to edit the plugin directly but just so that you know what I mean… the bootstrap daypicker’s built-in “daysOfWeekDisabled” is supposed to grey-out weekdays specified as numbers (0,1,2,3,4,5,6) in a way that they can’t be clicked. For example

dateFormat : 'yy-mm-dd',
daysOfWeekDisabled: '0,1,2,3,5,6',

However, the days show grey but still clickable and displays that message “Please select another day”. I’m able to achieve my goal by adding vacation days, but then I need to keep doing it forever instead of just blocking all weekdays except for Thursdays once.

phelionyx replied 2 weeks ago

Also “block_days” shortcode is a user-friendly method that works but then is in a yyyy-mm-dd format and I don’t know how to specify a day of the week and not a specific date.