Skip to content

add toggle for the opening status badge - #72

Draft
Piccar wants to merge 1 commit into
Synapsr:mainfrom
Piccar:feature/opening-hours-toggle
Draft

Piccar wants to merge 1 commit into
Synapsr:mainfrom
Piccar:feature/opening-hours-toggle

Conversation

@Piccar

@Piccar Piccar commented Oct 15, 2026

Copy link
Copy Markdown

What

Adds a switch under Online shop > Home page > Page sections that shows or hides the opening status badge ("Open · until 18:00" / "Closed · opens tomorrow at 09:00") in the home page header.

Why

Stores that only deliver or that don't want to expose opening hours on the home page currently can't hide the badge. Related discussion:

How

  • New status entry in StoreHomeSections (default true, so existing stores keep showing the badge)
  • Added to the API schema and to the online store form (default values, validation, save mapping)
  • New switch in the home section settings
  • Home page renders StoreStatusBadge only when sections.status is on
  • Translation keys added to all locale files
  • Updated the existing test for the default sections

Notes

  • The badge on the About page (opening hours card) is unchanged.
  • If both the status badge and the Google rating are hidden, an empty badge container remains in the hero.

…me page

Signed-off-by: Piccar <piccar@users.norply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant