Repository navigation
Description
User story
As a developer upgrading a custom Storefront or theme to Shopware 6.7, I want project validate to identify Twig inheritance and block overrides whose Shopware target disappeared or moved, so I can repair broken overrides before discovering them in the running shop.
Problem
Storefront customizations stay syntactically valid while pointing at a template or block that no longer exists under the same path or name:
- A 6.7.5.1 upgrade broke the product page: "The plugin attempts to extend a core template that no longer exists."
- An agency partner reviewing the wizard called Storefront override risk the most interesting part.
- migration review says most Storefront work came from core-template drift: block names, paths, parameters and
shopware-blockreferences changing. Commit1408e920, "Corrected a Storefront block reference for Shopware 6.7.0.1", landed after the merge. - Agency project measured the exposure: 258 files contain
sw_extends(259 directives) across 30 plugins, and an exact 6.6.5.1 → 6.7.13.1 comparison of one theme found six direct targets no longer at the same path.
Scope
Extend project validate with a 6.6 → 6.7 check for inheritance targets removed, renamed or moved; overridden blocks removed or renamed; and references that no longer resolve. Findings point to the local Twig source and the affected Shopware target. Runs through the normal project validate workflow, and before the upgrade where a target version is known.
Shopware 6 Toolbox already implements Twig block versioning including sw_extends resolution and Core block diffs. Align semantics rather than inventing a second definition of Twig drift.
Example
shopware-cli project validate
KNOWN BREAK custom/plugins/Example/src/Resources/views/.../detail.html.twig:8
Overrides Shopware block `example_old`.
That block is not available under this target in 6.7.
Migration target: ...
Out of scope
Whether a still-existing block changed enough to need review (#1375) · visual regression · CSS/SCSS · automatic rewrites
Acceptance criteria
project validatereports supported missing, renamed or moved 6.7 Twig, template and block targets.- Findings identify the local source and the affected Shopware target, with the new target where reliably known.
- Resolution is inheritance-aware: a block that moved into a parent or replacement partial is not reported as missing.
- Overrides of unchanged targets produce no finding.
- Standard and legacy-layout fixtures are automated. No source is modified.
Activity
[-]Find Storefront Twig overrides broken by removed or moved 6.7 templates and blocks[/-][+]Find Storefront Twig overrides whose Shopware 6.7 target no longer exists[/+]lasomethingsomething commentedon Aug 14, 2026
ping storefront
[-]Find Storefront Twig overrides whose Shopware 6.7 target no longer exists[/-][+]`project validate` finds Storefront Twig overrides whose Shopware 6.7 target no longer exists[/+]