1. hopinn
  2. Features Request
  3. Sunday, February 08 2015, 11:12 AM
Hello,

is it possible to add opening hours like you can in FB or Google plus?

I manage an organisation where all members are pubs, hotels, b&b's, .... and I'd like them to adjust their opening hours themselves.

http://www.horecaregiopoperinge.be

marK
admin Accepted Answer
Admin
Hi,
I don't know how to works Facebook opening hours but can manage this with conditions, HTML delimiter type field and Content Plugin

Small example

Create fields to add opening hours
- radio with these options (hidden on profile page)
1|2 openings
2|1 opening
3|open 24 hours

- checkbox with opening days (hidden on profile page)
1|Monday
2|Tuesday
3|Wednesday
.....

- select with opening hours 1 (hidden on profile page)
00:30|00:30
1:00|1:00
1:30|1:30
2:00|2:00
....
24:30|23:30
00:00|00:00

- select with closing hours 1 (hidden on profile page)
00:30|00:30
1:00|1:00
1:30|1:30
2:00|2:00
....
24:30|23:30
00:00|00:00

- select with opening hours 2 (hidden on profile page)
00:30|00:30
1:00|1:00
1:30|1:30
2:00|2:00
....
24:30|23:30
00:00|00:00

- select with closing hours 2 (hidden on profile page)
00:30|00:30
1:00|1:00
1:30|1:30
2:00|2:00
....
24:30|23:30
00:00|00:00

- Delimeter for 2 openings with this description (hidden on edit profile page)
{user opening_days_alias_field} {user opening_hours1_alias_field}-{user closing_hours1_alias_field} {user opening_hours2_alias_field}-{user closing_hours2_alias_field}

- Delimeter for 1 opening with this description (hidden on edit profile page)
{user opening_days_alias_field} {user opening_hours1_alias_field}-{user closing_hours1_alias_field}

- Delimeter for 24 hours opening with this description (hidden on edit profile page)
{user opening_days_alias_field} 24/24h

Now set conditions on type of opening field like these
Condition 1 - if greater than 1 hide "opening hours 2" and "closing hours 2" fields
Condition 2 - if greater than 2 hide "opening hours 1" and "closing hours 1" fields
Condition 3 - if equal to 1 show Delimeter for 2 openings
Condition 4 - if equal to 2 show Delimeter for 1 opening
Condition 5 - if equal to 3 show Delimeter for 24 hours opening

RESULT of conditions
if I choose 1 opening
- Condition 1 hide "opening hours 2" and "closing hours 2" fields so I can choose only "opening hours 1" and "closing hours 1" fields
- Condition 2 is not met so show "opening hours 1" and "closing hours 1" fields
- Condition 3 is not met so hide Delimeter for 2 openings
- Condition 4 is met so show Delimeter for 1 opening
- Condition 5 is not met so hide Delimeter for 24 hours opening
  1. more than a month ago
  2. Features Request
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.