I am using Magento 2.4.6, and using the multi-site function, One of the sites, I like to display as a catalog, does not need a shopping cart (My Cart). I know that hiding prices can hide the add to cart button on the product page, but I need to know how to delete or hide the My Cart in the navigation bar.

Google Chrome: enter image description here

iphone mobile browser: enter image description here

1 Answer 1


Best Approach of this Scenario is to Create a Child theme and assign the that to specfic website

int the theme


<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <referenceBlock name="minicart" remove="true" />
  • Is it possible if I don't want to delete or hide but to redirect the mini cart (My cart) to a new page?
    – Angelo
    Commented Aug 29, 2023 at 8:03
  • 1
    for that you have to override vendor/magento/module-checkout/view/frontend/templates/cart/minicart.phtml file in your theme and change functionality of aanchor tag
    – Waqar Ali
    Commented Aug 29, 2023 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.