-
AuthorPosts
-
March 20, 2018 at 7:42 pm #930082
Hi there,
I would like to prevent guests from booking when the restaurant is closed.
It is only open 5 days a week. Is it possible to program the form in this way ?
Thanks for your answer
Best
LexMarch 21, 2018 at 1:47 pm #930574Hey Lexa_Dryke,
Can you try adding this css code in Quick CSS (located in Enfold > General Styling):
#top .ui-datepicker-calendar tr td.ui-datepicker-week-end { pointer-events: none; } #top .ui-datepicker-calendar tr td.ui-datepicker-week-end a { background-color: lightgray; color: darkgray; }Hope it helps :)
Best regards,
NikkoMarch 21, 2018 at 4:08 pm #930641Hi Nikko,
Thanks for your answer.
I added the css but I still can choose a Sunday or a Monday with the date picker.
I would like to avoid that.Best
Lex
March 22, 2018 at 7:26 am #931079Hi Lex,
Could you post a link to the page in question so that we can take a closer look please?
Best regards,
RikardMarch 22, 2018 at 8:43 am #931096Hi Rikard,
Sure. Here, the page : https://le-resto.fr/reservation/
Best
LexMarch 22, 2018 at 4:16 pm #931417Hi,
I have checked your site and I don’t see the css code being reflected when checking with a web inspector, can you try to flush out the cache if you have a caching plugin, if that doesn’t work, please give us temporary admin access, so we can check further.
Best regards,
NikkoMarch 22, 2018 at 4:27 pm #931423Hi Nikko,
I flushed out the cache and the css is working. My mistake. Sorry.
Nevertheless, I would like to block Sunday and Monday reservation. Not Saturday.
Do you have a way to do that ?
Best
LexMarch 22, 2018 at 4:59 pm #931446Hi,
Glad to hear that it’s working, please remove the code I gave and replace it with this one:
#top .ui-datepicker-calendar tr td:nth-child(1), #top .ui-datepicker-calendar tr td:nth-child(7) { pointer-events: none; } #top .ui-datepicker-calendar tr td:nth-child(1) a, #top .ui-datepicker-calendar tr td:nth-child(7) a { background-color: lightgray; color: darkgray; }Hope it helps :)
Best regards,
NikkoMarch 22, 2018 at 6:08 pm #931507It works perfectly. Thank you !
Enfold, best template ever / Kriesi, best team !March 22, 2018 at 6:32 pm #931539Hi,
I’m glad Nikko was able to help you. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Date picker Restaurant Reservation Form / ENFOLD’ is closed to new replies.
