3 Commits
Author SHA1 Message Date
Geoff TaylorandGitHub b06af78939 devops: add nested category products regression test (#988)
Adds test confirming that querying a parent category's products
includes products from child and grandchild categories. The issue
was reported on v0.12.0 and is not reproducible on the current
codebase.
2026-03-23 23:06:37 -04:00
Geoff TaylorandGitHub fb93d6f6eb fix: term_taxonomy_id mismatch in coupon category connections and dead WC post type loop (#985)
- Fix coupon productCategories and excludedProductCategories connections
  to convert term_ids to term_taxonomy_ids before querying, resolving
  failures when term_id and term_taxonomy_id differ (shared terms across
  taxonomies)
- Remove dead WC post type taxonomy connection loop that was skipping
  products/variations and had no effect on remaining post types
- Remove unused WPGraphQL and WP_GraphQL_WooCommerce imports
- Add coupon category connection test with mismatched term IDs and
  exclude filter validation
- Add product category test with mismatched term_id/term_taxonomy_id
  regression coverage
2026-03-23 21:55:22 -04:00
e3ca7f895e feat: Add support for brands (#918) (#964)
* feat: Add support for brands (#918)

* feat: add product brand support with where args, taxonomy filter, and taxonomy mutation input fields

- Register product_brand taxonomy with WPGraphQL (fix indentation from #964)
- Add productBrand/productBrandIn/productBrandNotIn/productBrandId/productBrandIdIn/productBrandIdNotIn
  where args on products connection
- Add product_brand to taxonomy args map and case statements in product connection resolver
- Register additional input fields (display, menuOrder, imageId) on
  CreateProductCategoryInput and UpdateProductCategoryInput mutations
- Split ProductTaxonomyQueriesTest into ProductCategoryQueriesTest,
  ProductTagQueriesTest, ProductCategoryMutationsTest, ProductTagMutationsTest
- Add ProductBrandQueriesTest with 8 tests covering queries, connections,
  hierarchy, where args, taxonomy filter, and CRUD mutations

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2026-03-23 12:28:48 -04:00