Get all widgets to be displayed when page loads.
Returns array containing widget types present on a page.
var widgets = Ecwid.getInitializedWidgets();
console.log(widgets);
// prints
// ["Minicart", "SearchPanel", "ProductBrowser"]
There are four types available:
Minicart
- Minicart widgetSearchPanel
- Search widgetProductBrowser
- Storefront widgetCategories
- Categories widgetSingleProduct
- Embedded product (old version)Product
- Embedded product (latest version)
Subscribe to the Ecwid.OnAPILoaded
JS API event to ensure availability of this function.