- This topic has 7 replies, 4 voices, and was last updated 7 months, 2 weeks ago by Piran Doctor.
- August 16, 2020 at 6:30 am #992137Deryck BrockhurstParticipant
Hello, my client want to see all the bookings on the dashboard before or without exporting it to CSV file. How can i achieve that?August 17, 2020 at 7:36 am #992357Andre FloresModerator
All the bookings are available under Bookings ->All Bookings tab in the Dashboard – so far this is the only option to view available bookings with all the statuses.
AndreFebruary 7, 2022 at 5:55 am #1256020Piran DoctorParticipant
Hi, as my question is related to this topic, I thought I should put my question here. Is it possible to filter these bookings (on all bookings page), based on user role(say a user belongs to a particular property or place, he will see only his bookings). If we need to custom code it, could you please share which file I need to look into?
PiranFebruary 7, 2022 at 6:22 am #1256038J. DavisKeymaster
Thanks for your question. By default, there is no option to restrict bookings per specific user. We also do not offer customization of this type at the moment.
You may try using third-party plugins or any custom solutions to achieve that.
J. DavisFebruary 7, 2022 at 6:30 am #1256040Piran DoctorParticipant
Hey Davis, thanks for prompt reply.
If I need to custom code it, can you suggest which files I need to check or edit ?
I tried customizing it as per my requirement and added custom code to file (\plugins\motopress-hotel-booking\includes\admin\manage-cpt-pages\booking-manage-cpt-page.php).
End result shows correct behavior, i.e it lists bookings based on user (filtered based on property he belongs to). I could control the custom columns, but not the checkbox column (first column on All Bookings page), it repeats for All bookings . Can you suggest which file I need to touch to control this checkbox iteration?
Hope I’m clear with my explanation.February 11, 2022 at 3:59 pm #1258651J. DavisKeymaster
Thanks for your further question though I’m not sure what exactly checkbox you mean. Are you about ‘Display imported bookings.’ option at Bookings > All Bookings?
J. DavisFebruary 14, 2022 at 5:38 am #1259569Piran DoctorParticipant
Thanks for the reply,
Please check the screenshot attached for the checkbox im talking about:
Here the list is filtered (customized the code to only filter based on property/place) as per the requirement.
I could control the custom columns, but not the checkbox column (first column on All Bookings page), it repeats for All bookings (its marked in red in the screenshot) . Can you suggest which file I need to touch to control this checkbox iteration?February 14, 2022 at 5:47 am #1259582Piran DoctorParticipant
I couldn’t upload the image and edit the post in my earlier post. So sharing a link here again.
- You must be logged in to reply to this topic.