Posted on

mini cart is not showing count and product added in cart?

I’ve a custom phtml file where I;ve added the below code and still cart shows empty.

<?php echo $this->getLayout()
->createBlock(‘MagentoCheckoutBlockCartSidebar’)
->setTemplate(‘Magento_Checkout::cart/minicart.phtml’)
->toHtml(); ?>
</li>

Leave a Reply

Your email address will not be published. Required fields are marked *