Sachin2018 wrote:Hi everyone,
I have updated my plugin in nopcommerce 4.0 but i am facing the problem in opening my configue page in admin panel.
The link which i am passing is http://localhost/Admin/Controllername/Configure
but page not found is showing. This is because i am not able to go to view from controller's action.
Please help me
Did you do the following things ?
i.e. ==> NivoSliderPlugin.cs
/// <summary>
/// Gets a configuration page URL
/// </summary>
public override string GetConfigurationPageUrl()
{
return _webHelper.GetStoreLocation() + "Admin/WidgetsNivoSlider/Configure"; // put YourControllerName
}
Then controller ==>
[Area(AreaNames.Admin)]
public class WidgetsNivoSliderController : BasePluginController //YourControllerName
{
}
Here is the example of Nivoslider plugin 4.00 But you have to this two thing in you plugin too.
1. public override string GetConfigurationPageUrl()
{
return _webHelper.GetStoreLocation() + "Admin/YourControllerName/Configure";
}
2. [Area(AreaNames.Admin)] put on controller