0

My theme was extending blank layout perfectly fine until a recent upgrade from 2.1 to 2.3

I've noticed the templates are still loading from the theme, but definitely not the layout xml files. I can't find anything about that protocol changing so not sure what is going on.

app/design/frontend/xxx/xxx/layout/Magento_Catalog/layout/catalog_product_view.xml

<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> 
<body>
    <attribute name="itemtype" remove="true" />
    <attribute name="itemscope" remove="true" />
    <referenceBlock name="product.price.final">
        <arguments>
            <argument name="zone" xsi:type="boolean">false</argument>
        </arguments>
    </referenceBlock>

    <update handle="catalog_product_opengraph" />

    <referenceBlock name="view.addto.compare" remove="true"/>
    <referenceContainer name="content">
        <container name="product.info.container" htmlTag="div" htmlClass="product-info-container" before="-"></container>

        <referenceContainer name="product.info.main">
            <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.name" template="product/view/attribute.phtml" before="-">
                <arguments>
                    <argument name="at_call" xsi:type="string">getName</argument>
                    <argument name="at_code" xsi:type="string">name</argument>
                    <argument name="css_class" xsi:type="string">product-name</argument>
                    <argument name="at_label" xsi:type="string">none</argument>
                    <argument name="add_attribute" xsi:type="string">itemprop="name"</argument>
                </arguments>
            </block>

            <block class="Magento\Catalog\Block\Product\View\Description" name="product.info.price.stock" template="product/view/price-stock.phtml" after="product.info.name">
                <block class="Magento\Catalog\Pricing\Render" name="product.price.final.mnho">
                    <arguments>
                        <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                        <argument name="price_type_code" xsi:type="string">final_price</argument>
                        <argument name="zone" xsi:type="string">item_view</argument>
                    </arguments>
                </block>
                <block class="Magento\Catalog\Pricing\Render" name="product.price.regular.mnho">
                    <arguments>
                        <argument name="price_render" xsi:type="string">product.price.render.default</argument>
                        <argument name="price_type_code" xsi:type="string">regular_price</argument>
                        <argument name="zone" xsi:type="string">item_view</argument>
                    </arguments>
                </block>
            </block>

            <referenceBlock name="product.info.sku" remove="true"/>
            <referenceBlock name="product.price.final" remove="true"/>
            <referenceBlock name="product.info.overview" remove="true"/>

            <block class="Magento\Cms\Block\Block" name="product.page.notice" after="product.attributes">
                <arguments>
                    <argument name="block_id" xsi:type="string">product_page_notice</argument>
                </arguments>
            </block>

            <referenceContainer name="product.info.form.content">
                <block class="Magento\Cms\Block\Block" name="product.page.conditions" after="product.info.grouped">
                    <arguments>
                        <argument name="block_id" xsi:type="string">product-conditions</argument>
                    </arguments>
                </block>
            </referenceContainer>
        </referenceContainer>
    </referenceContainer>

    <referenceContainer name="product.info.simple.extra" remove="true"/>

    <referenceContainer name="product.info.details">
        <block class="Magento\Cms\Block\Block" name="retail.store" group="detailed_info">
            <arguments>
                <argument name="block_id" xsi:type="string">retail-store-block</argument>
            </arguments>
        </block>
        <referenceBlock name="product.info.description">
            <arguments>
                <argument name="at_label" xsi:type="string">Product Details</argument>
                <argument name="title" translate="true" xsi:type="string">Product Details</argument>
            </arguments>
        </referenceBlock>
    </referenceContainer>
</body>

<move element="product.info.media" destination="product.info.container" before="product.info.main"/>
<move element="product.info.main" destination="product.info.container" after="product.info.media"/>
<move element="product.info.type" destination="product.info.price.stock" />
<move element="breadcrumbs" destination="content" before="-"/>
<move element="product.attributes" destination="product.info.main" after="product.info"/>
<move element="product.page.notice" destination="product.info.main" after="product.attributes"/>
</page>

Did something change or perhaps something get more strict that i missed? Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.