-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed as not planned
Closed as not planned
Copy link
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
From @Aljullu in #72313 (review):
In addition to that, the Hoodies categories shows different totals (3 vs 4) in the frontend (while both show the correct value, 3, in the editor). That's because I have one Hoodie product which is 'hidden' in the catalog.
Step-by-step reproduction instructions
- Install the WooCommerce plugin and enable experimental blocks in the Gutenberg plugin
- Add product categories and products and set one of the products to hidden
- Add the Product Categories List block (from WooCommerce), the Terms List block (with show term counts), and the Terms Query block (with Term Count blocks) to a page and ensure all are set to the product category taxonomy
- Observe that the term counts in the editor are correct for terms with hidden products but not correct on the front end
Screenshots, screen recording, code snippet
In the screenshots below, Product cat 2 includes one hidden product.
Editor:
Front end:
Environment info
- WordPress 6.8.3
- Gutenberg plugin 21.8.1
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended