Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
product = {
id: 10,
quantity: 3,
options: {
someTextOption: "optionVal",
someDateOption: (new Date()).getTime().toString()
},
callback: function(success, product, cart) {
// ...
}
}
Ecwid.Cart.addProduct(product);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment