I would like to ask if there is any code snippet for allowing users to create a note on the booking page only for the listings who is available for direct booking. For instance if the vendor manually accepts booking I don’t want users to request it with a note. Only vendors who is available for direct booking can take notes from the users. Is it possible guys?
Sorry for the delay. Yes, it’s possible but requires custom code, if you’re familiar with coding or have a developer for custom work I can provide some guidance, let me know if it’s ok.
I totally understand that you guys are pretty busy. I use the rentalhive theme. What I want to achieve is booking note only will be available for the vendors who accept direct bookings. Is there any code snippet to provide that?
I’m sorry for the late reply, we had delays in developer-specific issues but it’s ok now. If you’re familiar with PHP or have a developer, please try using the hivepress/v1/forms/booking_update filter hook, this way you can add a custom condition for removing the note field from this form (via the unset function). You can also get the booking object inside this function (via get_model). You can find some similar code snippets here https://gist.github.com/search?q=user%3Ahivepress+hivepress%2Fv1%2Fforms&ref=searchresults