-
Notifications
You must be signed in to change notification settings - Fork 219
Bug: All products block ignoring filters to modify product prices hooks #8972
Comments
The Is there a particular use case that you want to cover using the |
@gigitux as a third party dev, we are looking to filter the price and product visibility in particular (we're a wholesale plugin). I'm sure there's lots of other use cases as well (multi-currency, dynamic discounts, etc) that would require this to be filterable but this one of our particular ones. Since core is pushing for blocks of all kinds it would be great if we could maintain the standard of filtering all the things which is one of Woo's big draw cards for extensibility. |
Thanks for giving me context. We're currently working on a Products block that's available in a beta version since WooCommerce Blocks 9.1.0. The progress around that block can be tracked through this issue: woocommerce/woocommerce#42616. The plan is to migrate the existing product grid blocks (including All Products) to the new Products block. One of the major point to use the Products block is that it supports the hooks of WC Core. Given the direction towards the Products block, your suggestions don't fit with our current priorities/strategy for the project. This doesn’t mean what you are suggesting isn’t a good idea or doesn’t make sense – it’s just that we have limited time to work on various projects and bringing Products block to its full capacity is a top priority. The progress on Products block can be followed through the Store Editing Snaps series that we publish every other week. Here's a link to the latest edition. The plan is that this block will in future start to replace other blocks such as I'll go ahead and close this issue for now, but it does not mean that we didn't note the suggestions from this issue. Also, please be aware that closed issues can also still be commented on. |
Thanks also @gigitux - we just wanted to know where it was at/heading. Good to know progress is coming on the Products block. I would definitely encourage you and the team to think about extensibility, lots of plugins like ours work with display of products. If this new block is going to be the one block to rule them all it really needs to be quite flexible in terms of filtering both product content (like price and other elements) and also product visibility. Will also post a question about RC timeline on the latest blog post for you :) thanks again |
Describe the bug
I can't use woocommerce block filter to change product prices display using "All Products" Gutenberg blocks.
To reproduce
Steps to reproduce the behavior:
Expected behavior
It should display modified prices in all blocks when use any filter hooks above.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
WordPress (please complete the following information):
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
The purpose of this is to should display custom discounted prices using "All Products" block.
Note: I use "Product" block and work well.
The text was updated successfully, but these errors were encountered: