Markus Michalski FAQ

XML Sitemap Generator

XML Sitemap Generator for Shopware 6.7: sitemaps for products, categories, CMS pages and manufacturers with hreflang and product images, per Sales Channel, via admin button, scheduled task or console command.

Deutsche Version

Back to Shopware 6 Plugins

XML Sitemap Generator

Shopware
PHP
License

This documentation always refers to the latest released version.

Live Demo: Try this and other plugins live — no installation, no risk: demo.markus-michalski.net

Overview

The XML Sitemap Generator creates a set of XML sitemaps for each Sales Channel following the sitemap protocol: separate files for products, categories, CMS pages and manufacturers, plus an index. Optionally the entries contain hreflang alternates and product images (image sitemap extension). The sitemaps are created via a button in the plugin configuration, a scheduled task or a console command.

Each Sales Channel writes into its own subdirectory under public/. With its own slug per Sales Channel the paths stay readable and do not overwrite each other.

graph LR
    A["Admin button / scheduled task / console command"] --> B["SitemapGeneratorService"]
    B --> C["URL providers: products, categories, CMS pages, manufacturers"]
    C --> D["XmlWriterService"]
    D --> E["FileWriterService"]
    E --> F["public/sitemap/slug/sitemap.xml and sitemap-type.xml"]

Documentation

Page Content
Installation Installation via Store, Composer or ZIP, update, uninstall, scheduled task
Configuration All settings, Sales Channel Slug, output path, robots.txt, practical examples
Generation and console command Admin button, scheduled task, command mmd:sitemap:generate with all options, cron job
Sitemap contents Files and splitting, selection rules per type, hreflang, product images
Admin API Routes for generating and for URL statistics
Troubleshooting and FAQ Typical problems, known limitations, frequent questions
Technical details Generation flow, classes, scheduled task

Features

Feature Description
Content types Products, categories, CMS pages (landing pages plus service and footer navigation) and manufacturers, each in its own file
Hreflang Alternate language URLs and x-default per entry
Image sitemap Up to five product images per product
Multiple Sales Channels Own directory and own settings per Sales Channel, readable slug
Admin button Generation and URL statistics directly in the plugin configuration
Scheduled task Automatic generation at an adjustable interval (hourly to weekly)
Console command mmd:sitemap:generate with type and Sales Channel filter, --clear and --dry-run
Splitting Files are split and numbered from 50,000 URLs (configurable lower)
Filters Empty categories, variants and out-of-stock products are controllable

Requirements

Requirement Version Notes
Shopware 6.7.x shopware/core ~6.7.0
PHP 8.2 or newer With ext-dom
Composer package mmd/sw67-sitemap Plugin class MmdSitemap

License

License

Commercial license: a single-installation license covers all Sales Channels as well as development and staging environments and includes 12 months of free updates. The full terms are in the plugin's LICENSE file.

Support

For customers who purchased this plugin through the Shopware Store, technical support is provided exclusively through the official Shopware support ticket system in your Shopware account. For general, project-related, or commercial inquiries outside the scope of the Store framework, you can reach me at support@markus-michalski.net.