Skip to content
Back to skills

Shopware Knowledge Patch

ASecurity

Shopware

  • 25 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 5, 2026
developmentjavascriptgojavaphpsqlvueapi

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-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-shopware-knowledge-patch-nevaberry-plugins)

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 compatibility guidance

Load this skill when updating Shopware plugins, apps, Administration components,
Storefront themes, API clients, commerce integrations or deployment configuration.
Use the topic references for complete migration details, examples, conditions and
source attribution. Keep feature-flag conditions and experimental status attached
to the guidance when applying it.

## Reference index

| Reference | Topics |
| --- | --- |
| [Administration](references/administration.md) | Component builds, native-setup SFCs, stores, translations, Rule Builder, CMS, media and order interfaces |
| [APIs and integrations](references/apis-and-integrations.md) | Authentication, ACLs, OAuth, Store API schemas and sessions, MCP, webhooks and app requests |
| [Commerce and documents](references/commerce-and-documents.md) | Carts, payments, shipping, customers, rules, mail, GARAN, document v2 and ZUGFeRD |
| [Data and search](references/data-and-search.md) | DAL writes, cloning, criteria, result wrappers, product streams, indexing, search and exports |
| [Extensions and framework](references/extensions-and-framework.md) | Plugin and app lifecycle, custom fields, configuration, framework APIs, XML and feature flags |
| [Operations and infrastructure](references/operations-and-infrastructure.md) | Installation, dependencies, media storage and validation, services, translations, caching, queues and telemetry |
| [Storefront](references/storefront.md) | Routing, SEO, headless URLs, Twig, forms, cookies, accessibility, themes and JavaScript extensions |

## Breaking changes and deprecations

### API visibility, permissions and integration identity

Admin API and Store API criteria and App Scripts using `services.repository`
or `services.store` apply the caller's API scope.
In 6.7, invisible associations, their nested criteria and field selections through
them are ignored; debug mode emits deprecations. Remove those paths before 6.8,
when they fail with HTTP 400 and `FRAMEWORK__ACCESSOR_NOT_ALLOWED`.
Entity aggregations in the Admin API and App Scripts require read access to
the aggregated entity.

Standard integrations using `sw-app-user-id` retain their integration identity
and intersect permissions with the named user's ACL privileges. Unknown or
inactive users return HTTP 403 with `FRAMEWORK__APP_USER_NOT_FOUND`.
Routes for the signed-in Administration user require direct user authentication;
integrations receive `FRAMEWORK__API_EXPECTED_USER`.
See the API reference for action-specific privileges and user-write restrictions.

### Media writes and upload validation

Set `media.private` at creation; changing its stored value is rejected.
Use upload actions or presigned uploads for files in shop storage.
Admin API and Sync API writes of relative paths or `null` to `media.path` or
`media_thumbnail.path` fail with `CONTENT__MEDIA_ILLEGAL_PATH`.
External links require a plain absolute HTTP or HTTPS URL with a host.

Public HTML uploads are excluded by default; private HTML remains accepted.
Regular and presigned uploads require the extension to match HTML, XHTML, SVG
or other XML content. Grant `media:update` for presign and finalize actions,
plus `media:create` when preparing a new record without `mediaId`.
See operations for filename validation, clone overwrites, cleanup and CSP details.

### XML parsing and Twig mutations

Use `Shopware\Core\Framework\Util\XmlParser` for extension-supplied XML.
It rejects document type declarations; empty, missing or malformed extension XML
raises `UtilException` with `UTIL__XML_PARSING_FAILED` and HTTP 400.
Request or context mutations in Twig fail with `FRAMEWORK__TWIG_METHOD_CALL_NOT_ALLOWED`.
Move mutations into PHP, for example an event subscriber. Templates can still read
values and call `addExtension()` or `addArrayExtension()`.

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.
See the framework and Storefront references for these separate changes.

### DAL result wrappers and clone overwrites

Use `$result->getEntities()` for collection methods and
`{% for entity in searchResult.entities %}` in Twig.
In 6.8, `EntitySearchResult` loses its `EntityCollection` parent, while
`ProductListingResult` and `ProductReviewResult` become separate result types.
Retain the constructor's `$entity` argument and `getEntity()`; the name becomes
readonly and `setEntity()` is deprecated. Use `ProductListingResult::fromSearchResult()`
and `ProductReviewResult::fromSearchResult()` for their respective wrappers.

Clone actions validate explicit overwrites, including nested associations,
translations and extensions. The root needs create permission; associated
overwrites need create for new records or update for existing records.
Copied source values need no additional association write privilege.
See the data reference for wrapper removals, cloning and write-protection details.

### Administration migration points

Move build customizations from `webpack.config.js` to `vite.config.js` and publish
a separate Administration plugin build for 6.7. Use `Shopware.Store.get()` for
built-in stores and `Shopware.Store.register({ id, state, getters, actions })`
for new Pinia stores. Check refs or wait for `@vue:mounted` before using components.

`$tc()`, root `$tc()` and `Shopware.Snippet.tc()` remain available in 6.8 and are
scheduled for removal in 6.9. Migrate to `$t(key, namedParameters, plural)` and
`Shopware.Snippet.t()`; use `$t(key, plural, { locale })` for a locale override.
`sw-empty-state` also remains in 6.8 and is removed in 6.9.
See Administration for Meteor markup, removed blocks and migration tooling.

### Cache, sessions and worker migration

The separate Store API route cache and its `Cached*Route` classes were removed.
Update decorators and services to use the underlying routes. Cache invalidation
is delayed by default; send `sw-force-cache-invalidate: 1` for an API write
requiring immediate invalidation.

With `CACHE_REWORK` or `v6.8.0.0` active, cacheable reads omit `sw-context-token`.
Keep the current token unless a response supplies a replacement.
When enabling `WEBHOOKS_REWORK` in 6.7, or using its default in 6.8, consume
`webhook` explicitly and prepend it to overridden `shopware.admin_worker.transports`.
See APIs for rollback and deduplication; see operations for cache configuration.

### Payment, order and document extension migration

Implement `AbstractPaymentHandler` instead of legacy payment interfaces.
Use `supports()` for refunds and recurring payments, and fetch payment data using
the supplied order transaction ID. Payment and shipping writes require `technicalName`.
Use `order.primaryOrderDelivery` and `order.primaryOrderTransaction` instead of
inferring the primary records from collection order.

Document v2 is experimental behind `DOCUMENT_GENERATION_REWORK` in 6.7, becomes
the default and stable in 6.8, and retains legacy APIs until their planned 6.9 removal.
Move document classes and service references to the documented `DocumentV2`
namespaces; download decorators target
`Shopware\Core\Checkout\DocumentV2\SalesChannel\DocumentRoute`.
See commerce for formats, lifecycle hooks, class aliases and renderer contracts.

## Frequently used extension features

### Declarative custom fields and scheduled tasks

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

Handlers tagged `messenger.message_handler` receive a `ScheduledTaskExecutor`.
Call `setScheduledTaskExecutor()` for manually constructed handlers.
For custom timing, implement `DynamicallyScheduledTaskHandler`; returning `null`
from `getNextExecutionTime()` uses `now + runInterval`.
See extensions for complete namespaces, signatures and examples.

### Administration SFCs and shared data

Native-setup extension SFCs are experimental. Use `<script setup>` and the
appropriate `swDefinePublic()` or `swDefineOverride()` marker; overrides require
a native-setup base and access its state with `useSwPreviousState()`.
`codemod:sfc-migration` previews changes read-only; `--write` creates validated drafts.

Repository searches can share cached data through a stable `cacheKey` and
millisecond `ttl`; `forceReload: true` refreshes a read.
The `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. See Administration for import and override examples.

### Store API extensions, sessions and order availability

Core Store API route extensions expose `onPre()`, `onPost()` and `onError()` for input,
result and fallback handling. Existing route decorators continue to work.
For embedded clients sharing cart and login, send the Storefront session cookie,
`sw-access-key` and `sw-context-source: session`, without `sw-context-token`.
Keep `sw-context-source` out of allowed CORS headers.

Pass `orderId` to `/store-api/payment-method`, `/store-api/shipping-method` or
`/store-api/checkout/gateway` for availability based on the order's stored data.
Paying an existing order requires **Allow payment change after checkout**, including
for payment methods using their own JavaScript buttons.
See APIs and commerce for context restoration, errors and response schemas.

### MCP integrations

MCP classes remain experimental until 6.8. After upgrading to 6.7.14.0, remove
`MCP_SERVER`; both endpoints are reachable when `symfony/mcp-bundle` is installed.
Unset user and integration allowlists grant zero capabilities; only administrator
users bypass the allowlist. Give extension tools their own group because
`discovery` is reserved for the three core discovery tools.

Use `mcp.server.admin` and `mcp.server.store_api` for the separate servers.
Update or reinstall apps with MCP capabilities after the migration to generic app
feature storage. See APIs for SDK schema requirements, browser origins, toolset
selection, privileges, rate limits and expiring large-result links.

### Headless rendering, SEO and GARAN

Mark external storefront domains with `sales_channel_domain.is_external_storefront`
for headless SEO URLs. `sw-include-seo-urls` populates headless product, category
and landing-page URLs; include that header in custom cache keys or honor `Vary`.
The resolved snippet endpoint is experimental and planned to stabilize in 6.8.

Read `order.lineItems[].payload.garanLabel` for the label shown at purchase,
falling back to the current product label on older orders without that key.
Use the version-specific custom mail guidance for `garanLabels`, inline PNGs
and guarantee terms attachments. See Storefront and commerce for templates.

## Deployment and operational checks

Use 6.7.16.2 for Composer installs and updates on the 6.7 line: earlier affected
releases have no installable Twig version under the documented conflict constraints.
Declare `doctrine/inflector`, `symfony/monolog-bridge` or
`symfony/proxy-manager-bridge` in an extension's `composer.json` if it uses them.

Run `bin/console dal:validate` to check attribute entities and MySQL 8.4 foreign
keys. Referenced keys must be complete primary or unique keys, often including
`version_id`. Run `bin/console es:index` to populate `product.price` in existing
Elasticsearch indices after deployment.

For immutable translation deployments, enable `shopware.translation.use_local_filesystem`,
run `bin/console translation:download` at build time and ship `var/translation`.
Disable the translation scheduled task when updates are build-only.
Use offline installation when creating records from pre-provisioned files.

Compiled theme cleanup uses scheduled retirement in 6.7.15.1. Remove the
deprecated `--no-cleanup` switch from deployment scripts; it has no effect.
Merge the updated Shopware section from `.htaccess.dist` into deployments that
lack update markers. See operations and Storefront for storage and cleanup details.

Files in this skill

  • SKILL.md8.3 KB
  • coverage.json561 B
  • references/administration.md7.5 KB
  • references/apis-and-integrations.md5.3 KB
  • references/commerce-and-documents.md5.2 KB
  • references/data-and-search.md5.6 KB
  • references/extensions-and-framework.md7.5 KB
  • references/operations-and-infrastructure.md4.2 KB
  • references/storefront.md8.4 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.