[Single Product] Having a Post/ProductTemplate block within the Single Product breaks the expected execution for passing the context #45374
Labels
focus: product
Issues related to product or product page.
team: Mothra
WC Merchants activation and store management
Prerequisites
Describe the bug
Adding a Query Loop or a Product Collection block within the Single Product container breaks the execution sequence, as expected by the Single Product's block context handler. That's because the
woocommerce/product-template
block's inner blocks are repeated for each query result, and these additional renders do not exist within the$this->single_product_inner_blocks_names
array.Expected behavior
The special needs of a Post/Product Template block should be utilized in the recurring process of passing the context.
Actual behavior
Currently, the Post/ProductTemplate blocks are rendering more inner blocks than whats expected when fetching the blocks inner blocks.
See
Steps to reproduce
WordPress Environment
Isolating the problem
The text was updated successfully, but these errors were encountered: