Milind Daraniya

Downloadable Products tabs remove from the Customer Dashboard Magento 2.

Published July 27th, 2023 2 min read

In Magento 2, the Customer Dashboard provides a comprehensive overview of a customer's account information and order history. By default, the dashboard includes tabs for Downloadable Products. However, you may want to customize the dashboard and remove the Downloadable Products tabs if they are not relevant to your business or customer needs. In this post, we'll guide you through the steps to remove the Downloadable Products tabs from the Customer Dashboard in Magento 2. Let's get started!

Create a file named customer_account.xml inside the app/design/frontend/{VendorName}/{themename}/Magento_Downloadable/view/frontend/layout folder and add the following code:

<?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">
    <body>
        <referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true" />
        <referenceBlock name="customer-account-navigation-my-downloadable-products-link" remove="true" />
    </body>
</page>

Clearing the Cache
To ensure that the changes take effect, clear the cache in Magento 2. You can do this by running the following command in your terminal:

php bin/magento cache:clean

Feel free to explore further customization options in Magento 2 and enhance your customer's dashboard with personalized features.

Happy customizing! 🎨🛒