Impossible to chain multiple products ?
Epistol opened this issue · comments
Epistol commented
We can do ui.createComponent for a product, for a collection, but for multiple products the script just break completely.
Addison commented
Can you provide a codepen or a code snippet (with your shopify domain/token/product ids removed)?
Spencer Canner commented
Buy Button JS supports creating a productSet component, which allows you to pass in an array of product ids like this:
ui.createComponent('productSet', {
id: [1, 2, 3],
...
}
Epistol commented
Works, thanks ! You should put that in the doc, it's not clear.