Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ecwid.Cart.addProduct(productID, function(success, product, cart){
console.log(success); // true or false
console.log(product.name);
})
Ecwid.Cart.addProduct({
id: 10,
quantity: 3,
callback: function(success, product, cart){
console.log(success); // true or false
console.log(product.name);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment