Subscribe your code to this event so it is called exactly when the Ecwid Javascript API is loaded and ready.
window.Ecwid.OnAPILoaded.add(function() {
console.log("Ecwid storefront JS API has loaded");
});
Subscribe your code to this event so it is called exactly when the Ecwid Javascript API is loaded and ready.
window.Ecwid.OnAPILoaded.add(function() {
console.log("Ecwid storefront JS API has loaded");
});