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

Product Query: Inherit Query template enabled and preview on the editor side #7921

Closed
Tracked by #42616
gigitux opened this issue Dec 12, 2022 · 1 comment · Fixed by #7965
Closed
Tracked by #42616

Product Query: Inherit Query template enabled and preview on the editor side #7921

gigitux opened this issue Dec 12, 2022 · 1 comment · Fixed by #7965
Assignees
Labels
block-type: product-query Issues related to/affecting all product-query variations. type: bug The issue/PR concerns a confirmed bug.

Comments

@gigitux
Copy link
Contributor

gigitux commented Dec 12, 2022

Describe the bug

This issue is a follow-up of this comment.

On the Product Search Results template, if the user applies some filters on the Product Query and after that enables "Inherit Query from template", the preview doesn't update and shows only the products that match the filters.

The preview for other templates is updated correctly because Gutenberg logic takes care of it.

To reproduce

Steps to reproduce the behavior:

  1. Edit the Product Search Results template.
  2. Add the Products block.
  3. Add the Sale Status filter and select Show only products on sale.
  4. Now, enable Inherit query from template.
  5. Notice only products on sale are displayed in the editor.
  6. Instead, all products are shown in the front end.

Expected behavior

When the "Inherit Query from template" option is enabled, the preview should be updated and show all the products.

@github-actions
Copy link
Contributor

This issue has been marked as stale because it has not seen any activity within the past 60 days. Our team uses this tool to help surface issues for review. If you are the author of the issue there's no need to comment as it will be looked at.

@github-actions github-actions bot added the status: stale Stale issues and PRs have had no updates for 60 days. label Feb 27, 2023
@gigitux gigitux removed the status: stale Stale issues and PRs have had no updates for 60 days. label Feb 27, 2023
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
1 participant