Magento 2 remove mini-cart content in cart page
-
13-04-2021 - |
题
How can I remove Magento 2.3.1 minicart content in checkout_cart_index (cart page), but keeping cart header link and counter?
解决方案
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