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

If you use multiple Product Collection patterns they share the query #11283

Closed
kmanijak opened this issue Oct 17, 2023 · 0 comments · Fixed by #11290
Closed

If you use multiple Product Collection patterns they share the query #11283

kmanijak opened this issue Oct 17, 2023 · 0 comments · Fixed by #11290
Labels
block: product collection Issues related to the Product Collection block focus: patterns WooCommerce patterns type: bug The issue/PR concerns a confirmed bug.

Comments

@kmanijak
Copy link
Contributor

Steps to reproduce

  1. Create new post
  2. Add "Product Collection Rows" and "Product Collection Simple Grid" patterns
  3. Save and go to frontend
  4. Change a page in one of the colections

Expected: Both Collections look like in Editor and have separated queries
Actual: Both Collections look the same an behave like clones. Changing page in one of them, changes the page in another.

Editor Frontend
image image

More details

The query ID is hardcoded in pattern files and it's set to 0, which eventually makes the Product Collection injected via patterns sharing the same queryID. Examples:

@kmanijak kmanijak added type: bug The issue/PR concerns a confirmed bug. focus: patterns WooCommerce patterns block: product collection Issues related to the Product Collection block labels Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: product collection Issues related to the Product Collection block focus: patterns WooCommerce patterns type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
1 participant