A widget is a fragment of UI that can be easily added to predefined placeholders in the views. Currently SimpleCommerce support 3 widget zones (placeholders) all of them are in the home page. We will support more widget zone in the futures, you can also define your own zones.
Steps to develop new widgets
- Insert new record to [Core_Widget] table. We recommend that you should add the record in StaticData.sql
- Add YourWidgetNameApiController and implement Get/Post/Put, see Carousel widget as an example.
- Add AngularJS code for create and edit widget. The route to the form should match to then one that you your widget record in the [Core_Widget] table
- Create a ViewComponent to display your widget to users