Then be sure to check out our ! In this article you will find all the important Shopware 6 SEO measures for your store. (Only in German for now)
Basic configuration
Go to "Extensions" > "My extensions" in your admin.
Install and activate the app.
Open the configuration and activate the desired functions.
Clear the cache under "Settings" > "System" > "Caches & indexes" > "Clear caches"
Generate variant URLs
Go to "Settings" > "Shop" > "SEO"
Paste the following template into the "Product detail page" field and save your entries:
Product detail page
{{ product.translated.name|lower }}{% if product.variation is not empty and product.parentId is not empty %}{% for var in product.variation %}-{{ var.option|lower }}{% endfor %}{% endif %}/
This template creates the URLs according to the following scheme:
You can of course adapt the template to your needs.
Update your index under "Settings" > "System" > "Caches & Indexes" > "Update indexes".
You can track the current indexing status in the messages at the top right. The more products you have in your store, the longer this process can take.
Sitemap URLs
If you have already updated the index in the previous step, you do not need to do this again.
Update your index under "Settings" > "System" > "Caches & Indexes" > "Update indexes".
Canonical URLs
No further configuration is required for this.
Further options
Global settings from the app configuration such as the linking from product boxes and the canonical URL setting can be overwritten at product level under "Catalogues" > "Products" > "[Product]" > "Specifications" > "Custom fields" > "Product (SEO URL Manager)".
FAQ's
My listing URLs still do not point to the parent after installing the extension?
Since the extension accesses the listing template, it is possible that your theme overwrites our listing template. If this is the case for you, please contact us and we will solve the problem together.
Some variant URLs have a /detail/3d951aa1fa4549579670c84bb67e5f08 URL after index generation. What is the reason for this?
This cryptic URL is the Shopware 6 fallback for existing URLs. So make sure that your SEO URL template generates unique and unambiguous URLs. For example, if you have two products with exactly the same name, there is a very high probability that the same URL will be generated twice.
Why is the wrong variant selected on the product detail page when I link to the parent product globally from all product boxes via the app?
Linking to the parent from the product box is also possible in the Shopware standard. The variant that is to be selected when clicking on the main product can be defined in the product in the "Variants" tab via the storefront presentation in the product listings.
If this is not defined, the system acts at its own discretion and selects a variant itself, as Shopware always works with a preselection on product detail pages. After all, the main product cannot be purchased.
The SEO URL Manager therefore always links globally to the parent from product boxes via the active configuration, but it has never been defined at product level what should be selected when the parent URL is called.
Especially when products are broken down by colour in the listing, all products still link to the parent and a concrete preselection according to the corresponding colour can no longer be guaranteed due to this conflict. The decision between better usability or SEO basic structure must be made by each individual.