feat(content): show products of a category in a reusable block #49

Merged
csaeum merged 1 commit from feature/produktlisten-block into main 2026-09-15 15:51:58 +00:00
Owner

Editors pick a category, not single articles: the new block wsc_sylius_product_list can be placed between the theme blocks of a page and renders the products of the chosen taxon.

  • taxon selection as a tree (tree_table), stored as codes only
  • ProductSmartContentProvider serves Sulu's own SmartContent interface against the shop API, so no admin JavaScript is needed
  • manual selection stays available as a second source of the same block

Verified against the running environment: page /caps with two blocks (category Caps, 8 products / manual, 2 products), price sorting both ways, empty category leaves the page intact. 123 tests, 352 assertions green, including the smoke tests against the live shop (caps → 17 products).

closes #14
closes #15

🤖 Generated with Claude Code

Editors pick a category, not single articles: the new block `wsc_sylius_product_list` can be placed between the theme blocks of a page and renders the products of the chosen taxon. - taxon selection as a tree (`tree_table`), stored as codes only - `ProductSmartContentProvider` serves Sulu's own SmartContent interface against the shop API, so no admin JavaScript is needed - manual selection stays available as a second source of the same block Verified against the running environment: page `/caps` with two blocks (category *Caps*, 8 products / manual, 2 products), price sorting both ways, empty category leaves the page intact. 123 tests, 352 assertions green, including the smoke tests against the live shop (`caps` → 17 products). closes #14 closes #15 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(content): show products of a category in a reusable block
All checks were successful
CI / cs-check (push) Successful in 21s
CI / phpstan (push) Successful in 35s
CI / phpunit (push) Successful in 30s
CI / build-release (push) Has been skipped
0b5a9eabe7
Editors pick a category, not single articles: the new block
`wsc_sylius_product_list` can be placed between the theme blocks of a page
and renders the products of the chosen taxon.

- taxon selection as a tree (`tree_table`), stored as codes only
- `ProductSmartContentProvider` serves Sulu's own SmartContent interface
  against the shop API, so no admin JavaScript is needed
- manual selection stays available as a second source of the same block

closes #14
closes #15

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
csaeum merged commit a72737b792 into main 2026-09-15 15:51:58 +00:00
csaeum deleted branch feature/produktlisten-block 2026-09-15 15:51:58 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Sulu-Bundles/wsc_sulubundle_syliusheadless!49
No description provided.