Hi, I'm using magento 2.2 community edition, using Pearl theme from Welt.
I'd like to know how to make the menu bar appear at checkout page cause apparently it's not there, thanks!
Create checkouut_index_index.xml file inside your module layout folder and keep below xml code under it,
<?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="catalog.topnav" remove="false"/> </body> </page>
Yes it is not there in default Magento 2 as well - As Magento 2 have enclosed checkout which helps you to increase your conversion ratio and security perspective as well.
Main purpose behind is if we show navigation on the checkout then there might be a case user gets distracted on another products/categories and not able to do complete checkout - so that's the reason Magento 2 keeps enclosed checkout to more focus on the order and checkout process.
If you still wanted to showcase navigation bar on the checkout page - then below is the way :
In your custom module you will required to create a file called : checkouut_index_index.xml
Put below code in that file :
<?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="catalog.topnav" remove="false"/> </body> </page>
Clear and flush the cache and check it will showcase navigation bar on the checkout !
Hope it helps !