nopCommerce 4.2 plugin add to My Account Navigation

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
I am currently making a widget plugin and I see this topic a few times on the forums but cannot find a good example.

I just want to add my new plugin page to the My Account navigation list, no specific order just add it.

Anyone got a good example out there ?

thanks
3 года назад
I figured it out from other plugins examples thanks!
3 года назад
Hello Breau,
In the widget plugin you created, you should return the widget zone in accordance with the GetWidgetZones method.

Sample Code:

public IList <string> GetWidgetZones ()
{
        return new List <string> { PublicWidgetZones.AccountNavigationBefore };
}


You can see which zone to add in Views > Shared> Components> CustomerNavigation> Default.cshtml. Just examine the Widget Components.

for Before :
PublicWidgetZones.AccountNavigationBefore

for after :
PublicWidgetZones.AccountNavigationAfter

For both of them,
return new List <string> { PublicWidgetZones.AccountNavigationBefore, PublicWidgetZones.AccountNavigationAfter  };

Thanks,
Mehmet KURT
3 года назад
Thanks for the info
I was able to figure it out looking at other plugins
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.