Magento 2 – Add Custom Block Below Cart Summary Page

layoutmagento2

Dears,

How can I add my custom block to cart summary page? I checked the checkout_cart_index.xml file but couldn't find exact location so could you guys provide me any solution?

enter image description here
Thanks,
Max

Best Answer

Please add below code to app/design/frontend/Themename/Themedirectory/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>

I have tried this in my local and it's looking like this - https://prnt.sc/mbvoxm

Please check with clear your cache.

Related Topic