Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between plugins and widgets in nopcommerce

I want to display a text box and a button in each product page. The customer would enter his/her city name in the text box and click the button to know whether delivery is available for his/her city.

I learned I should I create a plugin/widget. But I am a little confused on which one to use? Plugin? Or a Widget?

What is the difference between a plugin and a widget in nopcommerce? What I should use here?

like image 852
kvothe Avatar asked Oct 02 '22 04:10

kvothe


1 Answers

Widget is a type of plugin in nopcommerce. A payment method for example is also a plugin, but not a widget.

Widget seems to be the type you want. See http://www.nopcommerce.com/docs/77/how-to-write-a-nopcommerce-plugin.aspx number 4 for more details. Here is description of widget:

b. IWidgetPlugin. It allows you to create widgets. Widgets are rendered on some parts of your site. For > example, it can be a "Live chat" block on the left column of your site.

like image 182
Tonia H Avatar answered Oct 05 '22 11:10

Tonia H