website_snippet_product_category
Provide a website builder snippet that displays selected e-commerce product categories on the storefront.
Key Features
- website: Provides a Product Category snippet that asynchronously renders the hierarchy of published e-commerce categories with optional icons.
- product.public.category: Adds a boolean toggle to mark categories for inclusion in the Product Category snippet, available in both tree and form views.
- web_editor: Clears the snippet target before saving in the website builder to avoid persisting previously rendered category markup.
- website_sale: Exposes a JSON route that renders the snippet with top-level categories marked for publication and builds shop URLs for navigation.
- website_frontend: Prevents direct editing of the snippet placeholder and shows an in-place warning when no eligible categories exist.