Add custom data to store order using widget

I’m trying to set up a Wix Store to sell personalized items, where the user can choose graphics that go on the final product. I can certainly write the javascript widget to let them choose the graphics, and I can see how to save that to a DataCollection, but how do I tie that user input to an ordered item ? I can’t find anything that looks appropriate in the Wix API.

Hey
When you code the product page you can use the addToCart function to add that custom product to your cart. Then you can use the Options to add extra information needed to the order.

http://www.wix.com/code/reference/$w.CartIcon.html#AddToCartOptions

Oooh, that looks good. I might be able to use Wix after all!

Thanks Andreas!

This doesn’t work if price is zero.

Yeah this is a huge limitation. I wanted to do a free product and collect custom details, couldnt do it.