Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was 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

@gigitux

Description

@gigitux

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.

Metadata

Metadata

Assignees

Labels

block-type: product-queryIssues related to/affecting all product-query variations.type: bugThe issue/PR concerns a confirmed bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions