Thanks for the details. If you added a custom attribute it will not be linked to the booking restrictions in any way, it can be used just for editing, displaying, and search purposes. There’s already a built-in Booking Slot Duration field, it’s linked to the booking restrictions and it defines the time slot duration, it’s not possible to use a custom attribute for this. Please let me know what’s the purpose of duplicating the built-in Booking Slot Duration attribute and I’ll suggest a solution or a workaround.
There’s no requirement to set the time slot duration to 10 minutes, you can set it to any duration required for this listing. If the only required change is displaying the time slot duration on the listing page then it may be possible with a code snippet, let me know if this works for you and I’ll share it. Duplicating the slot duration attribute and displaying it will not work because this attribute will not define the actual duration, there’s already a field for this.
Show the duration on the listing and also on the listing overview with a duration icon and
we want to be able to show the time slot for the listing 12-13.00 so that the user is able to choose it and request this.
We added a listing attribute to show the duration with icon but we know there is another built in duration field. So the question is if we can use one of them to achieve both?
So again what we want to show:
Listing duration and then in the drop down time e.g. to say Listing Start 12.00 - Listing End 18.00 , Duration one hour and then there should be availability 12-13.00 , 13-00 -14.00 etc.
Should I send you logins for the WP so that you are able to see how its set up?
Sure, you can send temporary WP access via email support@hivepress.io The 2. is already available, the Booking Slot Duration field defines the slot duration and a list of time shots should be displayed if you select a date, if I understand correctly the only requirement is showing the slot duration in the attributes area, near the slot price?
Hi Ihor,
Many thanks for this Code snippet. Now we have a solution for the Calculation. This works and on the listing details also the duration is show. How can show the duration on the front page? There the duration does not show.
Sorry, there’s no simple code snippet - this requires advanced customizations.
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fwd.cx/hLhc73mQCD9R