Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Products Block: Filtering by Category or Tag doesn't Work #8249

Closed
Tracked by #42616
druesome opened this issue Jan 20, 2023 · 1 comment · Fixed by #8377
Closed
Tracked by #42616

Products Block: Filtering by Category or Tag doesn't Work #8249

druesome opened this issue Jan 20, 2023 · 1 comment · Fixed by #8377
Assignees
Labels
block-type: product-query Issues related to/affecting all product-query variations. type: bug The issue/PR concerns a confirmed bug.

Comments

@druesome
Copy link

Describe the bug

Filtering products by category or tag in the Products block doesn't work.

To reproduce

Steps to reproduce the behavior:

  1. Insert the Products (Beta) block in a post or page
  2. In the block settings, enter a product category or tag under Filters
  3. Update the post or page

Expected behavior

For the post or page to display products belonging to the specified category or tag

What happened

The block does not respect the filter and displays all products on the live post or page.

Ticket

5877934-zd

Environment

WordPress (please complete the following information):

  • WordPress version: 6.1.1
  • WooCommerce version: 7.3.0
@druesome druesome added the type: bug The issue/PR concerns a confirmed bug. label Jan 20, 2023
@gigitux gigitux added the block-type: product-query Issues related to/affecting all product-query variations. label Jan 23, 2023
@imanish003
Copy link
Contributor

imanish003 commented Feb 2, 2023

There is this issue, according to which Filtering by Category or Tag works on frontend but not in Editor. That issue is there in Query Loop itself. For more info: WordPress/gutenberg#29438 (comment)

But it looks like there is a regression because of which now filters don't work on front-end either. I will look into it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block-type: product-query Issues related to/affecting all product-query variations. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
3 participants