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

Make Filter Products by Stock work with PHP templates #6137

Closed
Aljullu opened this issue Mar 28, 2022 · 0 comments · Fixed by #6261
Closed

Make Filter Products by Stock work with PHP templates #6137

Aljullu opened this issue Mar 28, 2022 · 0 comments · Fixed by #6261
Assignees
Labels
block: filter by stock Issues related to the Filter by Stock block. focus: FSE Work related to prepare WooCommerce for FSE. type: enhancement The issue is a request for an enhancement.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Mar 28, 2022

Currently, it's not possible to use the Filter Products by Stock block with PHP templates. That's because that block is designed to only work with the All Products block.

This issue is about updating it, so it can work with the Shop catalog template.

Take into account currently there isn’t a widget equivalent, so it might require some changes in WC core in order to get this block working with PHP templates. (That's why the estimate of this issue is higher than the one from similar issues)

To reproduce

  1. With a block theme, go to Appearance > Editor > Template > Product Catalog.
  2. Add the Filter Products by Stock block above the product grid.
  3. Change the selected values in the filter block
  4. Notice the products in the product grid don't update.

Expected behavior

The products in the product grid should update based on the selected filters.

@Aljullu Aljullu added type: enhancement The issue is a request for an enhancement. focus: FSE Work related to prepare WooCommerce for FSE. block: filter by stock Issues related to the Filter by Stock block. labels Mar 28, 2022
@gigitux gigitux self-assigned this Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: filter by stock Issues related to the Filter by Stock block. focus: FSE Work related to prepare WooCommerce for FSE. type: enhancement The issue is a request for an enhancement.
Projects
None yet
2 participants