Topdata Category Filter SW6 FAQ & Troubleshooting#
Common Issues#
| Symptom | Likely Cause | Solution |
|---|---|---|
| Missing categories | Hidden category exclusion | Check the excludeHidden setting in the plugin configuration. |
| Slow filter loading | Complex tree processing | Enable the hideUnpopular option to remove low-count categories. |
| Dynamic categories missing | Mapping issue | Verify that the streamCategories property is correctly configured in your Elasticsearch index. |
| URL parameters not working | Request parameter handling | Check the _getCategoryIdsFromRequest method in the Subscriber class. |
Troubleshooting Guide#
1. Missing Categories in Filter#
If you notice that some categories are not appearing in the filter:
- Check if the
excludeHiddensetting is enabled, which hides categories marked as "Hide in navigation". - Verify that the categories have products assigned to them.
- Ensure that the Elasticsearch index is up-to-date with the latest category data.
2. Slow Filter Performance#
If the category filter is loading slowly:
- Enable the
hideUnpopularsetting to remove categories with low product counts. - Consider increasing the
popularCountthreshold to show only the most popular categories. - Enable caching for the category tree data.
3. Dynamic Categories Not Displayed#
If dynamic product groups are not appearing in the filter:
- Verify that the
hideDynamicCategorysetting is disabled. - Check that the Elasticsearch mapping includes the
streamCategoriesproperty. - Ensure that products are properly assigned to dynamic categories.
4. URL Parameters Not Working#
If category selections are not being preserved in the URL:
- Check the
_getCategoryIdsFromRequestmethod in the Subscriber class. - Ensure that the filter name (
tdxcats) is correctly configured in the plugin settings. - Verify that JavaScript errors are not preventing the filter from updating the URL.
Best Practices#
Category Management#
- Regularly review and update your category structure to ensure it remains optimized.
- Use descriptive category names to help customers understand the product groupings.
- Consider the depth of your category tree and enable settings like
hideUnpopularfor better performance.
Performance Optimization#
- Enable caching for the category tree to reduce processing time.
- Use the
popularCountsetting to limit the number of categories displayed. - Consider batching category ID lookups in your Elasticsearch queries.
Configuration Tips#
- For stores with a complex category structure, enable
joinParentsto simplify the display. - Use the
showParentCategorysetting to control how many parent levels are shown in category names. - Regularly review and update your configuration settings to match your store's needs.