Skip to content
Back to skills

Shopware Knowledge Patch

ASecurity

Shopware

  • 25 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
developmentjavascriptgojavaphpshellreactvuegitapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill shopware-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Shopware Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Shopware Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-shopware-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-shopware-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: shopware-knowledge-patch
description: Shopware
version: null
license: MIT
metadata:
  author: Nevaberry
---


# Shopware Knowledge Patch

Use this skill when updating Shopware plugins, apps, API clients, Administration
extensions, Storefront themes, or deployments. Load the relevant reference for
the complete contracts, examples, and version-specific conditions.

## Reference index

| Reference | Topics |
| --- | --- |
| [Platform, builds, and operations](references/platform-operations.md) | Installation, dependencies, security updates, caches, workers, Services, database validation, deployment, logging, telemetry |
| [Core, DAL, and extension contracts](references/core-dal-and-extensions.md) | Plugin migrations, entity results, criteria, validation, cloning, custom fields, system configuration, Rule Builder, import/export |
| [APIs and integrations](references/apis-and-integrations.md) | Authentication, ACLs, schemas, contexts, sessions, app lifecycle, scripts, webhooks, MCP |
| [Commerce, orders, payments, and documents](references/commerce-orders-and-payments.md) | Carts, promotions, transactions, shipping, customers, digital products, document generation, ZUGFeRD, GARAN, mail |
| [Media, search, and content](references/media-search-and-content.md) | Uploads, thumbnails, spatial media, search indexing, variants, dynamic groups, exports, translations, CMS, reviews |
| [Administration extensions](references/administration.md) | Native setup, stores, composables, forms, translations, shell overrides, SDK, repositories, media, bulk workflows |
| [Storefront, themes, routing, and Twig](references/storefront-and-twig.md) | SEO, domains, crawling, Twig, ESI, accessibility, theme compilation, consent, JavaScript plugins, quantities, prices |

## Breaking changes and deprecations

### Installable dependencies and extension configuration

Use 6.7.16.2 for Composer installs and updates on the 6.7 line. Composer's Twig
security filtering and the cap in `shopware/conflicts` 0.6.3 leave 6.7.15.0 through
6.7.16.1 without an installable Twig version. 6.7.16.2 resolves this with
`shopware/conflicts` 0.6.4 and `twig/twig` `^3.31.1`.

Declare `doctrine/inflector`, `symfony/monolog-bridge` or
`symfony/proxy-manager-bridge` in your extension's `composer.json` if you use their
classes. These packages will be dropped as core dependencies in the next major version.
Migrate Symfony service, route, and package XML before 6.8 to PHP configurators or
YAML. App manifests, `config.xml`, and `custom-fields.xml` retain their XML formats.

### API visibility, writes and integration identity

In 6.7.16.1, Admin API and Store API criteria and App Scripts using
`services.repository` or `services.store` apply the caller's API scope. Invisible
associations, their nested criteria, and `fields` paths through them are ignored
in 6.7; valid selections and server-added fields remain. If all selections are
discarded, normal reads still respect API visibility. Remove invisible paths
before 6.8, when requests fail with HTTP 400 and `FRAMEWORK__ACCESSOR_NOT_ALLOWED`.

Grant read access to the aggregated entity for Admin API and App Script entity
aggregations. Clone overwrites validate write protection and permissions, including
nested associations, translations and extensions. The root needs create permission;
associated overwrites need create for new records or update for existing records.
Values copied from the source need no additional association write privilege.

Standard integrations using `sw-app-user-id` retain their identity and restrict
permissions to the intersection with the user's ACL privileges. Unknown or inactive
users yield HTTP 403 with `FRAMEWORK__APP_USER_NOT_FOUND`. For these writes,
`created_by_id` stays empty and the existing `updated_by_id` is preserved.

### DAL result wrappers and field selection

Use `$result->getEntities()` for collection methods and
`{% for entity in searchResult.entities %}` in Twig. In 6.8, `EntitySearchResult`
drops its `EntityCollection` parent; `ProductListingResult` and
`ProductReviewResult` become separate from `EntitySearchResult`.
The constructor keeps `$entity` and `getEntity()` remains available; pass the
entity name at construction because it becomes readonly and `setEntity()` is deprecated.
Use `ProductListingResult::fromSearchResult()` and `ProductReviewResult::fromSearchResult()`.

`Criteria::excludeFields()` preserves typed entities and associations, leaving
excluded properties at their defaults. Combining it with `addFields()`, or
excluding unknown fields or required or write-protected top-level fields, raises
a `DataAbstractionLayerException`.

### Administration extension migration

Move Administration build customizations from `webpack.config.js` to
`vite.config.js` and publish a separate Administration plugin build for 6.7.
For built-in stores, use `Shopware.Store.get()` in place of `Shopware.State`.
Most components load asynchronously: wait for `@vue:mounted` or check the ref.

`$tc()`, root `$tc()` and `Shopware.Snippet.tc()` remain available in 6.8;
their removal moves to 6.9. Migrate to `$t(key, namedParameters, plural)` and
`Shopware.Snippet.t()`. Use `$t(key, plural, { locale })` for a locale override.
Await ExtensionAPI repository `save`, `saveAll` and `delete` to detect success;
remove reads of their raw HTTP responses.

### Storefront templates and theme cleanup

Request or context mutations in Twig fail with `FRAMEWORK__TWIG_METHOD_CALL_NOT_ALLOWED`.
Move them into PHP, for example an event subscriber. Templates can still read
values such as `context.languageId` and call `addExtension()` or `addArrayExtension()`.

Header and footer render through `/header` and `/footer`; move the relevant base
block overrides to `layout/header.html.twig` and `layout/footer.html.twig`.
Use `activeRoute`, `window.activeRoute`, and `.is-active-route-*` for route identity.
`category_url` and `category_linknewtab` remain available in 6.8; migrate to
`category.seoUrl` on `SalesChannelCategoryEntity` and `category.shouldOpenInNewTab` before 6.9.

In 6.7.15.1, scheduled theme cleanup marks unused compiled directories with
`.retired` after files age at least 24 hours, then deletes them once the marker
is at least 24 hours old. Reactivation clears the marker. Remove `--no-cleanup`
from deployment scripts: it has no effect and is removed in 6.8.

### Media upload and storage contracts

Set `media.private` when creating media; changing visibility is rejected.
Use upload actions or presigned uploads for files in shop storage. Admin API and
Sync API relative or null writes to `media.path` or `media_thumbnail.path` return
HTTP 400 with `CONTENT__MEDIA_ILLEGAL_PATH`. External links require a plain absolute
HTTP or HTTPS URL with a host; stored paths and names can be resent.

Public HTML uploads are excluded by default; private HTML and previously uploaded
public HTML remain accepted or served respectively. Both regular and presigned
uploads require extensions to match HTML, XHTML, SVG or other XML content.
Presigned preparation and finalization require `media:update`; preparing a new
record also requires `media:create`. Failed new-media cleanup requires `media:delete`.

### Workers and cache migration

With `WEBHOOKS_REWORK` enabled in 6.7 or its default in 6.8, explicitly consume
`webhook` and prepend it to overridden `shopware.admin_worker.transports` lists.
Without a consumer, `webhook_delivery` rows accumulate. The operations reference
contains the rollback and drain procedure, including event deduplication.

Cache invalidation is delayed by default. Send `sw-force-cache-invalidate: 1` for
an API write requiring immediate invalidation. The separate Store API route cache
and its `Cached*Route` classes were removed; update decorators to the underlying routes.
With `CACHE_REWORK` or `v6.8.0.0`, cacheable reads omit `sw-context-token`:
keep the current token unless the response supplies a replacement.

## Frequently used extension and integration features

### Custom fields, scheduled tasks and route hooks

Put plugin or app custom field sets in `Resources/config/custom-fields.xml` for
install, update and uninstall management. In apps it takes precedence over inline
manifest custom fields, which are deprecated for removal in 6.8.
`<include-in-search>true</include-in-search>` sets `includeInSearch` on creation;
the default is `false`, and both file-based and inline app XML support it.

Manually instantiated scheduled task handlers need `setScheduledTaskExecutor()`.
For custom timing, implement `DynamicallyScheduledTaskHandler`; returning `null`
from `getNextExecutionTime()` uses the normal `now + runInterval` schedule.
Store API route extensions expose `onPre()`, `onPost()` and `onError()`;
existing decorators continue to work.

### Headless sessions, settings and SEO

`GET /store-api/shop-settings` returns Storefront-facing configuration for the
current sales channel. Experimental `GET /store-api/snippet?prefixes=checkout,account`
returns resolved snippet maps with language fallbacks and is planned to stabilize in 6.8.
Revalidate the returned `ETag` with `If-None-Match`.

For an embedded client to share the shopper's cart and login, send the Storefront
session cookie with `sw-access-key` and `sw-context-source: session`. A missing or
unsuitable session or a simultaneous `sw-context-token` returns HTTP 400 with
`FRAMEWORK__ROUTING_SESSION_CONTEXT_NOT_RESOLVABLE`. Keep `sw-context-source` out of
allowed CORS headers. Session responses omit the token header and maintain Storefront cache cookies.

Mark external storefront domains with `sales_channel_domain.is_external_storefront`
for headless SEO URLs. `sw-include-seo-urls` populates `seoUrls` for headless
products, categories and landing pages; include the header in custom cache keys or honor `Vary`.

### Payments and existing orders

A method can pay an existing order through the Store API only when **Allow payment
change after checkout** is enabled, including methods with their own JavaScript buttons.
Rejection at `POST /store-api/order/payment` uses HTTP 403 and
`CHECKOUT__ORDER_PAYMENT_METHOD_NOT_CHANGEABLE`.

Pass `orderId` to `/store-api/payment-method`, `/store-api/shipping-method` or
`/store-api/checkout/gateway` for availability based on the order's currency,
language, customer, addresses and stored rule IDs. Use `onlyAvailable` to filter
payment or shipping methods. The availability responses bypass caching.
Use `order.primaryOrderDelivery` and `order.primaryOrderTransaction` rather than collection order.

### Document generation and guarantee labels

`DOCUMENT_GENERATION_REWORK` enables the experimental v2 document pipeline in 6.7.
It stabilizes and becomes the default in 6.8; the flag and legacy implementation
are slated for removal in 6.9. Legacy PHP APIs remain callable with either flag value.
V2 snapshots the order and can generate separate formats sharing one document number.
The commerce reference contains renderer contracts, service migration, routes and ZUGFeRD rules.

From 6.7.15.1, custom order mails read `garanLabels[nestedItem.productId] ?? null`
in HTML and `garanLabels[lineItem.productId] ?? null` in plain text. The variable
is supplied when the template references it and has an `order` in its data.
Headless clients read `order.lineItems[].payload.garanLabel` for the label shown
at purchase, falling back to the current product label when older orders lack the key.

### MCP capabilities, security and SDK contracts

Remove `MCP_SERVER` when upgrading to 6.7.14.0. `/api/_mcp` and `/store-api/_mcp`
are reachable whenever `symfony/mcp-bundle` is installed; MCP classes remain
experimental until 6.8. Unset user and integration MCP allowlists grant zero
capabilities; only administrator users bypass the allowlist.

Select toolsets at connection time with `/api/_mcp?toolsets=order,media` or
`/api/_mcp?toolsets=all`. The integration allowlist and role still govern execution.
`discovery` is reserved for the three core discovery tools; give extension tools their own group.
With `mcp/sdk` 0.9 and `symfony/mcp-bundle` 0.15, `inputSchema.properties` must be
an object and `inputSchema.required` a list when present. A declared `outputSchema`
validates `structuredContent`, producing `isError: true` on mismatch.

### Administration native setup and translations

Experimental native-setup SFCs use `<script setup>` and `swDefinePublic()`;
overrides use `useSwPreviousState()` and `swDefineOverride()` and need a native-setup base.
The experimental `shopware:*` virtual modules stabilize in 6.8, while composable
imports from `shopware:composables` require `shopware/administration >=6.7.16.0`
and remain experimental until 6.9.

For immutable translation deployments, set `shopware.translation.use_local_filesystem: true`,
run `bin/console translation:download` during the build, and ship `var/translation`.
The download creates no language or snippet-set records. Use offline installation
from pre-provisioned files to create those records; the content reference has the CLI modes.

Files in this skill

  • SKILL.md10.5 KB
  • coverage.json562 B
  • references/administration.md7.3 KB
  • references/apis-and-integrations.md5.9 KB
  • references/commerce-orders-and-payments.md5.6 KB
  • references/core-dal-and-extensions.md7.8 KB
  • references/media-search-and-content.md1.9 KB
  • references/platform-operations.md6.6 KB
  • references/storefront-and-twig.md8.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.