0

enter image description here

Help me to add a cms block in the red area like above image (after sidebar) by checkout / index / index. Thank you for your help

2
1

Using Theme :- app/design/frontend/Theme/ThemeName/Magento_Checkout/layout/checkout_cart_index.xml file

<referenceContainer name="checkout.cart.container">
        <block class="Magento\Framework\View\Element\Template" name="checkout.cart.content.block" after="-" template="Magento_Checkout::custom.phtml"/>
</referenceContainer>

Using Custom module :-

create app/code/Vendor/Module/view/frontend/layout/checkout_cart_index.xml

<?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>
       <referenceContainer name="checkout.cart.container">
          <block class="Magento\Framework\View\Element\Template" name="checkout.cart.content.block" after="-" template="Magento_Checkout::custom.phtml"/>
       </referenceContainer>
    </body>
</page>
1
  • Thanks for your answer Oct 23 '20 at 4:37

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.