I want to remove some links in the customer account side navigation section on my Magento ver. 2.1.8 store.
So, I have created a path in my custom theme:
My customer_account.xml file:
<?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <!-- Removing the link --> <referenceBlock name="block-name" remove="true"/> </body> </page>
I found few threads and tutorials online such as: How to add/remove links on my account navigation magento2?
However, I don't think all the links are included in those tutorials. How can I find out what is the name of this
referenceBlock so I can remove it?
I need to remove:
- My Downloadable products
- Stored payment methods
- Billing agreements
- My Saved cards
- My Recurring profiles
I am sure the downloadable products, billing agreement and my saved cards can be deleted using:
<referenceBlock name="customer-account-navigation-downloadable-products-link" remove="true"/> <referenceBlock name="customer-account-navigation-billing-agreements-link" remove="true"/> <referenceBlock name="customer-account-navigation-my-credit-cards-link" remove="true"/>
But how do I delete the Stored Payment Methods and My Recurring profiles links?