NAV

Storefront JS API

Check out Customize Storefront section for general details on changing Ecwid’s storefront.

Access Page object to find the current page type

Ecwid.OnPageLoad.add(function(page) {
        alert("My page load handler: " + page.type);
});

See also: App working in storefront source code example

Storefront JS API allows your app to integrate with storefront on a deeper level. It provides access to events (page changed, cart changed), entities (product, cart, order) and others.

Get started with this list of available use cases: