I’m reporting an issue with XStore’s Brands Filter. A valid brand appears on the main Shop page but disappears when products are filtered by category or when viewing that category’s archive, even though the brand’s products remain visible.
The product assignments, taxonomy relationships, stock status, and term counts are correct. XStore’s underlying SQL also returns the brand with the correct product count.
The following workaround resolves the issue:
add_filter(
‘woocommerce_layered_nav_count_maybe_cache’,
‘__return_false’,
PHP_INT_MAX
);
Removing the workaround causes the brand to disappear again, even after clearing WooCommerce transients and all site caches. This suggests the contextual layered-navigation counts are being cached or keyed incorrectly.
Please investigate the brand-count caching used by get_filtered_term_product_counts() in:
app/models/widgets/brands-filter.php
It appears the cache may not fully account for the active product-category context. Please consider addressing this in a future XStore Core release.