Skip to Content Skip to Menu

Opening days and hours

  • activha
  • activha
  • ONLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
10 years 2 weeks ago #252387 by activha
Opening days and hours was created by activha
Hello

I need an advice.
We are trying to set the ability to enter opening days and opening hours for our members.
Which fields could I use for this ?

We need for instance opened lu, mo, tu from 8.00 to 17.00 or opened lu, mo, tu ,th, fri, sa from 8.00 to 12.00 and from 14.00 to 19.00

Is there specific fields for this in CB 2.0 ?

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
10 years 2 weeks ago #252406 by krileon
Replied by krileon on topic Opening days and hours
There's not a specific field for that. Best I can suggest is a couple of datetime fields, but you won't be able to specify a range or anything.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • ONLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
10 years 2 weeks ago #252436 by activha
Replied by activha on topic Opening days and hours
Can I link a datetime field and a day field ?

to set for instance monday 8.00 12.00 14.00 18.00

You should implement such a field it's used in real life ;-)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
10 years 1 week ago - 10 years 1 week ago #252485 by krileon
Replied by krileon on topic Opening days and hours
It's possible to override the format of a date and datetime field, but only for profile view display.

You should implement such a field it's used in real life

A field specifically for your needs is not generic enough for core usage, but maybe we can extend the profile view format to the profile edit format so you'll be able to override what dropdowns are shown for example.

forge.joomlapolis.com/issues/4846

Best I can suggest for now is maybe a series of dropdown select fields. An alternative is a 3rd party extension that lets you set business hours and display them on profile using CB Query Field.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 10 years 1 week ago by krileon.

Please Log in or Create an account to join the conversation.

  • activha
  • activha
  • ONLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
10 years 1 week ago #252489 by activha
Replied by activha on topic Opening days and hours
We will use this to display on profiles but also on other pages such K2 using cb content and substitution.

I am afraid that using a third party extension would add complexity where CB has all the functionality to do it.

This is really a kind of field that would be useful to A LOT of users as opening hours are used widely for lots of situation, mind considering it ? ;-)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
10 years 1 week ago #252493 by krileon
Replied by krileon on topic Opening days and hours

We will use this to display on profiles but also on other pages such K2 using cb content and substitution.

Substitutions will respect formatting perfectly fine. Just don't use [FIELD_NAME] as that's raw display. You need to use [cb:userfield field="FIELD_NAME" /].

This is really a kind of field that would be useful to A LOT of users as opening hours are used widely for lots of situation, mind considering it ?

It should be doable with the profile view format applying to profile edit as well as you'd just have a datetime field formatted as needed. After that a feature to add Range to a date field could be considered. Both implementations being generic to apply to a wide range of usages. A specific field for opening/closing hours is not going to happen though, sorry.

I've added a ticket for date range feature, but as it's a rather major implementation it's set for 2.1.

forge.joomlapolis.com/issues/4847


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum