Skip to content

Instantly share code, notes, and snippets.

@ndv
Created July 18, 2012 10:56
Show Gist options
  • Save ndv/3135544 to your computer and use it in GitHub Desktop.
Save ndv/3135544 to your computer and use it in GitHub Desktop.
OnAPILoaded usage
<script src="//app.ecwid.com/script.js?1003" type="text/javascript" charset="UTF-8"></script>
<script>
Ecwid.OnAPILoaded.add(function() {
// Ecwid API is available, do something
alert(Ecwid.formatCurrency(123.45));
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment