We are currently developing our site(community edition 1.9.2.4) 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.
admin panel
and go to CMS | Pages
.Custom Layout Update XML
, put this code:<reference name="header">
<remove name="minicart_head" />
</reference>
Note: Flush Magento's cache, if required.
Please let me know if you find any problem.
cms.xml
file under app/design/frontend/<package>/<theme>/layout
folder.<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>
Note: You can follow similar process for other pages also.
Please let me know if you find any problem.
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!';
}