@shopbite-de/storefront 1.23.3 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/.env.example +19 -0
  2. package/.github/workflows/build.yaml +1 -1
  3. package/.github/workflows/ci.yaml +6 -3
  4. package/CLAUDE.md +41 -3
  5. package/README.md +139 -40
  6. package/api-gen.config.json +9 -0
  7. package/api-types/storeApiSchema.shopbite.overrides.json +35 -0
  8. package/api-types/storeApiTypes.d.ts +95 -81
  9. package/app/app.vue +37 -53
  10. package/app/assets/css/main.css +20 -4
  11. package/app/components/Address/Fields.vue +2 -21
  12. package/app/components/AnimatedSection.vue +9 -4
  13. package/app/components/BottomNavi.vue +9 -2
  14. package/app/components/Cart/Item.vue +21 -10
  15. package/app/components/Category/Header.vue +9 -3
  16. package/app/components/Category/Listing.vue +51 -42
  17. package/app/components/Checkout/PaymentAndDelivery.vue +19 -3
  18. package/app/components/Checkout/Summary.vue +65 -1
  19. package/app/components/Cta.vue +4 -2
  20. package/app/components/Food/MarqueeItem.vue +20 -8
  21. package/app/components/Footer/Contact.vue +78 -0
  22. package/app/components/Footer/StoreStatus.vue +30 -0
  23. package/app/components/Footer.vue +2 -1
  24. package/app/components/Header/Body.vue +1 -1
  25. package/app/components/Header/Right.vue +27 -13
  26. package/app/components/Header/Title.vue +1 -0
  27. package/app/components/Header.vue +5 -15
  28. package/app/components/Hero.vue +45 -2
  29. package/app/components/ImageGallery.vue +11 -5
  30. package/app/components/Product/Card.vue +9 -3
  31. package/app/components/Product/CardFooter.vue +22 -12
  32. package/app/components/User/RegistrationForm.vue +0 -1
  33. package/app/components/Wishlist.vue +2 -15
  34. package/app/composables/useAddToCart.ts +13 -13
  35. package/app/composables/useAddressAutocomplete.ts +12 -19
  36. package/app/composables/useAddressSuggestionArea.ts +16 -0
  37. package/app/composables/useAddressValidation.ts +3 -19
  38. package/app/composables/useCartMutations.ts +168 -0
  39. package/app/composables/{useCategory.ts → useCategoryById.ts} +1 -1
  40. package/app/composables/useCategorySeo.ts +22 -25
  41. package/app/composables/useCheckoutMethodGuard.ts +201 -0
  42. package/app/composables/useMatomo.ts +25 -0
  43. package/app/composables/useMatomoConfig.ts +12 -0
  44. package/app/composables/useMenuSectionSchema.ts +55 -0
  45. package/app/composables/useNavigation.ts +12 -9
  46. package/app/composables/usePageSeo.ts +50 -0
  47. package/app/composables/useRestaurantSchema.ts +64 -0
  48. package/app/composables/useScrollAnimation.ts +39 -8
  49. package/app/composables/useSearchTracking.ts +33 -0
  50. package/app/composables/useSeoUrlRoute.ts +58 -0
  51. package/app/composables/useSortingSelection.ts +28 -0
  52. package/app/composables/useStoreStatus.ts +48 -0
  53. package/app/composables/useTrackEvent.ts +29 -23
  54. package/app/pages/[...all].vue +4 -4
  55. package/app/pages/account/recover/password/index.vue +1 -0
  56. package/app/pages/anmelden.vue +4 -0
  57. package/app/pages/bestellung/[id]/erfolg.vue +1 -5
  58. package/app/pages/bestellung/[id]/fehler.vue +2 -2
  59. package/app/pages/bestellung/[id]/index.vue +9 -3
  60. package/app/pages/bestellung/bestaetigen.vue +1 -5
  61. package/app/pages/bestellung/warenkorb.vue +1 -5
  62. package/app/pages/bestellung/zahlung-versand.vue +1 -5
  63. package/app/pages/c/[...all].vue +2 -35
  64. package/app/pages/index.vue +25 -13
  65. package/app/pages/kontakt.vue +4 -0
  66. package/app/pages/konto/adressen.vue +4 -0
  67. package/app/pages/konto/bestellung/[id].vue +4 -0
  68. package/app/pages/konto/bestellungen.vue +4 -0
  69. package/app/pages/konto/index.vue +4 -0
  70. package/app/pages/konto/profil.vue +4 -0
  71. package/app/pages/maintenance.vue +6 -0
  72. package/app/pages/merkliste.vue +1 -7
  73. package/app/pages/passwort-vergessen.vue +1 -0
  74. package/app/pages/registrierung/bestaetigen.vue +4 -0
  75. package/app/pages/registrierung/index.vue +4 -0
  76. package/app/pages/speisekarte/[...all].vue +2 -36
  77. package/app/pages/suche.vue +24 -21
  78. package/app/plugins/matomo.ts +35 -0
  79. package/app/utils/hydrateWhenVisible.ts +20 -0
  80. package/app/utils/media.ts +33 -0
  81. package/app/utils/openingHours.ts +67 -0
  82. package/app/utils/schema.ts +235 -0
  83. package/app/utils/seo.ts +56 -0
  84. package/app/utils/seoPath.ts +57 -0
  85. package/content/index.yml +10 -9
  86. package/content.config.ts +3 -0
  87. package/docs/notes/2026-07-05-issue-259-matomo-broken.md +7 -0
  88. package/docs/notes/2026-09-08-issue-240-shipping-method-blocked.md +83 -0
  89. package/docs/notes/2026-09-08-issue-241-cart-lock-conflicts.md +63 -0
  90. package/docs/notes/2026-09-08-issue-244-category-url-trailing-slash.md +65 -0
  91. package/docs/notes/2026-09-08-issue-276-payment-method-blocked.md +39 -0
  92. package/docs/notes/2026-09-08-issue-277-typecheck.md +99 -0
  93. package/docs/notes/2026-09-10-issue-250-animated-section.md +23 -0
  94. package/docs/notes/2026-09-10-issue-251-shop-data-in-base-layer.md +30 -0
  95. package/docs/notes/2026-09-10-issue-272-restaurant-schema.md +27 -0
  96. package/docs/notes/2026-09-10-issue-273-performance-media.md +64 -0
  97. package/docs/notes/2026-09-10-issue-274-seo-basics.md +49 -0
  98. package/docs/notes/2026-09-10-issue-275-accessibility.md +46 -0
  99. package/docs/notes/2026-09-10-issue-290-footer-nap.md +28 -0
  100. package/docs/notes/2026-09-10-issue-291-seo-url-trailing-slash.md +24 -0
  101. package/docs/notes/2026-09-10-issue-294-matomo-without-config.md +33 -0
  102. package/docs/notes/2026-09-10-issue-295-search-hydration-mismatch.md +25 -0
  103. package/docs/notes/2026-09-10-issue-296-track-direct-search.md +19 -0
  104. package/docs/notes/2026-09-10-issue-312-store-api-criteria-post.md +64 -0
  105. package/docs/notes/2026-09-10-issue-313-wishlist-scoped-tailwind.md +29 -0
  106. package/docs/notes/2026-09-10-issue-314-mobile-js-cost.md +119 -0
  107. package/node.dockerfile +5 -2
  108. package/nuxt.config.ts +74 -15
  109. package/package.json +5 -3
  110. package/patches/@shopware__nuxt-module@1.5.1.patch +32 -0
  111. package/pnpm-workspace.yaml +2 -0
  112. package/public/hero-poster.webp +0 -0
  113. package/server/api/__sitemap__/urls.get.ts +49 -0
  114. package/server/api/category/[categoryId].get.ts +20 -9
  115. package/server/api/content/home.get.ts +14 -0
  116. package/server/api/content/page.get.ts +22 -0
  117. package/server/api/listing/[categoryId].get.ts +12 -18
  118. package/server/api/product/[productId]/cross-selling.get.ts +3 -9
  119. package/server/api/product/[productId].get.ts +4 -8
  120. package/server/plugins/site-url.ts +13 -0
  121. package/server/plugins/sitemap-trailing-slash.ts +26 -0
  122. package/server/utils/sitemap.ts +60 -0
  123. package/server/utils/storeApi.ts +34 -0
  124. package/shopware.d.ts +35 -11
  125. package/test/nuxt/AddressFields.test.ts +2 -73
  126. package/test/nuxt/AnimatedSection.test.ts +67 -0
  127. package/test/nuxt/CartItem.test.ts +95 -0
  128. package/test/nuxt/FooterContact.test.ts +102 -0
  129. package/test/nuxt/FooterStoreStatus.test.ts +48 -0
  130. package/test/nuxt/HeaderRight.test.ts +14 -10
  131. package/test/nuxt/Hero.test.ts +68 -0
  132. package/test/nuxt/PaymentAndDelivery.test.ts +67 -8
  133. package/test/nuxt/RegistrationForm.test.ts +3 -0
  134. package/test/nuxt/useAddToCart.test.ts +34 -1
  135. package/test/nuxt/useAddressAutocomplete.test.ts +2 -38
  136. package/test/nuxt/useAddressSuggestionArea.test.ts +27 -0
  137. package/test/nuxt/useBusinessHours.test.ts +1 -1
  138. package/test/nuxt/useCartMutations.test.ts +225 -0
  139. package/test/nuxt/useCheckoutMethodGuard.test.ts +386 -0
  140. package/test/nuxt/useScrollAnimation.test.ts +55 -49
  141. package/test/nuxt/useSearchTracking.test.ts +71 -0
  142. package/test/nuxt/useSeoUrlRoute.test.ts +93 -0
  143. package/test/nuxt/useStoreStatus.test.ts +77 -0
  144. package/test/nuxt/useTrackEvent.test.ts +112 -0
  145. package/test/unit/media.spec.ts +49 -0
  146. package/test/unit/openingHours.spec.ts +59 -0
  147. package/test/unit/schema.spec.ts +243 -0
  148. package/test/unit/seo.spec.ts +107 -0
  149. package/test/unit/seoPath.spec.ts +116 -0
  150. package/test/unit/sitemap.spec.ts +88 -0
  151. package/test/unit/useCategorySeo.spec.ts +40 -30
  152. package/test/unit/useSortingSelection.spec.ts +39 -0
  153. package/app/composables/useValidCitiesForDelivery.ts +0 -12
@@ -0,0 +1,235 @@
1
+ // Builders for the schema.org JSON-LD of the shop (#272). Pure functions, so
2
+ // they stay platform-neutral and unit-testable; the composables gather the
3
+ // data and hand it in.
4
+
5
+ const DAY_NAMES = [
6
+ "Monday",
7
+ "Tuesday",
8
+ "Wednesday",
9
+ "Thursday",
10
+ "Friday",
11
+ "Saturday",
12
+ "Sunday",
13
+ ] as const;
14
+
15
+ type BusinessHourLike = {
16
+ /** 1 = Monday … 7 = Sunday */
17
+ dayOfWeek?: number;
18
+ openingTime?: string;
19
+ closingTime?: string;
20
+ };
21
+
22
+ type HolidayLike = {
23
+ start?: string;
24
+ end?: string;
25
+ };
26
+
27
+ export type SiteInfo = {
28
+ name: string;
29
+ url: string;
30
+ description?: string;
31
+ image?: string;
32
+ telephone?: string;
33
+ cuisine?: string;
34
+ priceRange?: string;
35
+ googleBusinessProfileUrl?: string;
36
+ address?: {
37
+ street?: string;
38
+ postalCode?: string;
39
+ city?: string;
40
+ country?: string;
41
+ };
42
+ };
43
+
44
+ export type MenuSectionInfo = {
45
+ name: string;
46
+ url?: string;
47
+ sections?: MenuSectionInfo[];
48
+ };
49
+
50
+ export type MenuItemInfo = {
51
+ name: string;
52
+ description?: string;
53
+ image?: string;
54
+ price?: number;
55
+ };
56
+
57
+ const formatTime = (time: string) => time.slice(0, 5);
58
+
59
+ /**
60
+ * Weekly opening hours. Days with identical intervals share one entry, so
61
+ * `Mo–Fr 11:30–14:30` becomes a single specification with five days.
62
+ */
63
+ export function buildOpeningHoursSpecification(
64
+ businessHours: BusinessHourLike[],
65
+ ) {
66
+ const days = new Map<string, string[]>();
67
+
68
+ for (const bh of businessHours) {
69
+ const day = DAY_NAMES[(bh.dayOfWeek ?? 0) - 1];
70
+ if (!day || !bh.openingTime || !bh.closingTime) continue;
71
+ const key = `${formatTime(bh.openingTime)}-${formatTime(bh.closingTime)}`;
72
+ days.set(key, [...(days.get(key) ?? []), day]);
73
+ }
74
+
75
+ return [...days.entries()].map(([key, dayOfWeek]) => {
76
+ const [opens, closes] = key.split("-");
77
+ return {
78
+ "@type": "OpeningHoursSpecification",
79
+ dayOfWeek: dayOfWeek.sort(
80
+ (a, b) =>
81
+ DAY_NAMES.indexOf(a as (typeof DAY_NAMES)[number]) -
82
+ DAY_NAMES.indexOf(b as (typeof DAY_NAMES)[number]),
83
+ ),
84
+ opens,
85
+ closes,
86
+ };
87
+ });
88
+ }
89
+
90
+ /**
91
+ * Closing days (holidays, vacation) as special opening hours. Google's
92
+ * convention for a closed day is `opens` and `closes` at `00:00`.
93
+ */
94
+ export function buildSpecialOpeningHoursSpecification(holidays: HolidayLike[]) {
95
+ return holidays
96
+ .filter((holiday) => holiday.start && holiday.end)
97
+ .map((holiday) => ({
98
+ "@type": "OpeningHoursSpecification",
99
+ validFrom: holiday.start!.slice(0, 10),
100
+ validThrough: holiday.end!.slice(0, 10),
101
+ opens: "00:00",
102
+ closes: "00:00",
103
+ }));
104
+ }
105
+
106
+ function buildAddress(address: SiteInfo["address"]) {
107
+ if (!address?.street && !address?.city) return undefined;
108
+ return compact({
109
+ "@type": "PostalAddress",
110
+ streetAddress: address.street,
111
+ // Nuxt parses a numeric env value into a number; schema.org wants text.
112
+ postalCode: address.postalCode ? String(address.postalCode) : undefined,
113
+ addressLocality: address.city,
114
+ addressCountry: address.country,
115
+ });
116
+ }
117
+
118
+ /**
119
+ * The shop as a `Restaurant` (a `LocalBusiness`) with its menu sections.
120
+ * Empty values are left out, so a shop without address or phone still gets a
121
+ * valid node.
122
+ */
123
+ export function buildRestaurantSchema(input: {
124
+ site: SiteInfo;
125
+ businessHours?: BusinessHourLike[];
126
+ holidays?: HolidayLike[];
127
+ menuUrl?: string;
128
+ menuSections?: MenuSectionInfo[];
129
+ }) {
130
+ const { site } = input;
131
+ const openingHours = buildOpeningHoursSpecification(
132
+ input.businessHours ?? [],
133
+ );
134
+ const specialHours = buildSpecialOpeningHoursSpecification(
135
+ input.holidays ?? [],
136
+ );
137
+ const sections = buildMenuSections(input.menuSections ?? []);
138
+
139
+ return compact({
140
+ "@context": "https://schema.org",
141
+ "@type": "Restaurant",
142
+ "@id": `${site.url}#restaurant`,
143
+ name: site.name,
144
+ description: site.description,
145
+ url: site.url,
146
+ image: site.image,
147
+ telephone: site.telephone,
148
+ servesCuisine: site.cuisine,
149
+ priceRange: site.priceRange,
150
+ address: buildAddress(site.address),
151
+ sameAs: site.googleBusinessProfileUrl
152
+ ? [site.googleBusinessProfileUrl]
153
+ : undefined,
154
+ openingHoursSpecification: openingHours.length ? openingHours : undefined,
155
+ specialOpeningHoursSpecification: specialHours.length
156
+ ? specialHours
157
+ : undefined,
158
+ hasMenu:
159
+ input.menuUrl || sections.length
160
+ ? compact({
161
+ "@type": "Menu",
162
+ "@id": `${site.url}#menu`,
163
+ name: "Speisekarte",
164
+ url: input.menuUrl,
165
+ hasMenuSection: sections.length ? sections : undefined,
166
+ })
167
+ : undefined,
168
+ });
169
+ }
170
+
171
+ /** Menu sections with their subsections (category tree of the menu). */
172
+ function buildMenuSections(
173
+ sections: MenuSectionInfo[],
174
+ ): Record<string, unknown>[] {
175
+ return sections.map((section) => {
176
+ const subsections = buildMenuSections(section.sections ?? []);
177
+ return compact({
178
+ "@type": "MenuSection",
179
+ name: section.name,
180
+ url: section.url,
181
+ hasMenuSection: subsections.length ? subsections : undefined,
182
+ });
183
+ });
184
+ }
185
+
186
+ /** A category page as a `MenuSection` with its products as `MenuItem`s. */
187
+ export function buildMenuSectionSchema(input: {
188
+ name: string;
189
+ description?: string;
190
+ url?: string;
191
+ image?: string;
192
+ currency: string;
193
+ items: MenuItemInfo[];
194
+ restaurantUrl?: string;
195
+ }) {
196
+ return compact({
197
+ "@context": "https://schema.org",
198
+ "@type": "MenuSection",
199
+ name: input.name,
200
+ description: input.description,
201
+ url: input.url,
202
+ image: input.image,
203
+ hasMenuItem: input.items.map((item) =>
204
+ compact({
205
+ "@type": "MenuItem",
206
+ name: item.name,
207
+ description: item.description,
208
+ image: item.image,
209
+ offers:
210
+ item.price !== undefined
211
+ ? {
212
+ "@type": "Offer",
213
+ price: item.price.toFixed(2),
214
+ priceCurrency: input.currency,
215
+ }
216
+ : undefined,
217
+ }),
218
+ ),
219
+ isPartOf: input.restaurantUrl
220
+ ? { "@type": "Menu", "@id": `${input.restaurantUrl}#menu` }
221
+ : undefined,
222
+ });
223
+ }
224
+
225
+ /** Drops `undefined`, empty strings and empty arrays. */
226
+ function compact<T extends Record<string, unknown>>(object: T): T {
227
+ return Object.fromEntries(
228
+ Object.entries(object).filter(
229
+ ([, value]) =>
230
+ value !== undefined &&
231
+ value !== "" &&
232
+ !(Array.isArray(value) && value.length === 0),
233
+ ),
234
+ ) as T;
235
+ }
@@ -0,0 +1,56 @@
1
+ import { hasProtocol, joinURL, withTrailingSlash } from "ufo";
2
+
3
+ type SiteInfo = {
4
+ name: string;
5
+ city?: string;
6
+ cuisine?: string;
7
+ };
8
+
9
+ /**
10
+ * Applies the site title template (`%s` = page title, `%siteName` = shop
11
+ * name). A missing title or the bare shop name renders as the shop name.
12
+ */
13
+ export function formatPageTitle(
14
+ title: string | null | undefined,
15
+ siteName: string,
16
+ template: string,
17
+ ): string {
18
+ if (!title || title === siteName) return siteName;
19
+ if (!template) return title;
20
+ return template.replaceAll("%siteName", siteName).replaceAll("%s", title);
21
+ }
22
+
23
+ /**
24
+ * Resolves a site-relative path against the site URL. Absolute URLs are kept,
25
+ * and so is the trailing slash of the path: Shopware SEO URLs such as
26
+ * `/c/Pizza/` only resolve with it.
27
+ */
28
+ export function toAbsoluteUrl(siteUrl: string, pathOrUrl: string): string {
29
+ if (hasProtocol(pathOrUrl, { acceptRelative: true })) return pathOrUrl;
30
+ const url = joinURL(siteUrl, pathOrUrl);
31
+ return pathOrUrl.endsWith("/") ? withTrailingSlash(url) : url;
32
+ }
33
+
34
+ /** Default home page title: `<Shopname> <Ort> | Online bestellen & liefern lassen`. */
35
+ export function buildHomeTitle({ name, city }: SiteInfo): string {
36
+ const place = city && !name.includes(city) ? `${name} ${city}` : name;
37
+ return `${place} | Online bestellen & liefern lassen`;
38
+ }
39
+
40
+ /** Default home page description from city and cuisine, if any is configured. */
41
+ export function buildHomeDescription({
42
+ name,
43
+ city,
44
+ cuisine,
45
+ }: SiteInfo): string | undefined {
46
+ if (cuisine && city) {
47
+ return `${cuisine} in ${city}: Bei ${name} online bestellen und liefern lassen oder abholen.`;
48
+ }
49
+ if (city) {
50
+ return `${name} in ${city}: Online bestellen und liefern lassen oder abholen.`;
51
+ }
52
+ if (cuisine) {
53
+ return `${cuisine}: Bei ${name} online bestellen und liefern lassen oder abholen.`;
54
+ }
55
+ return undefined;
56
+ }
@@ -0,0 +1,57 @@
1
+ import { withLeadingSlash, withTrailingSlash, withoutTrailingSlash } from "ufo";
2
+
3
+ type SeoPathMatch = {
4
+ seoPathInfo?: string;
5
+ };
6
+
7
+ type SeoPathResolution<T> = { match: T | null; redirectPath?: string };
8
+
9
+ /**
10
+ * Looks a path up against the backend SEO URLs and tells the caller where to
11
+ * redirect if the visited path is only an alias of the SEO URL:
12
+ *
13
+ * - The lookup is exact on the trailing slash: `/c/Pizza/` exists, `/c/Pizza`
14
+ * does not (#291). A miss is retried once with the slash toggled.
15
+ * - The lookup is case-insensitive, so `/c/pizza/` resolves too (#244).
16
+ *
17
+ * Whenever the match carries a SEO path that differs from the visited path,
18
+ * `redirectPath` names it, so the visited URL always ends up canonical.
19
+ */
20
+ export async function resolveSeoPath<T extends SeoPathMatch>(
21
+ path: string,
22
+ resolve: (path: string) => Promise<T | null>,
23
+ ): Promise<SeoPathResolution<T>> {
24
+ if (path === "/") return { match: await resolve(path) };
25
+
26
+ const match = await resolve(path);
27
+ if (match) return withRedirect(path, match);
28
+
29
+ const toggledPath = path.endsWith("/")
30
+ ? withoutTrailingSlash(path)
31
+ : withTrailingSlash(path);
32
+ const toggledMatch = await resolve(toggledPath);
33
+ if (!toggledMatch?.seoPathInfo) return { match: null };
34
+
35
+ return withRedirect(path, toggledMatch);
36
+ }
37
+
38
+ function withRedirect<T extends SeoPathMatch>(
39
+ path: string,
40
+ match: T,
41
+ ): SeoPathResolution<T> {
42
+ if (!match.seoPathInfo) return { match };
43
+
44
+ const seoPath = withLeadingSlash(match.seoPathInfo);
45
+ if (decodePath(seoPath) === decodePath(path)) return { match };
46
+
47
+ return { match, redirectPath: seoPath };
48
+ }
49
+
50
+ /** Compares paths on their decoded form; the router encodes `route.path`. */
51
+ function decodePath(path: string): string {
52
+ try {
53
+ return decodeURI(path);
54
+ } catch {
55
+ return path;
56
+ }
57
+ }
package/content/index.yml CHANGED
@@ -5,7 +5,8 @@ seo:
5
5
  title: ShopBite
6
6
  description: Reduziere Kosten und steigere deinen Umsatz
7
7
  hero:
8
- backgroundVideo: https://shopware.shopbite.de/media/10/59/96/1762465181/background.mp4
8
+ backgroundVideo: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/f8/66/7e/1789150226/background.mp4?ts=1789150226
9
+ poster: /hero-poster.webp
9
10
  headline: SHOPBITE
10
11
  usps:
11
12
  - title: 4.5 ⭐
@@ -68,17 +69,17 @@ gallery:
68
69
  variant: subtle
69
70
  trailingIcon: i-lucide-phone
70
71
  images:
71
- - image: https://shopware.shopbite.de/media/71/2a/1a/1762465670/restaurant1.webp
72
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/be/7b/ba/1789148625/restaurant1.webp?ts=1789148625
72
73
  alt: La Fattoria Restaurant Innenbereich 1
73
- - image: https://shopware.shopbite.de/media/61/ea/77/1762465670/restaurant2.webp
74
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/7c/a7/1c/1789148639/restaurant2.webp?ts=1789148639
74
75
  alt: La Fattoria Restaurant Innenbereich 2
75
- - image: https://shopware.shopbite.de/media/6d/ac/ca/1762465670/restaurant3.webp
76
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/94/27/0b/1789148651/restaurant3.webp?ts=1789148651
76
77
  alt: La Fattoria Restaurant Innenbereich 3
77
- - image: https://shopware.shopbite.de/media/af/d6/da/1762465670/restaurant4.webp
78
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
78
79
  alt: La Fattoria Restaurant Innenbereich 4
79
- - image: https://shopware.shopbite.de/media/6a/ff/e2/1762465670/restaurant5.webp
80
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/41/1b/09/1789148680/restaurant5.webp?ts=1789148680
80
81
  alt: La Fattoria Restaurant Innenbereich 5
81
- - image: https://shopware.shopbite.de/media/80/76/d0/1762465670/restaurant6.webp
82
+ - image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/5b/d1/f9/1789148692/restaurant6.webp?ts=1789148692
82
83
  alt: La Fattoria Restaurant Innenbereich 6
83
84
 
84
85
  mittagstisch:
@@ -87,7 +88,7 @@ mittagstisch:
87
88
  description: Jetzt auch Samstags!
88
89
  reverse: true
89
90
  orientation: horizontal
90
- image: https://shopware.shopbite.de/media/1f/c3/c8/1771943544/lm2.webp
91
+ image: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/50/31/b1/1789148669/restaurant4.webp?ts=1789148669
91
92
  imageAlt: Illustration
92
93
  features:
93
94
  - title: Montag bis Samstag
@@ -108,7 +109,7 @@ mittagstisch:
108
109
  cta:
109
110
  title: Jetzt bestellen!
110
111
  description: Genieße die italienische Küche, frisch zubereitet und direkt zu dir geliefert oder vor Ort genießen.
111
- backgroundImage: https://shopware.shopbite.de/media/f2/22/5f/1770899823/category-pizza-header2.webp
112
+ backgroundImage: https://veliu-minio.cjcbee.easypanel.host/shopbite-demo-shopware/media/60/5f/0e/1789148993/footer-cta.webp?ts=1789148993
112
113
  links:
113
114
  - label: Zur Speisekarte
114
115
  to: /speisekarte/
package/content.config.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { defineCollection, defineContentConfig, z } from "@nuxt/content";
2
+ import { defineSitemapSchema } from "@nuxtjs/sitemap/content";
2
3
 
3
4
  const createEnum = (options: [string, ...string[]]) => z.enum(options);
4
5
 
@@ -55,6 +56,7 @@ export default defineContentConfig({
55
56
  schema: z.object({
56
57
  hero: z.object({
57
58
  backgroundVideo: z.string().optional(),
59
+ poster: z.string().optional(),
58
60
  headline: z.string().optional(),
59
61
  links: z.array(createLinkSchema()),
60
62
  usps: z.array(
@@ -106,6 +108,7 @@ export default defineContentConfig({
106
108
  schema: z.object({
107
109
  title: z.string().min(1),
108
110
  description: z.string().optional(),
111
+ sitemap: defineSitemapSchema({ z }),
109
112
  }),
110
113
  }),
111
114
  },
@@ -74,3 +74,10 @@ src; the `undefined` cloud URL is gone.
74
74
  now `matomoAnalytics: { trigger: "onNuxtReady" }` (what `true` normalised to);
75
75
  only `scriptOptions` is inlined, so runtime config still wins. Re-verified on
76
76
  a production build — see `docs/notes/2026-09-07-dependency-update.md`.
77
+
78
+ ## Addendum 2026-09-10
79
+
80
+ The registry entry is gone. Matomo is now registered by `app/plugins/matomo.ts`
81
+ via `useMatomo()`, and only when `matomoUrl` and `siteId` are set — without
82
+ config the registry requested `cdn.matomo.cloud/undefined/matomo.js` (#294).
83
+ See `docs/notes/2026-09-10-issue-294-matomo-without-config.md`.
@@ -0,0 +1,83 @@
1
+ # Issue #240 — `shipping-method-blocked` invalidates the cart and blocks orders
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-240-shipping-method-blocked`
4
+
5
+ ## Symptom
6
+
7
+ OpenObserve RUM reported 39 occurrences in 7 days of
8
+
9
+ > Failed request
10
+ > - [Internal Server Error] The cart is invalid, got 1 error(s): shipping-method-blocked…
11
+
12
+ raised by `POST /store-api/checkout/order`. The customer clicks
13
+ "Jetzt bestellen!", the button briefly spins, and nothing happens.
14
+
15
+ ## Root cause
16
+
17
+ Two things combine:
18
+
19
+ 1. **Shopware only auto-switches a blocked shipping method in its Twig
20
+ storefront.** `Shopware\Storefront\Checkout\Shipping\BlockedShippingMethodSwitcher`
21
+ is wired into `StorefrontCartFacade`, which the Store API never uses.
22
+ Via the Store API the cart simply carries a `shipping-method-blocked`
23
+ error (`ShippingMethodBlockedError`, level *warning*, `blockOrder() = true`)
24
+ and `OrderPersister::persist()` throws `CartException::invalidCart()`
25
+ (HTTP 500, `CHECKOUT__CART_INVALID`). Verified against
26
+ `shopware/core` v6.7.13.1 in `../shopware/vendor`.
27
+
28
+ A shipping method becomes blocked whenever its availability rule no
29
+ longer matches the current context (`DeliveryValidator`) or it is not
30
+ in the "onlyAvailable" list (`CheckoutGatewayRoute`). Typical triggers
31
+ in a food-delivery shop: cart total falls below the minimum order value
32
+ of the delivery rule, the customer switches to an address outside the
33
+ delivery zone, or the rule depends on time/day.
34
+
35
+ 2. **The headless storefront never looked at cart errors and never caught
36
+ the failed order request.** `CheckoutSummary.handleCreateOrder()` had
37
+ only `try … finally`, so the rejection escaped as an unhandled error
38
+ (which is what RUM captured) and the customer saw no feedback. The
39
+ "Jetzt bestellen!" button only checked that *some* shipping method was
40
+ set in the session, not that it was still allowed.
41
+
42
+ ## Fix
43
+
44
+ - New composable `app/composables/useShippingMethodGuard.ts`:
45
+ - `hasBlockedShippingMethod(cart)` / `getCartErrors(cart)` normalise
46
+ `cart.errors` (array or keyed object) and look for
47
+ `messageKey === "shipping-method-blocked"`.
48
+ - `ensureAvailableShippingMethod()` refreshes the cart and, if blocked,
49
+ reloads the available shipping methods (`forceReload`), picks the
50
+ sales-channel default (`sessionContext.salesChannel.shippingMethodId`)
51
+ or otherwise the first available method, sets it, refreshes the cart
52
+ again and shows a warning toast. Returns `false` when no alternative
53
+ exists or the cart is still blocked. This mirrors Shopware's own
54
+ `BlockedShippingMethodSwitcher` behaviour.
55
+ - `Checkout/PaymentAndDelivery.vue` runs the guard after loading the
56
+ methods, keeps the radio in sync with the session's shipping method and
57
+ no longer re-sets a method that is already selected.
58
+ - `Checkout/Summary.vue` runs the guard on mount and again right before
59
+ `createOrder()`. If no shipping method is available the order button is
60
+ disabled with "Aktuell ist keine Versandart verfügbar". `createOrder`
61
+ failures are now caught, logged and surfaced as an error toast, and the
62
+ cart is refreshed.
63
+
64
+ Tests: `test/nuxt/useShippingMethodGuard.test.ts` (new) and
65
+ `test/nuxt/PaymentAndDelivery.test.ts` (extended).
66
+
67
+ ## Not covered / follow-ups
68
+
69
+ - The same gap exists for `payment-method-blocked`
70
+ (`BlockedPaymentMethodSwitcher` is Twig-storefront only as well).
71
+ Filed as #276 and fixed in #280, which generalised the composable into
72
+ `app/composables/useCheckoutMethodGuard.ts`. `useShippingMethodGuard`
73
+ described above no longer exists; see
74
+ `2026-09-08-issue-276-payment-method-blocked.md` for the current API.
75
+ - The *reason* a shipping method gets blocked lives in the Shopware admin
76
+ rule configuration of each shop and cannot be determined from this
77
+ repository. If the RUM count does not drop after this fix, check the
78
+ availability rules of the delivery shipping method for the affected
79
+ sales channel.
80
+ - `pnpm typecheck` reports 37 pre-existing errors on `main` (30 inside
81
+ `@shopware/composables` / `@shopware/nuxt-module`, 7 in our test files).
82
+ Unrelated to this change; filed as #277. #276 covers the
83
+ `payment-method-blocked` gap.
@@ -0,0 +1,63 @@
1
+ # Issue #241 — cart writes collide (`CHECKOUT__CART_LOCKED`)
2
+
3
+ Date: 2026-09-08 · Branch: `fix/issue-241-cart-mutation-queue`
4
+
5
+ ## Re-verified against OpenObserve (last 7 days)
6
+
7
+ | Signature from the issue | In the issue | Now |
8
+ | --------------------------------------------- | ------------ | --- |
9
+ | PATCH line-item "Failed to fetch" | 40 | 0 |
10
+ | POST line-item/delete "Failed to fetch" | 18 | 0 |
11
+ | Cart "locked due to concurrent write" (409) | 12 | 15 |
12
+
13
+ The mutation timeouts are gone. The remaining "<no response>" errors are
14
+ GET requests (`/store-api/seo-url` ×39, `/store-api/checkout/cart` ×10),
15
+ mostly marked *handled*, clustered in 8 sessions on 3 days — consistent
16
+ with navigations aborting in-flight requests, not with a backend outage.
17
+ Only the lock conflicts are still real: 15 errors in 8 sessions, all
18
+ unhandled; one session hit 5 within a minute, two in the same second.
19
+
20
+ ## Root cause
21
+
22
+ Every cart write went straight to the Store API with no coordination:
23
+
24
+ - `Cart/Item.vue` called `changeProductQuantity` from a computed setter on
25
+ every `+`/`-` click. Two quick clicks = two concurrent PATCH requests;
26
+ Shopware rejects the second with `CHECKOUT__CART_LOCKED` (409). The
27
+ input also displayed the *cart* quantity, so a click during an
28
+ in-flight request counted from the stale value.
29
+ - `removeItem` / `addProducts` were fired without `await`, without
30
+ error handling and without disabling the control.
31
+ - `useAddToCart` set `isLoading` but had no `try/finally`: after a
32
+ failure the button stayed disabled and nothing was shown.
33
+
34
+ ## Fix
35
+
36
+ `app/composables/useCartMutations.ts` — one module-level queue for all
37
+ cart writes (shared by every component instance):
38
+
39
+ - `setQuantity(id, qty)`: coalesces calls for the same line item — while
40
+ one request is in flight at most one follow-up is queued and it sends
41
+ the latest value; a value equal to the cart's current quantity sends
42
+ nothing.
43
+ - `removeLineItem(item)`, `addLineItems(items)`: serialized writes.
44
+ - A 409 lock conflict (other tab, SSR overlap) is retried once after
45
+ 400 ms. A final failure logs, shows an error toast ("Bitte versuche es
46
+ erneut."), re-reads the cart to re-sync the UI and resolves
47
+ `undefined` so callers skip their success path.
48
+ - `isMutating` for disabling destructive controls.
49
+
50
+ Call sites: `Cart/Item.vue` (optimistic local quantity, delete disabled
51
+ while mutating), `useAddToCart` (`try/finally`, no success toast/tracking
52
+ on failure), `Food/MarqueeItem.vue`.
53
+
54
+ Tests: `test/nuxt/useCartMutations.test.ts`, `test/nuxt/CartItem.test.ts`,
55
+ extended `test/nuxt/useAddToCart.test.ts`.
56
+
57
+ ## Left out on purpose
58
+
59
+ - Retry-with-backoff for "Failed to fetch" on mutations: no longer
60
+ occurring in telemetry.
61
+ - Backend availability check: nothing in the current data points at it.
62
+ - Voucher removal (`useVoucherCode` → `removeItem`) still bypasses the
63
+ queue; it is a rare, single click on the summary page.
@@ -0,0 +1,65 @@
1
+ # Issue #244: `/c/fisch` returned 404, and aliases of a SEO URL redirect
2
+
3
+ Date: 2026-09-08, reduced to the remaining delta on 2026-09-10. Branch `fix/issue-244-seo-url-trailing-slash`.
4
+
5
+ ## Re-verified (2026-09-08)
6
+
7
+ Live probe on pizzeria-lafattoria.de:
8
+
9
+ | URL | Result |
10
+ | ------------ | ----------------------------------------- |
11
+ | `/c/Extras/` | 200 |
12
+ | `/c/extras/` | 200 — lowercase already resolves |
13
+ | `/c/Extras` | **404** — correct case, no trailing slash |
14
+ | `/c/extras` | **404** |
15
+
16
+ Shopware only stores `c/Extras/` (with slash). Its `equals` filter on
17
+ `seoPathInfo` is case-insensitive (MySQL collation), so casing never was
18
+ the problem; the exact match simply failed without the slash.
19
+
20
+ OpenObserve (`_rumdata`): 0 category 404s in the last 7 days, 17 in the
21
+ last 30 days, all slash-less, arriving as Applebot + Safari pairs
22
+ (Siri/Spotlight suggestions strip the slash and lowercase the path).
23
+
24
+ The 301 that `/c/fisch` already got in production does not come from this
25
+ repository (probably a hosting rule).
26
+
27
+ ## History
28
+
29
+ The original PR (#284, 2026-09-08) fixed the slash in a project copy of
30
+ `useNavigationSearch` and added `useSeoUrlRoute`. Before it was merged, #291
31
+ reported the same 404 and #293 fixed it on `main` with `resolveSeoPath` +
32
+ `useSeoUrlRoute`, without shadowing the layer composable (see the typecheck
33
+ note of #277 on why a project composable must not share a layer name).
34
+ #284 was then reduced to what `main` still lacked.
35
+
36
+ ## Fix (delta on top of #293)
37
+
38
+ - `resolveSeoPath` now also returns a `redirectPath` for an **exact** match
39
+ whose SEO path differs from the visited path. `useSeoUrlRoute` answers
40
+ with a 301 (query preserved), so `/c/fisch/`, `/c/fisch` and `/c/FISCH`
41
+ all land on `/c/Fisch/`. Paths are compared decoded, because the router
42
+ encodes `route.path`.
43
+ - Records without a SEO path (the helpers' fallback for technical routes)
44
+ are served as before.
45
+ - A technical `/navigation/<id>` path would resolve to its SEO URL record
46
+ and redirect the same way, but no page routes it today: it hits the
47
+ content catch-all `[...all].vue` and returns 404 (verified live, and
48
+ unchanged by this PR). The catch-all fallback planned in #289 will route
49
+ it.
50
+ - Tests: `test/unit/seoPath.spec.ts` (casing, encoding, technical path),
51
+ `test/nuxt/useSeoUrlRoute.test.ts` (ported from #284: no redirect on the
52
+ SEO URL, 301 for an alias, 404, history-state shortcut).
53
+
54
+ ## Verification
55
+
56
+ Production build against the La Fattoria Store API: `/c/Fisch/` 200,
57
+ `/c/fisch/`, `/c/fisch`, `/c/FISCH` and `/c/Pizza` → 301 to the SEO URL,
58
+ `/c/Fisch?properties=x` → 301 `/c/Fisch/?properties=x`, unknown paths 404.
59
+ Playwright: direct load, link navigation, client-side redirect and back
60
+ button work without hydration warnings.
61
+
62
+ ## Still not covered
63
+
64
+ Non-canonical SEO URLs (`isCanonical: false`, old paths after a rename)
65
+ are served under their old path instead of redirected to the canonical one.