Monday, 16 March 2015

Remove My Downloadable Products link from the My Account Block in Magento



In Magento, on your ecommerce site may be such that you do not have any downloadable products. In that case, you may not want to show the “My Downloadable Products” link in the My Account sidebar. Follow the steps below to remove the link.
1. Copy the file downloadable.xml from app/design/frontend/base/default/layout to app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout or app/design/frontend/default/YOUR_THEME/layout
2. Edit the downloadable.xml copied to the app/design/frontend/YOUR_PACKAGE/YOUR_THEME/layout folder or app/design/frontend/default/YOUR_THEME/layout folder
3. Look for the following Code snippet
<customer_account>
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>
</reference>
</customer_account>

4. Comment the following Lines
<action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>
to
<!--<action method="addLink" translate="label" module="downloadable"><name>downloadable_products</name><path>downloadable/customer/products</path><label>My Downloadable Products</label></action>-->

5. Refresh the Magento Cache and Website Page to see the changes



No comments:

Post a Comment