Get all widgets to be displayed when page loads.

Returns array containing widget types present on a page.

var widgets = Ecwid.getInitializedWidgets();


// prints 
// ["Minicart", "SearchPanel", "ProductBrowser"]

There are four types available:

  • Minicart - Minicart widget
  • SearchPanel - Search widget
  • ProductBrowser - Storefront widget
  • Categories - Categories widget
  • SingleProduct - Embedded product (old version)
  • Product - Embedded product (latest version)

Subscribe to the Ecwid.OnAPILoaded JS API event to ensure availability of this function.