Skip to content

Commit 7f30f6c

Browse files
kweijihor-sviziev
authored andcommitted
Add names to existing block
Add names to blocks in layout XML `catalog_product_view_type_grouped.xml` to make them accessible (cherry picked from commit a4edec7)
1 parent 118c86c commit 7f30f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/GroupedProduct/view/frontend/layout/catalog_product_view_type_grouped.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
<container name="product.info.grouped.extra" after="product.info.grouped" before="product.info.grouped" as="product_type_data_extra" label="Product Extra Info"/>
1414
</referenceContainer>
1515
<referenceContainer name="product.info.grouped.extra">
16-
<block class="Magento\GroupedProduct\Block\Stockqty\Type\Grouped" template="Magento_CatalogInventory::stockqty/composite.phtml"/>
16+
<block class="Magento\GroupedProduct\Block\Stockqty\Type\Grouped" name="product.info.grouped.stock-composite" template="Magento_CatalogInventory::stockqty/composite.phtml"/>
1717
</referenceContainer>
1818
<referenceContainer name="product.info.type">
19-
<block class="Magento\GroupedProduct\Block\Product\View\Type\Grouped" as="product.info.grouped" template="Magento_GroupedProduct::product/view/type/default.phtml"/>
19+
<block class="Magento\GroupedProduct\Block\Product\View\Type\Grouped" name="product.info.grouped.stock" as="product.info.grouped" template="Magento_GroupedProduct::product/view/type/default.phtml"/>
2020
</referenceContainer>
2121
</body>
2222
</page>

0 commit comments

Comments
 (0)