Question

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>
Was it helpful?

Solution

The issue is with core Magento. I have created an issue on the official GitHub repository.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top