How to add breadcrumbs on cart page in magento2?


if you want to add breadcrumbs in shopping cart page please create below file.
app/design/frontend/vendor/theme/Magento_Checkout/layout/checkout_cart_index.xml


 <?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">Shoppint Cart</argument>  
         <argument name="crumbInfo" xsi:type="array">  
           <item name="title" xsi:type="string">Shoppint Cart</item>  
           <item name="label" xsi:type="string">Shoppint Cart</item>  
         </argument>  
       </action>  
     </referenceBlock>  
   </body>  
 </page>  

No comments:

Post a Comment

Know us

Contact us

Name

Email *

Message *