Display alert message from my plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 năm cách đây
Hi everyone!

I'm working on a nopCommerce plugin and I need to show an alert message when can't connect to a external url
but I don't know how can I do that

Thanks in advance!
7 năm cách đây
Hi,

to show notifications, you can use ErrorNotification and SuccessNotification methods.
7 năm cách đây
Mariann wrote:
Hi,

to show notifications, you can use ErrorNotification and SuccessNotification methods.


Ok thank u!
Where is the namespace of these methods?

Do I need to add some references to my plugin ?
7 năm cách đây
Look how it used (SuccessNotification) in the Configure method of the WidgetsNivoSliderController, for example (Nivo Slider plugin).
You don't need to add references in your controller.
7 năm cách đây
You have to inherit BasePluginController for SuccessNotification function.
7 năm cách đây
Mariann wrote:
Look how it used (SuccessNotification) in the Configure method of the WidgetsNivoSliderController, for example (Nivo Slider plugin).
You don't need to add references in your controller.


Thanks so much! it works great... but if i need to show a notification from another plugin class that is not a controller?
6 năm cách đây
Hi there?

public void HandleEvent(EntityUpdated<Product> eventMessage)
      {
          SuccessNotification(_localizationService.GetResource("Admin.Plugins.Saved"));
      }


Can we return Error Notification From Handle Events from my Plugin Controller?
If yes its no showing.
If not than kindly guide me how to do that?

Thanks
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.