Steps to reproduce
Render the output of a block of class Magento\Checkout\Block\Cart\Link
Expected result
A link with "My Cart" and the number of items
Actual result
Nothing output.
Solution
Add "!" in the _toHtml of the file module-checkout/Block/Cart/Link.php
protected function _toHtml()
{
if ($this->_moduleManager->isOutputEnabled('Magento_Checkout')) {
return '';
}
return parent::_toHtml();
}
to
protected function _toHtml()
{
if (!$this->_moduleManager->isOutputEnabled('Magento_Checkout')) {
return '';
}
return parent::_toHtml();
}