Magento 2.3.3: Does catalog_product_view.xml not pass down containers to specific product types?
-
28-03-2021 - |
문제
I have created a catalog_product_view.xml in my theme and when I go to create a widget and select all product types in the layout updates section I can see my custom container I created.
If I then change to simple product type I can't see my container. Do I really need to configure each product type individually?
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Custom Containers -->
<referenceContainer name="content">
<referenceContainer name="product.info.main">
<container name="test.container" label="Test Container" after="product.name" htmlTag="div" htmlClass="test-container" />
</referenceContainer>
</referenceContainer>
</body>
</page>
해결책
The issue is with core Magento. I have created an issue on the official GitHub repository.
제휴하지 않습니다 magento.stackexchange