Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Restrict booking of some accomodations to the backend
- This topic has 2 replies, 2 voices, and was last updated 6 years, 3 months ago by J. Davis.
- AuthorPosts
- September 18, 2018 at 7:12 pm #720943Christer FernstromParticipant
Hello,
In my situation there are rooms (restaurant and fitness center) that should be bookable by the hotel admins (from the backend), but not by guests. I don’t think this is achievable as of today. I know that you can block accomodations, but then they can’t even be booked by admins.On the ROOMS page, I use the mphb_rooms shortcode with parameters so as not to show these rooms, which helps, but the problem reamins that they show up in the search results.
I see two possible solutions: either being able to add parameters to the mphb_search_results shortcode the same way as for the mphb_rooms shortcode (this is the best solution because it can be used by non-developers), or by adding filters within search-results-shortcode.php to make it possible to hide what should be hidden programmatically.
Cheers,
— christerSeptember 19, 2018 at 9:26 am #721067Christer FernstromParticipantAs a quick-fix for this, I used CSS:
To hide the number of matching accomodations (which may be wrong):
div.mphb_sc_search_results-wrapper p.mphb_sc_search_results-info{display:none;}
To hide the display of the accomodation:
div.mphb_sc_search_results-wrapper div.mphb-room-type.post-13752 {display:none;}
(where the post-13752 is the post for the room type to hide)
September 24, 2018 at 1:43 pm #722920J. DavisKeymasterHi Christer,
Thank you for your question. You can try to achieve this by using different user roles and permissions. Thus you may be able to disable visibility of some accommodation types per user group permissions.
best regards,
John - AuthorPosts
- You must be logged in to reply to this topic.