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

Reviews by Category block showing reviews from ALL categories instead of the selected category #6347

Closed
wyter opened this issue Apr 29, 2022 · 0 comments · Fixed by #6358
Closed
Labels
block: reviews by category Issues related to the Reviews by Category block. type: bug The issue/PR concerns a confirmed bug.

Comments

@wyter
Copy link

wyter commented Apr 29, 2022

Describe the bug

When using the Reviews by Category Block:

  • The preview of the page shows reviews from the category chosen in the block
  • The published page shows reviews from ALL product categories, not just the ones specified in the block

To reproduce

Pre-requisite: If you have no product reviews, add reviews to at least two products in different categories. Make sure that these products don't share categories as well.

  1. Create a new page from WP-Admin → Pages

  2. Add the Reviews by Category block to the page

  3. Select only one product category
    Markup on 2022-04-29 at 15:09:43

  4. Check how the block renders reviews on the edit page: it works as expected and only shows reviews from the selected category
    Markup on 2022-04-29 at 15:11:51

  5. Publish the page and check how it renders reviews: it works not as expected, and shows reviews from other categories not selected
    Markup 2022-04-29 at 15 14 55

Expected behavior

When the page is published, the Reviews by Category block should only show categories from the selected categories. Presently, it pulls reviews from categories not selected.

Environment

WordPress (please complete the following information):

WordPress version: 5.9.3
WooCommerce version: 6.4.1
WooCommerce REST API package: 6.4.1 
WooCommerce Blocks package: 7.5.0


Desktop (please complete the following information):

  • OS: macOS
  • Browser Chrome
  • Version 100.0.4896.127

Additional context

Originally reported in 5171774-zd-woothemes

@wyter wyter added the type: bug The issue/PR concerns a confirmed bug. label Apr 29, 2022
@albarin albarin added the block: reviews by category Issues related to the Reviews by Category block. label May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: reviews by category Issues related to the Reviews by Category block. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants