When Tweakwise is integrated into Shopware, it relies on the navigation.cid parameter to identify which category or context it should fetch products for. If this ID does not match the IDs stored in your Tweakwise instance, the API returns zero results or an error, resulting in an empty frontend.
This guide ensures that your Shopware domain settings are correctly mapped to generate consistent CIDs in the feed.
Step 1: Triage
First, determine what the frontend is actually requesting from Tweakwise.
- Navigate to a category page where results are missing.
- View the page source (
Ctrl + Uor right-click -> View Page Source). - Search for the Tweakwise configuration block (usually searching for
navigation.cid). - Note the value assigned to
cid.
Step 2: Compare
Verify if this value exists in your Tweakwise instance.
- Log in to the Tweakwise App.
- Navigate to Catalog → Categories.
- Find the specific category and compare its ID with the
cidyou found in Step 1. - If the IDs are different, your feed is likely generating IDs based on a different domain context than your frontend.
Step 3: Solution
Shopware generates category IDs based on the shop domain. If domains are missing in the Tweakwise feed configuration, the IDs may shift.
- In your Shopware Administration, go to Settings → Extensions → Tweakwise feed.
- Locate the Domains field.
- Add any missing domains that are used by your storefront.
- Save the settings and re-run your Tweakwise export.
Notes & Important Considerations
- Feed Refresh: After updating domain settings, you must trigger a new export in Shopware and a subsequent import task in Tweakwise for the changes to take effect.
