guys I'm adding minicart into my custom footer and its not updating on addtocart or page reload nor the popup on minicart click opens when I click it, not giving any exception or error.
I'm using this code to call it in my footer :
<?php echo $this->getLayout() ->createBlock('Magento\Checkout\Block\Cart\Sidebar') ->setTemplate('Magento_Checkout::cart/minicart.phtml') ->toHtml(); ?>
I'm using Porto theme and I have extended Porto to my custom theme, minicart is working in header but when I try to use it in footer it stops working. I don't know what wrong with it.