Tagged: Reservation form
-
AuthorPosts
-
December 1, 2022 at 3:20 pm #1374652
Hello!
We have a Booking page on our client’s website, we added a contact form to allow customers to make a reservation using the default contact form from enfold. Works great, but we need to implement 2 functions:
1- A conditional that allows booking only on the days of the week and hours of operation (so people can only book when the restaurant is actually open)
2- Since it’s a board games bar, a way to display a dropdown list of the games available (it’s the same list of WooCommerce products)I assume coding a conditional for Enfold’s native contact form shall not be that difficult, but we hired a developer to do this with very little success.
Could you please suggest a solution or recommend us a couple of plugins that can achieve this with a styling that does not differ too much to the existing form?
I’ve been reading some suggestions both here and in other forums and it’s really hard to figure out what makes sense for this.Thanks!
December 1, 2022 at 3:30 pm #1374655Sorry, just found this code from Yigit in another Thread. Is it possible to adapt this to block Mondays?
That would already solve half of the problem.beforeShowDay: function(date) {
var day = date.getDay();
function IsChristmas(date) {
var day = date.getDate();
var month = date.getMonth() + 1;
return (day === 26 && month === 12);
}
return [(day != 2 && !IsChristmas(date))];
},Thanks!
December 2, 2022 at 11:44 am #1374757Ok, managed to block Mondays with this one:
/* REMOVE MONDAYS FROM CALENDAR IN BOOKINGS PAGE */
#top .ui-datepicker-calendar tr td:nth-child(1) {
pointer-events: none;
}#top .ui-datepicker-calendar tr td:nth-child(1) a {
background-color: lightgray;
color: darkgray;
}Is there a way to link this to specific opening hours?
Like
Tuesday – 3pm – 10pm
Wednesday – 3pm – 10pm
Thursday – 3pm – 10pm
Friday – 3pm – 11pm
Saturday – 11:30am – 11pm
Sunday – 11:30am – 9pmThanks!
December 4, 2022 at 1:43 am #1374982Hi,
Sorry for the very late reply and Thanks for your patience, do you mean that you would like the datepicker to also choose times of day?
I don’t believe that is possible, I see that you have another dropdown with times and days and I believe that this is your best option.
Unfortunately, I don’t know if there are any plugins that would offer another option, sorry we couldn’t be of more help with this.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.