Created
September 14, 2013 18:46
-
-
Save genee19/6564489 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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