Skip to content

Instantly share code, notes, and snippets.

@genee19
Created September 14, 2013 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save genee19/6564489 to your computer and use it in GitHub Desktop.
Save genee19/6564489 to your computer and use it in GitHub Desktop.
product = {
id: 10,
quantity: 3,
options: {
someTextOption: "optionVal",
someDateOption: new Date().getTime().toString()
},
callback: function(success, product, cart) {
// ...
}
}
Ecwid.Cart.addProduct(product);
@DerobeLingerie
Copy link

Hi, am new to API and have really been trying to understand all this coding the last few days. Been reading the articles on ECWID and basically am looking for help implementing a code which will give feedback when someone adds an item to the cart and leaves it there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment