This project is not covered by Drupal’s security advisory policy.
This lightweight module is trying to solve the problem that Views contextual filter named "Content has taxonomy term ID (with depth)" is available only for nodes and can not be used for products in Drupal Commerce 2.x.
The Module extends Taxonomy module from Drupal core and provides a new contextual filter "Product has taxonomy term ID (with depth)".
Compared to the Taxonomy module that uses relationship table "taxonomy_index" between terms and nodes, this module uses only SQL query on existing tables. Module needs to know the name of your reference field. You must specify the field in the filter settings.
How to use
- Go to your product Views -> Advanced -> Contextual filters -> Add -> Product has taxonomy term ID (with depth)
- In Reference field: Enter a machine name of the field in the product type, which is referencing to a taxonomy
Compatibility information
For Drupal < 8.6 use version 1.x.
For Drupal >=8.6 use version 2.x.
For Drupal >=9.x use version 3.x.
Related module
Module future
Drupal core should support this functionality in some future, so this module will be needless. Look at
Views should support - Entity: Has taxonomy term ID (with depth) - for entities for more information.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: E-commerce, Site structure
- Ecosystem: Commerce Core
67 sites report using this module
- Created by martin_klima on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


