Ecwid.Cart.canGotoCheckout

Using Ecwid.Cart.canGotoCheckout() function you can check whether you can send customers to the first step of checkout process in a store.

Ecwid.Cart.canGotoCheckout(function(callback){
  console.log(callback);
});

Fields:

NameTypeDescription
callbackbooleantrue if you can send customer to the checkout process, false otherwise

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