I would like to show the customer dashboard "Pay trade customer link" to particular user (Ex: example@gmail.com) i have followed this link Add New inbox tab in customer my dashboard in magento 2 for adding the custom link in the customer dashboard. hence i have created a new custom module and did the changes accordingly.
Please find the screenshot:
Please suggest me how i can do this.
Best Answer
please check the below code.
step 1 path - app/code/Training/Msg/registration.php
step 2 path - app/code/Training/Msg/etc/module.xml
step 3 path - app/code/Training/Customerlink/etc/module.xml
step 4 path - app/code/Training/Msg/etc/frontend/routes.xml
step 5 path - app/code/Training/Msg/Controller/Index/Msg.php
step 6 path - app/code/Training/Msg/Block/Current.php
Here the custom link Customer Message only display to user group id is not equal to 1.
step 7 path - app/code/Training/Msg/Block/Msg.php
step 8 path - app/code/Training/Msg/view/frontend/layout/customer_account.xml
step 9 path - app/code/Training/Msg/view/frontend/layout/msg_index_msg.xml
step 10 path - app/code/Training/Msg/view/frontend/templates/msg.phtml
OR
You can download the module from github link https://github.com/jothibasuj/customer-dashboard-link-based-on-condition