hi guys, i just want to add bread crumb in cart page. below is the page link
https://naturals-bj7hsc4doknstbaf.mojostratus.io/checkout/cart
can anyone help me on this ?
Solved! Go to Solution.
Hi @bharath553
Create a file app/design/frontend/vendor/theme/Magento_Checkout/layout/checkout_cart_index.xml
Add below code in the checkout_cart_index.xml file.
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="checkout_cart_item_renderers"/>
<body>
<referenceBlock name="breadcrumbs">
<action method="addCrumb">
<argument name="crumbName" xsi:type="string">Home</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" xsi:type="string">Home</item>
<item name="label" xsi:type="string">Home</item>
<item name="link" xsi:type="string">/</item>
</argument>
</action>
<action method="addCrumb">
<argument name="crumbName" xsi:type="string">Shopping Cart</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" xsi:type="string">Shopping Cart</item>
<item name="label" xsi:type="string">Shopping Cart</item>
</argument>
</action>
</referenceBlock>
</body>
</page>Fore more details refer this link - https://magento.stackexchange.com/questions/174157/how-to-add-breadcrumbs-on-cart-page-in-magento2
Hope it helps !
Hi @bharath553
Create a file app/design/frontend/vendor/theme/Magento_Checkout/layout/checkout_cart_index.xml
Add below code in the checkout_cart_index.xml file.
<?xml version="1.0"?>
<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="checkout_cart_item_renderers"/>
<body>
<referenceBlock name="breadcrumbs">
<action method="addCrumb">
<argument name="crumbName" xsi:type="string">Home</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" xsi:type="string">Home</item>
<item name="label" xsi:type="string">Home</item>
<item name="link" xsi:type="string">/</item>
</argument>
</action>
<action method="addCrumb">
<argument name="crumbName" xsi:type="string">Shopping Cart</argument>
<argument name="crumbInfo" xsi:type="array">
<item name="title" xsi:type="string">Shopping Cart</item>
<item name="label" xsi:type="string">Shopping Cart</item>
</argument>
</action>
</referenceBlock>
</body>
</page>Fore more details refer this link - https://magento.stackexchange.com/questions/174157/how-to-add-breadcrumbs-on-cart-page-in-magento2
Hope it helps !