Magento2: can't add Header and Footer on checkout page

Created on 29 Mar 2019  路  5Comments  路  Source: magento/magento2

Hi Developers,
i am developing a e-store using Magento 2.3.0 and facing issue with adding header and footer on checkout page. I am using Magento blank theme as parent
I have tried to overriding "checkout_index_index.xml" in my child theme ->> "app/design/frontend/XXXXXX/xxxx/Magento_Checkout/layout"
<referenceBlock name="minicart" remove="false" />
<referenceContainer name="header.panel" remove="false" />
<referenceBlock name="top.search" remove="false" />
<referenceBlock name="catalog.compare.link" remove="false" />
<referenceBlock name="catalog.topnav" remove="false"/>
<referenceContainer name="footer-container" remove="false"/>

and
<referenceBlock name="minicart" display="true" />
<referenceContainer name="header.panel" display="true" />
<referenceBlock name="top.search" display="true" />
<referenceBlock name="catalog.compare.link" display="true" />
<referenceBlock name="catalog.topnav" display="true" />
<referenceContainer name="footer-container" display="true" />

Please suggest a way to do this.

Format is not valid

Most helpful comment

Experiencing this in 2.3.3. This is completely unrelated to #5849.

I was able to change layout="checkout" to layout="1column" and added the code in the initial report to fix this bug.

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="minicart" remove="false" /> <referenceContainer name="header.panel" remove="false" /> <referenceBlock name="top.search" remove="false" /> <referenceBlock name="catalog.compare.link" remove="false" /> <referenceBlock name="catalog.topnav" remove="false"/> <referenceContainer name="footer-container" remove="false"/> </body> </page>

All 5 comments

Hi @engcom-backlog-nazar. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • [ ] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • [ ] 4. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento-engcom-team give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

  • [ ] 5. Verify that the issue is reproducible on 2.2-develop branch.

    Details- Add the comment @magento-engcom-team give me 2.2-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.2-develop branch, please add the label Reproduced on 2.2.x

  • [ ] 6. Add label Issue: Confirmed once verification is complete.

  • [ ] 7. Make sure that automatic system confirms that report has been added to the backlog.

Hi @hetramjanghu, same here -> https://github.com/magento/magento2/issues/5849 I'm closing as duplicate. thanks for collaboration.

I am having this same issue with 2.3.1
Editing checkout_index_index.xml does not help
the #5849 link above is not a duplicate. Please reopen this and advise us how to add the header and footer to the checkout page

Experiencing this in 2.3.3. This is completely unrelated to #5849.

I was able to change layout="checkout" to layout="1column" and added the code in the initial report to fix this bug.

<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="minicart" remove="false" /> <referenceContainer name="header.panel" remove="false" /> <referenceBlock name="top.search" remove="false" /> <referenceBlock name="catalog.compare.link" remove="false" /> <referenceBlock name="catalog.topnav" remove="false"/> <referenceContainer name="footer-container" remove="false"/> </body> </page>

Thank you so much brother, it's working after change layout to ="1column"

Was this page helpful?
0 / 5 - 0 ratings