Magento 2 remove mini-cart content in cart page
-
13-04-2021 - |
Question
How can I remove Magento 2.3.1 minicart content in checkout_cart_index (cart page), but keeping cart header link and counter?
Solution
After all, I've replaced in Magento_Checkout/templates/cart/minicart.phtml
:
this row : if ($block->getIsNeedToDisplaySideBar()):
with this: <?php if ($block->getIsNeedToDisplaySideBar() && $block->getRequest()->getFullActionName() !== 'checkout_cart_index'): ?>
Seams to work just fine. Thank you
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange