I am trying to disable the date range on the booking form for one of my listing categories.
I wrote the following code and it works without the if condition, with the if condition, as it is below, it doesn’t work at all.
Any ideas how to modify that to unset only for the ‘custom_category’?
Thank you in advance to anyone that can help out.
Sorry, there’s no simple code snippet for this, it would require a custom implementation. If customizations beyond the available features are required for your site, please consider hiring someone for custom work: https://fvrr.co/32e7LvY
As a workaround, you can limit booking categories using this doc: How to restrict booking to specific listing categories - HivePress Help Center. After that, all categories that are not added to the booking categories will be sold through the Marketplace, and the date will disappear accordingly. As for the guests function, you can use the quantity function for Marketplace, you can enable it in HivePress > Listings.