Make the Content's Filters block work well when placed in the separate region after the Product List block

Created on 18 March 2025, about 2 months ago

Problem/Motivation

Currently, the Content's Filters block works well only if it is rendered before the Product List block. But we can have cases when it is placed in a separate region, and rendered after - in that case, it stops working.

Steps to reproduce

1. Place a Product list block to the sidebar_first region with the product_list_index=2.
2. Place the Filters block to the footer region with the product_list_index=2.
3. Open the catalog page, and try to use the filters in the footer.
They will work wrong.

Proposed resolution

Seems we need to check if the product list block with the configured product_list_index is already pre-rendered, and if not - find the block and pre-render it (to execute the GraphQL request) to receive the list of facets from it.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024