2

I'd like to add submenu in Customer admin menu. I have this code below to show my custom submenu of customer support.

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
    <menu>
        <add id="Ced_CsCustomerSupport::customers_support_information"
            title="Customer Information"
            translate="title"
            module="CsCustomerSupport"
            sortOrder="50"
            parent="Magento_Customer::customer"
            action="cscustomersupport/customer/index"
            resource="Ced_CsCustomerSupport::customers_support_information"/>
    </menu>
</config>

enter image description here

But it's not showing up. Anything I can do with this?

Thank you in Advance

1
  • please check your module status. your module must be enable.
    – Msquare
    Sep 17 '20 at 4:46
1

Try This Code

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Backend/etc/menu.xsd">
   <menu>
         <add id="Ced_CsCustomerSupport::customers_support_information"
            title="Ced CsCustomer Support"
            translate="title"
            module="Ced_CsCustomerSupport"
            sortOrder="50"
            parent="Magento_Customer::customer"
            resource="Ced_CsCustomerSupport::customers_support_information" />

          <add id="Ced_CsCustomerSupport::menu"
           title="Customer Information"
           module="Ced_CsCustomerSupport"
           sortOrder="100"
           parent="Ced_CsCustomerSupport::customers_support_information"
           action="cscustomersupport/customer/index"
           resource="Ced_CsCustomerSupport::menu"/>

</menu>
</config>
6
  • Thank you @msquare. It works, is there any reason why I cant add submenu directly without making the header to the customer existing menu ?
    – Sam
    Sep 17 '20 at 4:49
  • you can add this line <add id="Ced_CsCustomerSupport::menu" title="Customer Information" translate="title" module="Ced_CsCustomerSupport" sortOrder="80" parent="Magento_Customer::customer" action="cscustomersupport/customer/index" resource="Ced_CsCustomerSupport::menu"/> to add only menu without title
    – Msquare
    Sep 17 '20 at 4:52
  • please check and update me.
    – Msquare
    Sep 17 '20 at 4:53
  • Okay thank you for the clearance @Msquare. I'm sorry, I can't upvote yet since im new here.
    – Sam
    Sep 17 '20 at 4:54
  • please update me above menu is added or not ?
    – Msquare
    Sep 17 '20 at 4:55

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.