We are currently developing our site(community edition and ideally would like to hide the shopping cart on the home page and various other content related pages.

I can not find a way to complete this and any help would be appreciated?


There is a better idea.

  • Login to admin panel and go to CMS | Pages.
  • Open home page and click on Design tab.
  • Under Custom Layout Update XML, put this code:

<reference name="header"> <remove name="minicart_head" /> </reference>

  • Click on Save Page button and check frontend.

Note: Flush Magento's cache, if required.

Please let me know if you find any problem.

  • Open cms.xml file under app/design/frontend/<package>/<theme>/layout folder.
  • Find:

<cms_index_index translate="label"> <label>CMS Home Page</label> </cms_index_index>

and replace it with:

<cms_index_index translate="label"> <label>CMS Home Page</label> <reference name="header"> <remove name="minicart_head" /> </reference> </cms_index_index>

  • Clear cache and check home page.

Note: You can follow similar process for other pages also.

Please let me know if you find any problem.

  • Thanks for the comments. I will head back into the project later today and advise. – James Aug 25 '16 at 14:06

In your Theme Template/checkout/cart/minicart

and apply this check

if(Mage::getBlockSingleton('page/html_header')->getIsHomePage()) {
    echo 'You are in Homepage!';
} else {
    echo 'You are NOT in Homepage!';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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