-
Notifications
You must be signed in to change notification settings - Fork 219
The WooCommerce Product Grid Block
block is not visible on the front end when the Products
block is on the same page.
#8505
Comments
The problem is replicable with the Single Product template with #8442. |
I'm sorry for this late reply! But I want to share 2 cents here. I'm wondering if this is a real bug. Why do merchants want to add the I agree that a block shouldn't affect other blocks, but:
What do you think? I just want to reevaluate my thought process, I'm curious about yours. |
Hey @dinhtungdu, thanks for explaining your point of view! I don't think the PR adds too much complexity to the codebase. I believe that we should handle these edge cases when possible (and doesn't require a lot of time). Furthermore, even if we postponed the I'm fine with the revert this PR if you think that it isn't necessary :D |
I don't think we need to revert the PR. I just want to discuss the POV here 😄
Can you explain this in more detail? If the compatibility layer breaks pages with multiple |
I think there are some legit use cases. A couple that come to my mind:
I agree it's kind of an edge case, but I think it's better to have it fixed than keeping it as it was. |
@Aljullu If the |
Oh, sorry, I missed that. In that case, I agree, it doesn't seem like a use case that might be useful right now. 🤔 |
I was referring to the use case that @Aljullu described above, so I'm thinking about it, but this PR is still necessary for the |
Describe the bug
The
WooCommerce Product Grid Block
block is not visible on the front end when theProducts
block is on the same page.This issue is caused by the Compatibility Layer. Probably, the reason is it removes default hooks. We should improve the logic and add the Compatibility Layer only when the
WooCommerce Product Grid Block
isn't on the page.With #8507, we are disabling the Compatibility Layer because WC Blocks 9.6.0 will be included in WC Core, but we should on a "real" fix.
To reproduce
Steps to reproduce the behavior:
Appearance » Editor
.WooCommerce Product Grid Block
isn't visible.Expected behavior
WooCommerce Product Grid Block
should be visible.Screenshots
rating.mp4
The text was updated successfully, but these errors were encountered: