Product Category Display Conditions Should Support Parent Category Inheritance #33867
dachilla
started this conversation in
Feature Request
Replies: 1 comment
-
|
Also, in loop grid, when I want to show product categories, I can't show them with custom order (like I drag and drop in wordpress) or even sort manually in elementor. Its options is only by product category ID (date of creation) or by name! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Problem
In Elementor Theme Builder (WooCommerce Product Archive templates), Product Category display conditions do not inherit to sub-categories.
Example setup:
Template A:
Include → All Product Archives
Template B:
Include → Product Categories → Swimsuits
Expected behavior:
All sub-categories of Swimsuits should automatically use Template B.
Actual behavior:
Only the Swimsuits category archive matches. All child categories fall back to the global Product Archive template unless every sub-category is manually added to the condition list.
This makes category-based template targeting impractical for stores with deep or frequently changing category hierarchies.
Propose a Solution
Add native support for hierarchical taxonomy logic in display conditions, such as:
“Product Category → Swimsuits (including sub-categories)”
Or a condition like “Any Child / Descendant Of”
This functionality should apply to all hierarchical taxonomies (e.g. product_cat) and be consistent across Include and Exclude conditions.
Additional Context
A working workaround exists using the elementor/theme/register_conditions hook to register a custom condition that correctly matches all descendant product categories.
Related discussion and reference implementation:
#8256 (comment)
This confirms the limitation is known and solvable at the framework level, and would be significantly more usable if implemented natively in Elementor Pro.
Agreement
Beta Was this translation helpful? Give feedback.
All reactions