You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Request a category with products nodes returns only first-level category products. This was changed in v0.12.0. I can't find any solution to retrieve all products in nested categories since v0.12.0.
To Reproduce
Steps to reproduce the behavior:
Install both versions 0.11.2 and 0.12.0
Activate 0.11.2
Make a request: query GetCategory { productCategories(where: {slug: "komfort"}) { nodes { id name uri products(first: 99) { nodes { ... on VariableProduct { id name variations { nodes { id name } } } ... on SimpleProduct { id name } } } } } }
Deactivate v0.11.2
Activate v0.12.0
Make a request with the same query
Expected behavior
As WooCommerce supports categories hierarchy and can be changed in Appearance - > WooCommerce -> Categories / Products I'm expecting see the same result. I mean, If I have hierarchy such as:
Describe the bug
Request a category with products nodes returns only first-level category products. This was changed in v0.12.0. I can't find any solution to retrieve all products in nested categories since v0.12.0.
To Reproduce
Steps to reproduce the behavior:
query GetCategory { productCategories(where: {slug: "komfort"}) { nodes { id name uri products(first: 99) { nodes { ... on VariableProduct { id name variations { nodes { id name } } } ... on SimpleProduct { id name } } } } } }
Expected behavior
As WooCommerce supports categories hierarchy and can be changed in Appearance - > WooCommerce -> Categories / Products I'm expecting see the same result. I mean, If I have hierarchy such as:
-- Smartphones (0)
--- Apple (18)
--- Samsung (5)
So when I request category "Electronics" with products query, I want to see all products in child categories (Apple and Samsung).
It works as expected in v.0.11.2, then 0.12.0 not.
Plugin Versions
The text was updated successfully, but these errors were encountered: